Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (19 sloc) 489 Bytes
#!make
CC=cc
# Should not be using local includes on non-win32 systems
# CCFLAGS=-I/usr/X11/include -I../include
CCFLAGS= # no includes needed, Apple GCC will automatically pick up system frameworks
LINK=cc
LDFLAGS=-framework AGL -framework OpenGL -framework GLUT
all: glversion.txt
clean:
rm -f glversion.txt
rm -f glversion
rm -f glversion.o
glversion.txt: glversion
./$< > $@
glversion: glversion.o
${LINK} ${LDFLAGS} -o $@ $<
chmod u+x $@
%.o: %.c
${CC} ${CCFLAGS} -c $<