/[gzz]/gzz/gfx/libcallgl/Makefile
ViewVC logotype

Diff of /gzz/gfx/libcallgl/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by mudyc, Wed Oct 9 13:39:39 2002 UTC revision 1.12 by mudyc, Sat Oct 12 12:13:59 2002 UTC
# Line 11  CTOBJS=calltest.o callgl.o ../libutil/De Line 11  CTOBJS=calltest.o callgl.o ../libutil/De
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

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26