X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=makefile;h=97679804295e489ad9121093c259e6b8dca04248;hb=a36921f9d31cc4a8e6a8041d5b9968b2cf4bb860;hp=5b671927ee2acd4470dcc487ad9434ea0eb59084;hpb=718ca651bb719e22491371050b369c658d4f51dc;p=16.git diff --git a/makefile b/makefile index 5b671927..97679804 100644 --- a/makefile +++ b/makefile @@ -12,21 +12,23 @@ TARGET_OS = dos #-zk0 = kanji support~ #-zkl = current codepage -#MFLAGS=-mc# -zm -CFLAGS=-zk0 -wo -x -mc# -zdp# -zp16 -zq +DFLAGS=-DTARGET_MSDOS=16 -DMSDOS=1# -zm +CFLAGS=-zk0 -wo -x -mc -zu# -zdp# -zp16 -zq OFLAGS=-ot -ox -ob -oh -or# -om -ol -ol+ -FLAGS=-0 -d2 -lr $(OFLAGS) $(CFLAGS) +FLAGS=-0 -d1 -lr $(OFLAGS) $(CFLAGS) $(DFLAGS) #-d2 SRC=src$(DIRSEP) SRCLIB=$(SRC)lib$(DIRSEP) JSMNLIB=$(SRCLIB)jsmn$(DIRSEP) EXMMLIB=$(SRCLIB)exmm$(DIRSEP) +DOSLIB=$(SRCLIB)doslib$(DIRSEP) WCPULIB=$(SRCLIB)wcpu$(DIRSEP) -16LIBOBJS = 16_in.$(OBJ) 16_mm.$(OBJ) wcpu.$(OBJ) 16_head.$(OBJ) scroll16.$(OBJ) 16_ca.$(OBJ) 16_snd.$(OBJ) +DOSLIBEXMMOBJ = himemsys.$(OBJ) emm.$(OBJ) +DOSLIBOBJ = adlib.$(OBJ) midi.$(OBJ) 8254.$(OBJ) 8259.$(OBJ) dos.$(OBJ) cpu.$(OBJ) +16LIBOBJS = 16_in.$(OBJ) 16_mm.$(OBJ) wcpu.$(OBJ) 16_head.$(OBJ) scroll16.$(OBJ) 16_ca.$(OBJ) GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) 16text.$(OBJ) -all: 16.exe test.exe pcxtest.exe test2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe exmmtest.exe fonttes0.exe fontgfx.exe sountest.exe -#inputest.exe +all: 16.exe test.exe pcxtest.exe test2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe exmmtest.exe fonttes0.exe fontgfx.exe sountest.exe miditest.exe testemm.exe tsthimem.exe inputest.exe testemm0.exe # #executables @@ -48,16 +50,28 @@ fonttest.exe: fonttest.$(OBJ) 16.lib wcl $(FLAGS) fonttest.$(OBJ) 16.lib fonttes0.exe: fonttes0.$(OBJ) 16.lib - wcl $(FLAGS) fonttes0.$(OBJ) 16.lib + wcl $(FLAGS) fonttes0.$(OBJ) 16.lib fontgfx.exe: fontgfx.$(OBJ) 16.lib - wcl $(FLAGS) fontgfx.$(OBJ) 16.lib + wcl $(FLAGS) fontgfx.$(OBJ) 16.lib inputest.exe: inputest.$(OBJ) 16.lib - wcl $(FLAGS) inputest.$(OBJ) 16.lib + wcl $(FLAGS) -D__DEBUG_InputMgr__=1 inputest.$(OBJ) 16.lib sountest.exe: sountest.$(OBJ) 16.lib - wcl $(FLAGS) sountest.$(OBJ) 16.lib + wcl $(FLAGS) sountest.$(OBJ) 16.lib + +miditest.exe: miditest.$(OBJ) 16.lib + wcl $(FLAGS) miditest.$(OBJ) 16.lib + +tsthimem.exe: tsthimem.$(OBJ) 16.lib + wcl $(FLAGS) tsthimem.$(OBJ) 16.lib + +testemm.exe: testemm.$(OBJ) 16.lib + wcl $(FLAGS) testemm.$(OBJ) 16.lib + +testemm0.exe: testemm0.$(OBJ) 16.lib + wcl $(FLAGS) testemm0.$(OBJ) 16.lib pcxtest.exe: pcxtest.$(OBJ) gfx.lib wcl $(FLAGS) pcxtest.$(OBJ) gfx.lib @@ -81,7 +95,7 @@ fmemtest.exe: fmemtest.$(OBJ) 16.lib wcl $(FLAGS) fmemtest.$(OBJ) 16.lib exmmtest.exe: exmmtest.$(OBJ) 16.lib - wcl $(FLAGS) exmmtest.$(OBJ) 16.lib + wcl $(FLAGS) exmmtest.$(OBJ) 16.lib # #executable's objects @@ -120,16 +134,28 @@ fonttest.$(OBJ): $(SRC)fonttest.c wcl $(FLAGS) -c $(SRC)fonttest.c fonttes0.$(OBJ): $(SRC)fonttes0.c - wcl $(FLAGS) -c $(SRC)fonttes0.c + wcl $(FLAGS) -c $(SRC)fonttes0.c fontgfx.$(OBJ): $(SRC)fontgfx.c - wcl $(FLAGS) -c $(SRC)fontgfx.c + wcl $(FLAGS) -c $(SRC)fontgfx.c inputest.$(OBJ): $(SRC)inputest.c wcl $(FLAGS) -c $(SRC)inputest.c sountest.$(OBJ): $(SRC)sountest.c - wcl $(FLAGS) -c $(SRC)sountest.c + wcl $(FLAGS) -c $(SRC)sountest.c + +miditest.$(OBJ): $(SRC)miditest.c + wcl $(FLAGS) -c $(SRC)miditest.c + +testemm.$(OBJ): $(SRC)testemm.c + wcl $(FLAGS) -c $(SRC)testemm.c + +testemm0.$(OBJ): $(SRC)testemm0.c + wcl $(FLAGS) -c $(SRC)testemm0.c + +tsthimem.$(OBJ): $(SRC)tsthimem.c + wcl $(FLAGS) -c $(SRC)tsthimem.c exmmtest.$(OBJ): $(SRC)exmmtest.c wcl $(FLAGS) -c $(SRC)exmmtest.c @@ -137,12 +163,15 @@ exmmtest.$(OBJ): $(SRC)exmmtest.c # #non executable objects libraries # -16.lib: $(16LIBOBJS) gfx.lib - wlib -b 16.lib $(16LIBOBJS) gfx.lib +16.lib: $(16LIBOBJS) gfx.lib doslib.lib + wlib -b 16.lib $(16LIBOBJS) gfx.lib doslib.lib gfx.lib: $(GFXLIBOBJS) wlib -b gfx.lib $(GFXLIBOBJS) +doslib.lib: $(DOSLIBOBJ) $(DOSLIBEXMMOBJ)# $(SRCLIB)cpu.lib + wlib -b doslib.lib $(DOSLIBOBJ) $(DOSLIBEXMMOBJ)# $(SRCLIB)cpu.lib + modex16.$(OBJ): $(SRCLIB)modex16.h $(SRCLIB)modex16.c wcl $(FLAGS) -c $(SRCLIB)modex16.c @@ -179,8 +208,34 @@ mapread.$(OBJ): $(SRCLIB)mapread.h $(SRCLIB)mapread.c 16.lib 16_ca.$(OBJ): $(SRCLIB)16_ca.h $(SRCLIB)16_ca.c wcl $(FLAGS) -c $(SRCLIB)16_ca.c -16_snd.$(OBJ): $(SRCLIB)16_snd.h $(SRCLIB)16_snd.c - wcl $(FLAGS) -c $(SRCLIB)16_snd.c +midi.$(OBJ): $(SRCLIB)midi.h $(SRCLIB)midi.c + wcl $(FLAGS) -c $(SRCLIB)midi.c + +# +# doslib stuff +# +adlib.$(OBJ): $(DOSLIB)adlib.h $(DOSLIB)adlib.c + wcl $(FLAGS) -c $(DOSLIB)adlib.c + +8254.$(OBJ): $(DOSLIB)8254.h $(DOSLIB)8254.c + wcl $(FLAGS) -c $(DOSLIB)8254.c + +8259.$(OBJ): $(DOSLIB)8259.h $(DOSLIB)8259.c + wcl $(FLAGS) -c $(DOSLIB)8259.c + +dos.$(OBJ): $(DOSLIB)dos.h $(DOSLIB)dos.c + wcl $(FLAGS) -c $(DOSLIB)dos.c + +cpu.$(OBJ): $(DOSLIB)cpu.h $(DOSLIB)cpu.c + wcl $(FLAGS) -c $(DOSLIB)cpu.c + +himemsys.$(OBJ): $(DOSLIB)himemsys.h $(DOSLIB)himemsys.c + wcl $(FLAGS) -c $(DOSLIB)himemsys.c + +emm.$(OBJ): $(DOSLIB)emm.h $(DOSLIB)emm.c + wcl $(FLAGS) -c $(DOSLIB)emm.c + +# end 16_head.$(OBJ): $(SRCLIB)16_head.h $(SRCLIB)16_head.c wcl $(FLAGS) -c $(SRCLIB)16_head.c