CC=lcc.exe LD=lcclnk.exe RC=lrc.exe # flags for Debug configuration #CFLAGS=-A -DWIN32 #LDFLAGS=-s -subsystem console # flags for Release configuration CFLAGS=-A -DWIN32 -DRELEASE LDFLAGS=-s -subsystem windows OBJS= main.obj tools.obj texgen.obj random.obj demo.obj scenemgr.obj \ loader.obj raster.obj draw.obj glstate.obj cubes.obj flash.obj \ intro.obj fluid.obj textbook.obj tunnel.obj spheres.obj blokball.obj wobble.obj worm.obj paper.obj LIBS= opengl32.lib glu32.lib libv2.lib dsound.lib BINARY= rastro.exe RES= icon.res TUNE= out1_rastro_mod.v2m MAPFILE=rastro.map SIZEFILE=rastro.sz all: $(BINARY) size: $(SIZEFILE) demo.c: sync.h flash.c: sync.h ##### scene manager module needs music file ##### scenemgr.obj: scenemgr.c tune.ci $(CC) -c $(CFLAGS) scenemgr.c tune.ci: bin2c.exe $(TUNE) bin2c.exe $(TUNE) tune.ci theTune bin2c.exe: bin2c.obj $(LD) -s -subsystem console -o bin2c.exe bin2c.obj ##### "aeffchen" ##### intro.obj: intro.c aeffchen.ci $(CC) -c $(CFLAGS) intro.c aeffchen.ci: gen_affe.exe gen_affe.exe gen_affe.exe: gen_affe.obj $(LD) -s -subsystem console -o gen_affe.exe gen_affe.obj ##### textbook test ##### textbook.exe: texgen.obj random.obj draw.obj raster.obj tools.obj textbook.c $(CC) -c $(CFLAGS) -DTEST_TEXTBOOK textbook.c $(LD) -o textbook.exe textbook.obj tools.obj texgen.obj random.obj raster.obj draw.obj glstate.obj opengl32.lib glu32.lib libv2.lib dsound.lib del textbook.obj textbook: textbook.exe textbook.exe ##### standard Makefile stuff ##### test: $(BINARY) $(BINARY) release: $(BINARY) $(README) upx -v --best --crp-ms=999999 $(BINARY) makenfo.bat del rastro.zip zip -v9 rastro.zip rastro.exe rastro.nfo $(BINARY): $(OBJS) $(RES) $(LD) $(LDFLAGS) -o $(BINARY) $(OBJS) $(LIBS) $(RES) $(MAPFILE): $(OBJS) $(RES) $(LD) -map $(MAPFILE) -o $(BINARY) $(OBJS) $(LIBS) $(RES) $(SIZEFILE): $(MAPFILE) parsemap.bat $(MAPFILE) $(SIZEFILE) .c.obj: $(CC) -c $(CFLAGS) $*.c .rc.res: $(RC) $*.rc clean: almost-clean del $(BINARY) almost-clean: del *.map del *.sz del *.obj del *.res del bin2c.exe del *.ci del gen_affe.exe del textbook.exe del page*.bmp