# # $Id$ # # $Author$ # # $Date$ # $Revision$ # # Makefile for vbcc AmigaOS/68k by Frank Wille # # (C) 1999 by Hyperion Software # All rights reserved # # This file is part of the MiniGL library project # See the file Licence.txt for more details # # INCLUDE = -Iinclude -Iinclude/mgl DEBUG = CFLAGS = -+ -O=1 $(INCLUDE) -cpu=68060 -fpu=68060 -no-trigraphs -c99 $(DEBUG) \ -dontwarn=214 -dontwarn=165 LIBS = -lm040 -lvc -lmgl -lextra -lamiga -lcgfx LIBNAME = vlibm68k:mgl.lib DIR = Build EXENAME = GLTest EXESRC = src/GLTest.c DEMOS = bounce GLTest texsub gears smtest warp rasonly varray gravity CC=vc +vc.confdb AR=join as LIBOBJ = $(DIR)/glu.o $(DIR)/context.o $(DIR)/vertexbuffer.o $(DIR)/vertexarray.o\ $(DIR)/draw.o $(DIR)/texture.o $(DIR)/fog.o $(DIR)/hclip.o \ $(DIR)/matrix.o $(DIR)/init.o $(DIR)/others.o $(DIR)/kprintf.o all: $(LIBNAME) $(DEMOS) install: copy include/mgl/#?.h vinclude68k:mgl clean: delete force quiet $(DIR)/#?.o GLtest lib: $(LIBNAME) @echo "Done" bounce: demos/bounce.c $(LIBNAME) $(CC) $(CFLAGS) -o bounce demos/bounce.c $(LIBS) texsub: demos/texsub.c $(LIBNAME) $(CC) $(CFLAGS) -o texsub demos/texsub.c $(LIBS) gears: demos/gears.c $(LIBNAME) $(CC) $(CFLAGS) -o gears demos/gears.c $(LIBS) smtest: demos/smtest.c $(LIBNAME) $(CC) $(CFLAGS) -o smtest demos/smtest.c $(LIBS) warp: demos/warp.c $(LIBNAME) $(CC) $(CFLAGS) -o warp demos/warp.c $(LIBS) varray: demos/varray.c $(LIBNAME) $(CC) $(CFLAGS) -o varray demos/varray.c $(LIBS) rasonly: demos/rasonly.c $(LIBNAME) $(CC) $(CFLAGS) -o rasonly demos/rasonly.c $(LIBS) gravity: demos/gravity.c $(LIBNAME) $(CC) $(CFLAGS) -o gravity demos/gravity.c $(LIBS) $(LIBNAME): $(LIBOBJ) $(AR) $(LIBNAME) $(LIBOBJ) $(EXENAME): $(EXESRC) $(LIBNAME) $(CC) $(CFLAGS) -o $@ $(EXESRC) $(LIBS) INCS = src/sysinc.h include/mgl/clip.h include/mgl/config.h \ include/mgl/context.h include/mgl/gl.h include/mgl/log.h \ include/mgl/matrix.h include/mgl/minigl.h include/mgl/vertexbuffer.h $(DIR)/context.o: src/context.c $(INCS) $(CC) $(CFLAGS) -c -o $@ src/context.c $(DIR)/draw.o: src/draw.c $(INCS) $(CC) $(CFLAGS) -c -o $@ src/draw.c $(DIR)/fog.o: src/fog.c $(INCS) $(CC) $(CFLAGS) -c -o $@ src/fog.c $(DIR)/hclip.o: src/hclip.c $(INCS) $(CC) $(CFLAGS) -c -o $@ src/hclip.c $(DIR)/init.o: src/init.c $(INCS) $(CC) $(CFLAGS) -c -o $@ src/init.c $(DIR)/matrix.o: src/matrix.c $(INCS) $(CC) $(CFLAGS) -c -o $@ src/matrix.c $(DIR)/others.o: src/others.c $(INCS) $(CC) $(CFLAGS) -c -o $@ src/others.c $(DIR)/texture.o: src/texture.c $(INCS) $(CC) $(CFLAGS) -c -o $@ src/texture.c $(DIR)/vertexbuffer.o: src/vertexbuffer.c $(INCS) $(CC) $(CFLAGS) -c -o $@ src/vertexbuffer.c $(DIR)/vertexarray.o: src/vertexarray.c $(INCS) $(CC) $(CFLAGS) -c -o $@ src/vertexarray.c $(DIR)/glu.o: src/glu.c $(INCS) $(CC) $(CFLAGS) -c -o $@ src/glu.c $(DIR)/kprintf.o: src/kprintf.c $(INCS) $(CC) $(CFLAGS) -c -o $@ src/kprintf.c