Updated make target for a2enh

This commit is contained in:
Luxferre
2022-08-14 15:58:45 +03:00
parent 132dcedc9e
commit 93f19d3a17
3 changed files with 28 additions and 16 deletions
+9 -4
View File
@@ -4,17 +4,22 @@ PROJNAME=equi
CFILES=equi.c
PBTDIR=platform-build-tools
PERSFILE=PERS.DAT
# Apple II target configuration
A2FLAGS=-DSTACK_SIZE=256 -DLIT_STACK_SIZE=32 -DGPD_AREA_SIZE=3072 -DCMD_BUF_SIZE=20000 -DCLT_ENTRIES_MAX=512 -DEQUI_TASKS_MAX=8
# POSIX desktop target configuration
PDFLAGS=-DSTACK_SIZE=256 -DLIT_STACK_SIZE=32 -DGPD_AREA_SIZE=3072 -DCMD_BUF_SIZE=20000 -DCLT_ENTRIES_MAX=512 -DEQUI_TASKS_MAX=8
# Common flags
DFLAGS=-DPERSIST_FILE="\"$(PERSFILE)\""
desktopcc: perscopy
cc -std=c89 -Os -o $(PROJNAME) $(CFILES) $(DFLAGS)
cc -std=c89 -Os -o $(PROJNAME) $(CFILES) $(PDFLAGS) $(DFLAGS)
# strip $(PROJNAME)
tcc: perscopy
tcc -std=c89 -o $(PROJNAME) $(CFILES) $(DFLAGS)
tcc -std=c89 -o $(PROJNAME) $(CFILES) $(PDFLAGS) $(DFLAGS)
apple2-build:
cl65 --standard c89 -O -Os -t apple2 -o $(PROJNAME).apple2 $(CFILES) $(DFLAGS)
cl65 --standard c89 -O -Os -t apple2 -C apple2-system.cfg -o $(PROJNAME).apple2 $(CFILES) $(A2FLAGS) $(DFLAGS)
apple2: apple2-build
cp $(PBTDIR)/apple2/tpl.dsk $(PROJNAME).dsk
@@ -23,7 +28,7 @@ apple2: apple2-build
java -jar $(PBTDIR)/apple2/ac.jar -dos $(PROJNAME).dsk $(PERSFILE) bin < $(PBTDIR)/$(PERSFILE)
apple2enh-build:
cl65 --standard c89 -O -Os -t apple2enh -o $(PROJNAME).a2enh $(CFILES) $(DFLAGS)
cl65 --standard c89 -O -Os -t apple2enh -C apple2enh-system.cfg -o $(PROJNAME).a2enh $(CFILES) $(A2FLAGS) $(DFLAGS)
apple2enh: apple2enh-build
cp $(PBTDIR)/apple2/tpl.dsk $(PROJNAME)-enh.dsk