/[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.13 by jvk, Sat Oct 12 14:59:54 2002 UTC revision 1.14 by jvk, Sat Oct 12 20:13:28 2002 UTC
# Line 15  calltest: $(CTOBJS) Line 15  calltest: $(CTOBJS)
15    
16  # gltokens.c is currently in cvs to prevent potential problems  # gltokens.c is currently in cvs to prevent potential problems
17  # with different OpenGL headers.  # with different OpenGL headers.
18  # To enable automatic gltokens.c regeneration, remove the XXX_'s below  # To enable automatic gltokens.c regeneration, remove the XXX_ below
19  # and check that CPPFLAGS specifies the correct OpenGL include directories.  # and check that CPPFLAGS specifies the correct OpenGL include directories.
 XXX_gltokens.dep:  
         echo '#include <GL/gl.h>' | \  
         cpp $(CPPFLAGS) -DGL_GLEXT_PROTOTYPES - -M | \  
         sed -e 's/^-/gltokens.c gltokens.dep/' > gltokens.dep  
   
 include XXX_gltokens.dep  
   
20  XXX_gltokens.c:  XXX_gltokens.c:
21          echo '#include <GL/gl.h>' | \          echo '#include <GL/gl.h>' | \
22          cpp $(CPPFLAGS) -DGL_GLEXT_PROTOTYPES - -dM | \          $(CXX) -E $(CPPFLAGS) -DGL_GLEXT_PROTOTYPES - -dM | \
23          grep -h '#define GL_\w\+[[:space:]]\+\w\+' | \          grep -h '#define GL_\w\+[[:space:]]\+\w\+' | \
24          grep -v 'OFFSET_TEXTURE_2D_[BMS]' | cut -c12- | \          grep -v 'OFFSET_TEXTURE_2D_[BMS]' | cut -c12- | \
25          awk '{print "{\"" $$1 "\", " $$2 "},"}' | \          awk '{print "{\"" $$1 "\", " $$2 "},"}' | \
26          LC_COLLATE=C sort | uniq > gltokens.c          LC_COLLATE=C sort | uniq > gltokens.c
27    
28    gltokens.dep:
29            echo '#include <GL/gl.h>' | \
30            $(CXX) -E $(CPPFLAGS) -DGL_GLEXT_PROTOTYPES - -M | \
31            sed -e 's/^-/gltokens.c gltokens.dep/' > gltokens.dep
32    
33    include gltokens.dep

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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