From 842ddddf06667dd51139485bb5089803be51457d Mon Sep 17 00:00:00 2001 From: sparky4 Date: Fri, 18 Mar 2016 09:42:06 -0500 Subject: [PATCH] wwww --- dlmkfile | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++ src/lib/doslib | 2 +- 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100755 dlmkfile diff --git a/dlmkfile b/dlmkfile new file mode 100755 index 00000000..e47a14cc --- /dev/null +++ b/dlmkfile @@ -0,0 +1,56 @@ +# do not use GNU make. +# Only use Open Watcom WMAKE + +all: cpu16.exe cpu16h.exe cpu32.exe + +clean: .symbolic + rm -v *.exe *.obj *.map + +DOSLIBDIR=.. +!include $(DOSLIBDIR)/extdep.mak + +# library deps 16-bit large +$(DOSLIBDIR)/hw/cpu/dos86l/cpu.lib: + cd $(DOSLIBDIR)/hw/cpu && ./make.sh +$(DOSLIBDIR)/hw/dos/dos86l/dos.lib: + cd $(DOSLIBDIR)/hw/dos && ./make.sh + +# library deps 16-bit huge +$(DOSLIBDIR)/hw/cpu/dos86h/cpu.lib: + cd $(DOSLIBDIR)/hw/cpu && ./make.sh +$(DOSLIBDIR)/hw/dos/dos86h/dos.lib: + cd $(DOSLIBDIR)/hw/dos && ./make.sh + +# library deps 32-bit flat +$(DOSLIBDIR)/hw/cpu/dos386f/cpu.lib: + cd $(DOSLIBDIR)/hw/cpu && ./make.sh +$(DOSLIBDIR)/hw/dos/dos386f/dos.lib: + cd $(DOSLIBDIR)/hw/dos && ./make.sh + +# NOTE: dos86l = 16-bit large memory model. memory model must match! +cpu16.exe: cpu16.obj $(DOSLIBDIR)/hw/cpu/dos86l/cpu.lib $(DOSLIBDIR)/hw/dos/dos86l/dos.lib + %write tmp.cmd option quiet option map=cpu16.map $(DOSLIB_LDFLAGS_DOS16L) file cpu16.obj name cpu16.exe + %write tmp.cmd library $(DOSLIBDIR)/hw/cpu/dos86l/cpu.lib + %write tmp.cmd library $(DOSLIBDIR)/hw/dos/dos86l/dos.lib + @wlink @tmp.cmd +cpu16.obj: cpu.c + wcl $(FLAGS) -fo=cpu16.obj -ml $(DOSLIB_CFLAGS_DOS16L) -c cpu.c + +# NOTE: dos86h = 16-bit huge memory model. memory model must match! +cpu16h.exe: cpu16h.obj $(DOSLIBDIR)/hw/cpu/dos86h/cpu.lib $(DOSLIBDIR)/hw/dos/dos86h/dos.lib + %write tmp.cmd option quiet option map=cpu16h.map $(DOSLIB_LDFLAGS_DOS16H) file cpu16h.obj name cpu16h.exe + %write tmp.cmd library $(DOSLIBDIR)/hw/cpu/dos86h/cpu.lib + %write tmp.cmd library $(DOSLIBDIR)/hw/dos/dos86h/dos.lib + @wlink @tmp.cmd +cpu16h.obj: cpu.c + wcl $(FLAGS) -fo=cpu16h.obj -mh $(DOSLIB_CFLAGS_DOS16H) -c cpu.c + +# NOTE: dos386f = 32-bit flat memory model. memory model must match! +cpu32.exe: cpu32.obj $(DOSLIBDIR)/hw/cpu/dos386f/cpu.lib $(DOSLIBDIR)/hw/dos/dos386f/dos.lib + %write tmp.cmd option quiet option map=cpu32.map $(DOSLIB_LDFLAGS_DOS32) file cpu32.obj name cpu32.exe + %write tmp.cmd library $(DOSLIBDIR)/hw/cpu/dos386f/cpu.lib + %write tmp.cmd library $(DOSLIBDIR)/hw/dos/dos386f/dos.lib + @wlink @tmp.cmd +cpu32.obj: cpu.c + wcl386 $(FLAGS) -fo=cpu32.obj -mf $(DOSLIB_CFLAGS_DOS32) -c cpu.c + diff --git a/src/lib/doslib b/src/lib/doslib index 36710d8b..3cd32ddb 160000 --- a/src/lib/doslib +++ b/src/lib/doslib @@ -1 +1 @@ -Subproject commit 36710d8b91d259ed353e537c17a387e737924469 +Subproject commit 3cd32ddbcd4e7802b346c08bf8dfa93c51229e89 -- 2.39.5