1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
#!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 $<
|