--- /dev/null
+#******************************************************************************
+# @file Makefile.zpg
+#******************************************************************************
+
+# makefile.zpg should have been run in pdpclib first
+
+CC=gcc370
+COPTS=-S -Os -fno-common -U__MVS__ -D__MF32__ -D__PDOSGEN__ \
+ -D__NOBIVA__ -D__PDOS__ \
+ -I . -I../pdos/pdpclib -I../pdos/src -I../pdos/generic
+AS=as370
+LD=pdld --oformat mainframe -e __crt0
+
+COBJ=lib.obj parted.obj report.obj write7x.obj
+
+all: clean parted.exe
+
+parted.exe: $(COBJ)
+ $(LD) -s -o parted.exe ../pdos/pdpclib/pgastart.o $(COBJ)
+
+.c.obj:
+ $(CC) $(COPTS) $<
+ $(AS) -o $@ $*.s
+ rm -f $*.s
+
+clean:
+ rm -f *.obj parted.exe
OPTION_BOOT,
OPTION_HELP,
OPTION_LABEL,
- OPTION_PART
+ OPTION_PART,
+ OPTION_UPDATE
};
{ "-arca", OPTION_ARCA, OPTION_NO_ARG },
{ "-boot", OPTION_BOOT, OPTION_HAS_ARG },
+
{ "-help", OPTION_HELP, OPTION_NO_ARG },
+ { "-update", OPTION_UPDATE, OPTION_NO_ARG },
+
{ 0, 0, 0 }
};
}
+ case OPTION_UPDATE: {
+
+ state->update = 1;
+ break;
+
+ }
+
default: {
report_at (program_name, 0, REPORT_ERROR, "unsupported option '%s'", r);
state->image_size += 512;
state->image_size += sizeof (footer);
- if ((ofp = fopen (state->outfile, "r+b")) == NULL) {
+ if (!state->update || (ofp = fopen (state->outfile, "r+b")) == NULL) {
void *zero;
long len;
long nb_parts;
long image_size;
- int chs_align;
+ int chs_align, update;
};