From: Robert Pengelly Date: Sat, 10 May 2025 08:10:09 +0000 (+0100) Subject: Added another Makefile X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=ca950b58865b3df72742fa3b8910ccc259835fa7;p=sasm.git Added another Makefile --- diff --git a/Makefile.std b/Makefile.std new file mode 100644 index 0000000..756ac29 --- /dev/null +++ b/Makefile.std @@ -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