From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more
|
#!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} -Wno-deprecated-declarations ${CCFLAGS} -c $<
|