home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Programming / MiniGL / makefile.vbccwos < prev    next >
Encoding:
Makefile  |  2000-04-07  |  2.7 KB  |  105 lines

  1. #
  2. # $Id: makefile.vbccwos,v 1.1.1.1 2000/04/07 19:44:48 tfrieden Exp $
  3. #
  4. # $Author: tfrieden $
  5. #
  6. # $Date: 2000/04/07 19:44:48 $
  7. # $Revision: 1.1.1.1 $
  8. #
  9. # Makefile for vbcc WarpOS by Frank Wille
  10. #
  11. # (C) 1999 by Hyperion Software
  12. # All rights reserved
  13. #
  14. # This file is part of the MiniGL library project
  15. # See the file Licence.txt for more details
  16. #
  17. #
  18.  
  19. INCLUDE = -Iinclude -Iinclude/mgl
  20. DEBUG =
  21. CFLAGS = -+ $(INCLUDE) -cpu=604 $(DEBUG) -dontwarn=214 -dontwarn=165
  22. LIBS = -lmgl -lppcmath -lm -lextra -lamiga -lcgfx
  23. LIBNAME = vlibwos:mgl.lib
  24. DIR = Build.ppc
  25. EXENAME = GLTestWOS
  26. EXESRC = src/GLTest.c
  27.  
  28. DEMOS = bounceWOS GLTestWOS texsubWOS gearsWOS smtestWOS warpWOS
  29.  
  30. CC = vc +warpos -amiga-align
  31. AR = join as
  32.  
  33. LIBOBJ = $(DIR)/matrix.o $(DIR)/context.o $(DIR)/vertexbuffer.o \
  34.          $(DIR)/draw.o $(DIR)/texture.o $(DIR)/fog.o $(DIR)/hclip.o \
  35.          $(DIR)/others.o $(DIR)/init.o $(DIR)/glu.o
  36.  
  37. all: $(LIBNAME) $(DEMOS)
  38.  
  39. install:
  40.     copy include/mgl/#?.h vincludewos:mgl
  41.  
  42. clean:
  43.     delete force quiet $(DIR)/#?.o GLtestWOS
  44.  
  45. lib: $(LIBNAME)
  46.     @echo "Done"
  47.  
  48. bounceWOS: demos/bounce.c $(DIR)/init.o $(LIBNAME)
  49.     $(CC) $(CFLAGS) -o bounceWOS demos/bounce.c $(DIR)/init.o $(LIBS)
  50.  
  51. texsubWOS: demos/texsub.c $(DIR)/init.o $(LIBNAME)
  52.     $(CC) $(CFLAGS) -o texsubWOS demos/texsub.c $(DIR)/init.o $(LIBS)
  53.  
  54. gearsWOS: demos/gears.c $(DIR)/init.o $(LIBNAME)
  55.     $(CC) $(CFLAGS) -o gearsWOS demos/gears.c $(DIR)/init.o $(LIBS)
  56.  
  57. smtestWOS: demos/smtest.c $(DIR)/init.o $(LIBNAME)
  58.     $(CC) $(CFLAGS) -o smtestWOS demos/smtest.c $(DIR)/init.o $(LIBS)
  59.  
  60. warpWOS: demos/warp.c $(DIR)/init.o $(LIBNAME)
  61.     $(CC) $(CFLAGS) -o warpWOS demos/warp.c $(DIR)/init.o $(LIBS)
  62.  
  63.  
  64. $(LIBNAME): $(LIBOBJ)
  65.     $(AR) $(LIBNAME) $(LIBOBJ)
  66.  
  67. $(EXENAME): $(EXESRC) $(LIBNAME)
  68.     $(CC) $(CFLAGS) -o $@ $(EXESRC) $(LIBS)
  69.  
  70.  
  71. INCS = src/sysinc.h include/mgl/clip.h include/mgl/config.h \
  72.        include/mgl/context.h include/mgl/gl.h include/mgl/log.h \
  73.        include/mgl/matrix.h include/mgl/minigl.h include/mgl/vertexbuffer.h
  74.  
  75.  
  76. $(DIR)/context.o: src/context.c $(INCS)
  77.     $(CC) $(CFLAGS) -c -o $@ src/context.c
  78.  
  79. $(DIR)/draw.o: src/draw.c $(INCS)
  80.     $(CC) $(CFLAGS) -c -o $@ src/draw.c
  81.  
  82. $(DIR)/fog.o: src/fog.c $(INCS)
  83.     $(CC) $(CFLAGS) -c -o $@ src/fog.c
  84.  
  85. $(DIR)/hclip.o: src/hclip.c $(INCS)
  86.     $(CC) $(CFLAGS) -c -o $@ src/hclip.c
  87.  
  88. $(DIR)/init.o: src/init.c $(INCS)
  89.     $(CC) $(CFLAGS) -c -o $@ src/init.c
  90.  
  91. $(DIR)/matrix.o: src/matrix.c $(INCS)
  92.     $(CC) $(CFLAGS) -c -o $@ src/matrix.c
  93.  
  94. $(DIR)/others.o: src/others.c $(INCS)
  95.     $(CC) $(CFLAGS) -c -o $@ src/others.c
  96.  
  97. $(DIR)/texture.o: src/texture.c $(INCS)
  98.     $(CC) $(CFLAGS) -c -o $@ src/texture.c
  99.  
  100. $(DIR)/vertexbuffer.o: src/vertexbuffer.c $(INCS)
  101.     $(CC) $(CFLAGS) -c -o $@ src/vertexbuffer.c
  102.  
  103. $(DIR)/glu.o: src/glu.c $(INCS)
  104.     $(CC) $(CFLAGS) -c -o $@ src/glu.c
  105.