11 |
calltest: $(CTOBJS) |
calltest: $(CTOBJS) |
12 |
$(CXX) $(CTOBJS) -o calltest -lglut -lGL -lGLU |
$(CXX) $(CTOBJS) -o calltest -lglut -lGL -lGLU |
13 |
|
|
14 |
# gltokens.c is passed because of libglwrapper |
callgl.cxx: gltokens.c |
|
# see ../libglwrapper/Makefile where it runs the almost same code |
|
|
# to grep tokens. |
|
|
#callgl.cxx: gltokens.c |
|
15 |
|
|
16 |
|
|
17 |
# XXX - Check the latest version from ../libglwrapper/Makefile!!! |
# original |
18 |
# XXX Make it check whether the user has the nvidia include file... |
|
19 |
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 |
20 |
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 "},"}' | LC_COLLATE=C 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 "},"}' | LC_COLLATE=C sort| uniq > gltokens.c |
21 |
|
|
22 |
|
|
23 |
|
# with libgwrapper |
24 |
|
|
25 |
|
GL_HEADER= ../libglwrapper/GL/gl.h /usr/include/GL/glext.h |
26 |
|
gltokens.c: Makefile $(GL_HEADER) |
27 |
|
grep -h '#define GL_\w\+[[:space:]]\+\w\+' $(GL_HEADER) | grep -v 'OFFSET_TEXTURE_2D_[BMS]' | cut -c12- | awk '{print "{\"" $$1 "\", " $$2 "},"}' | LC_COLLATE=C sort| uniq > gltokens.c |