From 135acf8a83bf976196f5bdb3e6d6b9446fd2490f Mon Sep 17 00:00:00 2001 From: Robert Pengelly Date: Mon, 17 Mar 2025 07:36:29 +0000 Subject: [PATCH] Updated Makefile.std --- Makefile.std | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/Makefile.std b/Makefile.std index 1c66895..fae195d 100644 --- a/Makefile.std +++ b/Makefile.std @@ -1,15 +1,35 @@ +ifeq "$(targ)" "zpg" +# Produces z/PDOS-generic executable. +# Links with PDPCLIB created by makefile.zpg +CC=gccmvs +CFLAGS=-Os +AS=as370 -mhlasm -mebcdic +AR=ar370 +LD=pdld +LDFLAGS=-s --no-insert-timestamp +COPTS=-S $(CFLAGS) -fno-common -ansi \ + -I. -I../pdos/pdpclib \ + -U__MVS__ -D__MF32__ -D__PDOSGEN__ -D__NOBIVA__ \ + -I../pdos/generic -I../pdos/src $(COPT2) +EXTRA1=--oformat mvs ../pdos/pdpclib/pgastart.o + +else AS=pdas --oformat coff CC=gccwin LD=pdld - COPTS=-S -O2 -fno-common -ansi -I. -I../pdos/pdpclib -D__WIN32__ -D__NOBIVA__ -D__PDOS__ +EXTRA1=../pdos/pdpclib/w32start.obj +EXTRA2=../pdos/pdpclib/msvcrt.lib +endif + + COBJ=append.obj ar.obj conv.obj delete.obj display.obj extract.obj \ lib.obj ranlib.obj replace.obj report.obj all: clean xar.exe xar.exe: $(COBJ) - $(LD) -s -nostdlib --no-insert-timestamp -o xar.exe ../pdos/pdpclib/w32start.obj $(COBJ) ../pdos/pdpclib/msvcrt.lib + $(LD) -s -nostdlib --no-insert-timestamp -o xar.exe $(EXTRA1) $(COBJ) $(EXTRA2) .c.obj: $(CC) $(COPTS) $< -- 2.34.1