+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) $<