Added two new Makefiles
authorRobert Pengelly <robertapengelly@hotmail.com>
Mon, 21 Apr 2025 11:39:24 +0000 (12:39 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Mon, 21 Apr 2025 11:39:24 +0000 (12:39 +0100)
Makefile.std [new file with mode: 0644]
Makefile.wcd [new file with mode: 0644]

diff --git a/Makefile.std b/Makefile.std
new file mode 100644 (file)
index 0000000..6a670cc
--- /dev/null
@@ -0,0 +1,20 @@
+AS=pdas --oformat coff
+CC=gccwin
+LD=pdld
+
+COPTS=-S -O2 -fno-common -ansi -I. -I../pdos/pdpclib -D__WIN32__ -D__NOBIVA__ -D__PDOS__
+COBJ=aout.obj coff.obj elks.obj hashtab.obj ld.obj lib.obj link.obj map.obj \
+     mz.obj pe.obj report.obj section.obj symbol.obj vector.obj write7x.obj
+
+all: clean slink.exe
+
+slink.exe: $(COBJ)
+  $(LD) -s -nostdlib --no-insert-timestamp -o slink.exe ../pdos/pdpclib/w32start.obj $(COBJ) ../pdos/pdpclib/msvcrt.lib
+
+.c.obj:
+  $(CC) $(COPTS) $<
+  $(AS) -o $@ $*.s
+  rm -f $*.s
+
+clean:
+  rm -f *.obj slink.exe
diff --git a/Makefile.wcd b/Makefile.wcd
new file mode 100644 (file)
index 0000000..0ff9139
--- /dev/null
@@ -0,0 +1,23 @@
+#******************************************************************************
+# @file             Makefile.wcd
+# 
+# Produce MSDOS executables links with PDPCLIB created by makefile.wcd
+#******************************************************************************
+CC=wcl
+COPTS=-oneatx -ecc -zp1 -q -w -c -ml -zl -D__MSDOS__ -D__PDOS__ -fpi87 -s -zdp -zu -I. -I..\pdos\pdpclib
+
+all: clean slink.exe
+
+slink.exe: aout.obj coff.obj elks.obj hashtab.obj ld.obj \
+     lib.obj link.obj map.obj mz.obj pe.obj report.obj \
+     section.obj symbol.obj vector.obj write7x.obj
+  wlink File ..\pdos\pdpclib\dosstart.obj,ld.obj Name slink.exe Form dos Library temp.lib,..\pdos\pdpclib\watcom.lib Option quiet,nod,stack=8192,start=___asmstart,map,verbose,dosseg
+
+.c.obj:
+  $(CC) $(COPTS) $<
+  wlib -b -q temp +$*.obj
+
+clean:
+  rm -f *.obj
+  rm -f slink.exe
+  rm -f temp.lib