# # $Id$ # # $Author$ # # $Date$ # $Revision$ # # Makefile for vbcc WarpOS 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 = -+ -amiga-align -no-trigraphs -c99 $(INCLUDE) $(DEBUG) -dontwarn=214 -dontwarn=165 LIBS = -lppcmath -lm -lvc -lmgl -lextra -lamiga -lcgfx LIBNAME = vlibwos:mgl.lib DIR = Build.ppc EXENAME = GLTestWOS EXESRC = src/GLTest.c CC = vc +warposdb AR = join as DEMOS = bounceWOS GLTestWOS texsubWOS gearsWOS smtestWOS warpWOS rasonlyWOS varrayWOS gravityWOS LIBOBJ = $(DIR)/matrix.o $(DIR)/context.o $(DIR)/draw.o $(DIR)/texture.o $(DIR)/fog.o $(DIR)/hclip.o $(DIR)/others.o $(DIR)/init.o $(DIR)/glu.o $(DIR)/vertexbuffer.o $(DIR)/vertexarray.o $(DIR)/kprintf.o all: $(LIBNAME) $(DEMOS) install: copy include/mgl/#?.h vincludewos:mgl clean: delete force quiet $(DIR)/#?.o GLtestWOS lib: $(LIBNAME) @echo "Done" bounceWOS: demos/bounce.c $(LIBNAME) $(CC) $(CFLAGS) -o bounceWOS demos/bounce.c $(LIBS) texsubWOS: demos/texsub.c $(LIBNAME) $(CC) $(CFLAGS) -o texsubWOS demos/texsub.c $(LIBS) gearsWOS: demos/gears.c $(LIBNAME) $(CC) $(CFLAGS) -o gearsWOS demos/gears.c $(LIBS) smtestWOS: demos/smtest.c $(LIBNAME) $(CC) $(CFLAGS) -o smtestWOS demos/smtest.c $(LIBS) warpWOS: demos/warp.c $(LIBNAME) $(CC) $(CFLAGS) -o warpWOS demos/warp.c $(LIBS) varrayWOS: demos/varray.c $(LIBNAME) $(CC) $(CFLAGS) -o varrayWOS demos/varray.c $(LIBS) rasonlyWOS: demos/rasonly.c $(LIBNAME) $(CC) $(CFLAGS) -o rasonlyWOS demos/rasonly.c $(LIBS) gravityWOS: demos/gravity.c $(LIBNAME) $(CC) $(CFLAGS) -o gravityWOS 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