INC := config.inc z180reg.inc z180.lib ioctl.inc
+EXTRA_DIST := autorevision.cache version.inc
OBJ := $(SRC:.180=.rel)
ALLOBJ := $(ALLSRC:.180=.rel)
SYSFILE = cpm3_$(VERS).sys
MAPFILE = bnkbios3_$(VERS).map
+ASYMFILE = bnkbios3_$(VERS).sym
DIST_NAME = z180-stamp-cpm3_$(VERS).zip
DIST_NAME_BIN = z180-stamp-cpm3-bin_$(VERS).zip
PREFIX = z180-stamp-cpm3_$(VERS)
.phony: all
all: sys
-.phony: sys bios map ldr
+.phony: sys bios map asym ldr
sys: $(SYSFILE)
bios: bnkbios3.spr
map: $(MAPFILE)
+asym: $(ASYMFILE)
ldr: cpmldr.com
cpmldr.com: cpmldr.rel ldrbios.rel
$(MAPFILE): $(SYSFILE)
ld80 -o /dev/null -ms $@ -P $(PSEG) -D $(DSEG) $(OBJ)
+$(ASYMFILE): $(SYSFILE)
+ cvtsym -o $@ -b $< bnkbios3.sym
+
$(SYSFILE): bnkbios3.spr gencpm.dat
zxcc gencpm -AUTO
.phony: bin-dist
bin-dist: $(SYSFILE) $(MAPFILE) cpmldr.com
- $(ZIP) -9 $(DIST_NAME_BIN) $(SYSFILE) $(MAPFILE) cpmldr.com
+ $(ZIP) -9 $(DIST_NAME_BIN) $(SYSFILE) $(MAPFILE) $(ASYMFILE) cpmldr.com
.phony: dist
-dist: $(SYSFILE) $(MAPFILE) cpmldr.com
+dist: $(SYSFILE) $(MAPFILE) $(ASYMFILE) cpmldr.com
$(GIT) archive --format=zip --prefix=$(PREFIX)/ -9 -o $(DIST_NAME) HEAD^{tree}
@mkdir -p $(PREFIX)
- @$(CP) autorevision.cache version.inc $(PREFIX)
- $(ZIP) -r -9 $(DIST_NAME) $(PREFIX) $(SYSFILE) $(MAPFILE) cpmldr.com
+ @$(CP) -p $(EXTRA_DIST) $(PREFIX)
+ $(ZIP) -r -9 $(DIST_NAME) $(PREFIX) $(SYSFILE) $(MAPFILE) $(ASYMFILE) cpmldr.com
@$(RM) -r $(PREFIX)