1 |
include ../rules.mk |
include ../rules.mk |
2 |
|
|
3 |
sources = callgl.cxx calltest.cxx |
sources = callgl.cxx calltest.cxx GL_kludge.cxx |
4 |
|
|
5 |
all: callgl.o |
all: callgl.o GL_kludge.o |
6 |
|
|
7 |
include $(sources:.cxx=.dep) |
include $(sources:.cxx=.dep) |
8 |
|
|
9 |
CTOBJS=calltest.o callgl.o ../libutil/Debug.o |
CTOBJS=calltest.o callgl.o ../libutil/Debug.o GL_kludge.o |
10 |
|
|
11 |
calltest: $(CTOBJS) |
calltest: $(CTOBJS) |
12 |
$(CXX) $(CTOBJS) -o calltest -lglut -lGL -lGLU |
$(CXX) $(CTOBJS) -o calltest -lglut -lGL -lGLU |
13 |
|
|
14 |
callgl.cxx: gltokens.c |
callgl.cxx: gltokens.c |
15 |
|
|
16 |
# XXX Make it check whether the user has the nvidia include file... |
# XXX Make it check whether the user has the nvidia include file... |
17 |
gltokens.c: Makefile /usr/include/GL/gl.h /usr/include/GL/glext.h |
gltokens.c: Makefile /usr/include/GL/gl.h /usr/include/GL/glext.h |
18 |
grep -h '#define GL_\w\+[[:space:]]\+\w\+' /usr/include/GL/gl.h /usr/include/GL/glext.h $(NVIDIAH)/GL/gl.h | grep -v 'OFFSET_TEXTURE_2D_[BMS]' | cut -c12- | awk '{print "{\"" $$1 "\", " $$2 "},"}' | sort > gltokens.c |
grep -h '#define GL_\w\+[[:space:]]\+\w\+' /usr/include/GL/gl.h /usr/include/GL/glext.h $(NVIDIAH)/GL/gl.h | grep -v 'OFFSET_TEXTURE_2D_[BMS]' | cut -c12- | awk '{print "{\"" $$1 "\", " $$2 "},"}' | sort > gltokens.c |
|
|
|