home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 February / Chip_2001-02_cd1.bin / bonus / demos / CS / exp / SOURCES / GLENGINE / Makefile < prev    next >
Makefile  |  2000-08-16  |  1KB  |  61 lines

  1. LIBNAME = libobjgl2.a
  2. LIBPATH = e:/mingw32/i386-mingw32/lib
  3.  
  4. CPP = g++
  5. CPPOPTS =
  6.  
  7. CP = cp
  8. RM = rm -f
  9.  
  10. OBJECTS = String.o \
  11.           hierarchy.o \
  12.           light.o \
  13.           camera.o \
  14.           material.o \
  15.           texture.o \
  16.           image.o \
  17.           api3ds.o \
  18.           glext.o
  19.  
  20. BHEADERS = List.h \
  21.            vector2.h \
  22.            vector3.h \
  23.            vector4.h \
  24.            glmatrix.h \
  25.            quaternion.h \
  26.            miscmath.h \
  27.            entity.h \
  28.            String.h \
  29.            types.h \
  30.            dynamic.h \
  31.            switchers.h \
  32.            boundingbox.h \
  33.            hierarchy.h
  34.  
  35. default all:    libobjgl2
  36.  
  37. libobjgl2:    $(OBJECTS)
  38.     ar rs $(LIBNAME) $(OBJECTS)
  39.     $(CP) $(LIBNAME) $(LIBPATH)
  40.  
  41. String.o:    String.cpp String.h
  42. entity.o:    entity.cpp entity.h String.h List.h
  43. hierarchy.o:    hierarchy.cpp hierarchy.h entity.h String.h List.h
  44. texture.o:    texture.cpp texture.h image.h $(BHEADERS)
  45. material.o:    material.cpp material.h texture.h $(BHEADERS)
  46. light.o:    light.cpp light.h $(BHEADERS)
  47. camera.o:    camera.cpp camera.h $(BHEADERS)
  48. image.o:    image.cpp image.h
  49. api3ds.o:    api3ds.cpp api3ds.h image.h camera.h light.h texture.h material.h objgl2.h $(BHEADERS)
  50. glext.o:    glext.cpp glext.h
  51.  
  52. %.o : %.cpp
  53.     $(CPP) -c $(CPPOPTS) $< -o $@
  54.  
  55. install:
  56.     $(CP) $(LIBNAME) $(LIBPATH)
  57.  
  58. clean:
  59.     $(RM) *.o
  60.     $(RM) libobjgl2.a
  61.