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

  1. #
  2. # $Id: makefile.vbcc68k,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 AmigaOS/68k 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=68040 -fpu=68040 $(DEBUG) \
  22.          -dontwarn=214 -dontwarn=165
  23. LIBS = -lmgl -lm040 -lextra -ldebug -lamiga -lcgfx
  24. LIBNAME = vlibm68k:mgl.lib
  25. DIR = Build
  26. EXENAME = GLTest
  27. EXESRC = src/GLTest.c
  28.  
  29. DEMOS = bounce GLTest texsub gears smtest
  30.  
  31. CC = vc
  32. AR = join as
  33.  
  34. LIBOBJ = $(DIR)/matrix.o $(DIR)/context.o $(DIR)/vertexbuffer.o \
  35.          $(DIR)/draw.o $(DIR)/texture.o $(DIR)/fog.o $(DIR)/hclip.o \
  36.          $(DIR)/others.o $(DIR)/init.o $(DIR)/glu.o
  37.  
  38. all: $(LIBNAME) $(DEMOS)
  39.  
  40. install:
  41.     copy include/mgl/#?.h vinclude68k:mgl
  42.  
  43. clean:
  44.     delete force quiet $(DIR)/#?.o GLtest
  45.  
  46. lib: $(LIBNAME)
  47.     @echo "Done"
  48.  
  49. bounce: demos/bounce.c $(DIR)/init.o $(LIBNAME)
  50.     $(CC) $(CFLAGS) -o bounce demos/bounce.c $(DIR)/init.o $(LIBS)
  51.  
  52. texsub: demos/texsub.c $(DIR)/init.o $(LIBNAME)
  53.     $(CC) $(CFLAGS) -o texsub demos/texsub.c $(DIR)/init.o $(LIBS)
  54.  
  55. gears: demos/gears.c $(DIR)/init.o $(LIBNAME)
  56.     $(CC) $(CFLAGS) -o gears demos/gears.c $(DIR)/init.o $(LIBS)
  57.  
  58. smtest: demos/smtest.c $(DIR)/init.o $(LIBNAME)
  59.     $(CC) $(CFLAGS) -o smtest demos/smtest.c $(DIR)/init.o $(LIBS)
  60.  
  61.  
  62. $(LIBNAME): $(LIBOBJ)
  63.     $(AR) $(LIBNAME) $(LIBOBJ)
  64.  
  65. $(EXENAME): $(EXESRC) $(LIBNAME)
  66.     $(CC) $(CFLAGS) -o $@ $(EXESRC) $(LIBS)
  67.  
  68.  
  69. INCS = src/sysinc.h include/mgl/clip.h include/mgl/config.h \
  70.        include/mgl/context.h include/mgl/gl.h include/mgl/log.h \
  71.        include/mgl/matrix.h include/mgl/minigl.h include/mgl/vertexbuffer.h
  72.  
  73.  
  74. $(DIR)/context.o: src/context.c $(INCS)
  75.     $(CC) $(CFLAGS) -c -o $@ src/context.c
  76.  
  77. $(DIR)/draw.o: src/draw.c $(INCS)
  78.     $(CC) $(CFLAGS) -c -o $@ src/draw.c
  79.  
  80. $(DIR)/fog.o: src/fog.c $(INCS)
  81.     $(CC) $(CFLAGS) -c -o $@ src/fog.c
  82.  
  83. $(DIR)/hclip.o: src/hclip.c $(INCS)
  84.     $(CC) $(CFLAGS) -c -o $@ src/hclip.c
  85.  
  86. $(DIR)/init.o: src/init.c $(INCS)
  87.     $(CC) $(CFLAGS) -c -o $@ src/init.c
  88.  
  89. $(DIR)/matrix.o: src/matrix.c $(INCS)
  90.     $(CC) $(CFLAGS) -c -o $@ src/matrix.c
  91.  
  92. $(DIR)/others.o: src/others.c $(INCS)
  93.     $(CC) $(CFLAGS) -c -o $@ src/others.c
  94.  
  95. $(DIR)/texture.o: src/texture.c $(INCS)
  96.     $(CC) $(CFLAGS) -c -o $@ src/texture.c
  97.  
  98. $(DIR)/vertexbuffer.o: src/vertexbuffer.c $(INCS)
  99.     $(CC) $(CFLAGS) -c -o $@ src/vertexbuffer.c
  100.  
  101. $(DIR)/glu.o: src/glu.c $(INCS)
  102.     $(CC) $(CFLAGS) -c -o $@ src/glu.c
  103.