Added another Makefile
authorRobert Pengelly <robertapengelly@hotmail.com>
Sat, 10 May 2025 08:10:09 +0000 (09:10 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Sat, 10 May 2025 08:10:09 +0000 (09:10 +0100)
Makefile.std [new file with mode: 0644]

diff --git a/Makefile.std b/Makefile.std
new file mode 100644 (file)
index 0000000..756ac29
--- /dev/null
@@ -0,0 +1,26 @@
+#******************************************************************************
+# @file             Makefile.std
+#******************************************************************************
+AS=pdas
+CC=gccwin
+LD=pdld
+
+COPTS=-S -O2 -fno-common -ansi -I. -I./include -I../pdos/pdpclib \
+  -I../pdos/src -D__WIN32__ -D__NOBIVA__ -D__PDOS__ -Wall \
+  -Werror -ansi -m32 -pedantic
+COBJ=as.obj bin.obj cstr.obj elks.obj expr.obj fixup.obj frag.obj hashtab.obj \
+  intel.obj kwd.obj lex.obj lib.obj list.obj listing.obj ll.obj macro.obj \
+  process.obj report.obj section.obj symbol.obj vector.obj
+
+all: clean sasm.exe
+
+sasm.exe: $(COBJ)
+  $(LD) -s -o sasm.exe ../pdos/pdpclib/w32start.obj $(COBJ) ../pdos/pdpclib/msvcrt.lib
+
+.c.obj:
+  $(CC) $(COPTS) -o $*.s $<
+  $(AS) -o $@ $*.s
+  rm -f $*.s
+
+clean:
+  rm -f sasm.exe