home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / tutorials / OGLT / Examples / TerrainFollowing / src.hansen / Makefile < prev    next >
Encoding:
Makefile  |  1996-11-11  |  990 b   |  46 lines

  1. #!smake
  2.  
  3. include $(ROOT)/usr/include/make/commondefs
  4.  
  5. SHELL    = /bin/sh
  6.  
  7. BASE    = ../
  8. IMG_LIB    = -limage
  9.  
  10. GLUT_LIB = -lglut
  11. GLUT_INC = -I/usr/include/GL
  12.  
  13. # NOTE: if the following "textured" option is removed and recompiled,
  14. # the program will draw the terrain with solid primary colors,
  15. # showing the size and position of tiled areas.
  16.  
  17. LCDEFS    = -DTEXTURED
  18. LCOPTS    = -O2
  19. LCINCS    = -I${BASE} $(GLUT_INC)
  20. LLDLIBS    = $(GLUT_LIB) $(IMG_LIB) -lGL -lGLU -lX11 -lXmu -lm
  21.  
  22. TARGET    = Elevator
  23. TARGETS    = .ofiles $(TARGET)
  24.  
  25. CFILES    = \
  26.     Main.c \
  27.     culling.c
  28.  
  29. $(TARGET): default
  30.  
  31. default:
  32.     @ if test ! -d .ofiles; then mkdir -p .ofiles; fi
  33.     @ echo "making OpenGL version of $(TARGET)"
  34.     @ cd .ofiles; ${MAKE} -f ../Makefile $(TARGET).EXE
  35.     @ rm -rf $(TARGET); ln -s .ofiles/$(TARGET).EXE $(TARGET)
  36.     @ cat WARNING; touch core; chmod a-rw core
  37.  
  38.  
  39. include $(COMMONRULES)
  40.  
  41. $(TARGET).EXE: $(OBJECTS)
  42.     $(CCF) -o $(TARGET).EXE $(OBJECTS) $(LDFLAGS)
  43.  
  44. $(OBJECTS): $(BASE)/$$(@:.o=.c) ../Makefile
  45.     $(CCF) -c $(BASE)/$(@:.o=.c)
  46.