CC=lcc.exe LD=lcclnk.exe RC=lrc.exe #-Compiler flags for Development build #CFLAGS=-A -DWIN32 -DNOMUSIC #LDFLAGS=-s -subsystem console #-Compiler flags for Debug build #CFLAGS=-A -DWIN32 -DALL_SCENES #LDFLAGS=-s -subsystem console #-Compiler flags for Release build CFLAGS=-A -DWIN32 -DALL_SCENES -DRELEASE LDFLAGS=-s -subsystem windows QUALITY_bplogo=80 QUALITY_biff=70 QUALITY_gabi=70 QUALITY_kj=70 BINARY= vortex.exe README= vortex.txt RELEASEDIR= ".release" OBJS= main.obj scenemgr.obj scenedefs.obj tools.obj \ texgen.obj random.obj keyframe.obj mesh.obj mini44.obj \ 303.obj drum.obj music.obj unpackxm.obj filter.obj \ blackhole.obj wuschel.obj game.obj dices.obj egypt.obj warp.obj bricks.obj columns.obj nature.obj extro.obj cell.obj \ icon.res LIBS= opengl32.lib glu32.lib minifmod.lib winmm.lib all: $(BINARY) test: $(BINARY) $(BINARY) release: $(BINARY) $(README) upx -v --best --crp-ms=999999 $(BINARY) if not exist $(RELEASEDIR) mkdir $(RELEASEDIR) copy /b $(BINARY) $(RELEASEDIR) copy $(README) $(RELEASEDIR) $(BINARY): $(OTHERS) $(OBJS) $(LD) $(LDFLAGS) -o $(BINARY) $(OBJS) $(LIBS) .c.obj: $(CC) -c $(CFLAGS) $*.c .rc.res: $(RC) $*.rc music.obj: music.c tune.ci synth.ci $(CC) -c $(CFLAGS) $*.c dices.obj: dices.c bitmap_bplogo.ci bitmap_gabi.ci bitmap_biff.ci bitmap_kj.ci $(CC) -c $(CFLAGS) $*.c tune.ci: packxm.exe vortex.xm packxm.exe vortex.xm tune.ci TheTune packxm.exe: packxm.obj $(LD) -s -subsystem console -o packxm.exe packxm.obj bin2c.exe: bin2c.obj $(LD) -s -subsystem console -o bin2c.exe bin2c.obj bmp2m44.exe: bmp2m44.obj $(LD) -s -subsystem console -o bmp2m44.exe bmp2m44.obj bitmap_bplogo.ci: bitmap_bplogo.m44 bin2c.exe bin2c.exe bitmap_bplogo.m44 bitmap_bplogo.ci bitmap_bplogo bitmap_biff.ci: bitmap_biff.m44 bin2c.exe bin2c.exe bitmap_biff.m44 bitmap_biff.ci bitmap_biff bitmap_gabi.ci: bitmap_gabi.m44 bin2c.exe bin2c.exe bitmap_gabi.m44 bitmap_gabi.ci bitmap_gabi bitmap_kj.ci: bitmap_kj.m44 bin2c.exe bin2c.exe bitmap_kj.m44 bitmap_kj.ci bitmap_kj bitmap_bplogo.m44: bmp2m44.exe bmp2m44.exe bitmap_bplogo.bmp bitmap_bplogo.m44 $(QUALITY_bplogo) bitmap_biff.m44: bmp2m44.exe bmp2m44.exe bitmap_biff.bmp bitmap_biff.m44 $(QUALITY_biff) bitmap_gabi.m44: bmp2m44.exe bmp2m44.exe bitmap_gabi.bmp bitmap_gabi.m44 $(QUALITY_gabi) bitmap_kj.m44: bmp2m44.exe bmp2m44.exe bitmap_kj.bmp bitmap_kj.m44 $(QUALITY_kj) synth: do_synth.exe do_synth.exe SYNTHOBJS= synth.obj wavfile.obj 303.obj drum.obj random.obj filter.obj do_synth.exe: $(SYNTHOBJS) $(LD) -s -subsystem console -o do_synth.exe $(SYNTHOBJS) clean: del *.o del *.obj del *.res del tune.ci del packxm.exe del bin2c.exe del bmp2m44.exe del *.m44 del m44*.* del bitmap_*.ci del do_synth.* del *.wav del $(BINARY) del comp*.exe mrproper: distclean distclean: clean rd /s /q $(RELEASEDIR) testcomp: $(BINARY) upx -q9 -ocomp9.exe $(BINARY) upx -q --best --nrv2b --crp-ms=999999 -ocomp2b.exe $(BINARY) upx -q --best --nrv2b --crp-ms=999999 -ocomp2d.exe $(BINARY) mew11 $(BINARY) ren $(BINARY) compmew.exe dir comp*.exe