equi

A self-descriptive stack-based PC platform
git clone git://git.luxferre.top/equi.git
Log | Files | Refs | README | LICENSE

commit c653bf6f73faedd5dbe31bd1449a0c7d983dd974
parent 00bdae06da82eaeebe1b61cc7ebfa5ecc427ada9
Author: Luxferre <lux@ferre>
Date:   Sat,  6 Aug 2022 14:01:53 +0300

some makefile improvements

Diffstat:
MMakefile | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -3,19 +3,23 @@ PROJNAME=equi CFILES=equi.c PBTDIR=platform-build-tools +DFLAGS= desktopcc: - cc -std=c89 -Os -o $(PROJNAME) $(CFILES) + cc -std=c89 -Os -o $(PROJNAME) $(CFILES) $(DFLAGS) strip $(PROJNAME) tcc: - tcc -std=c89 -o $(PROJNAME) $(CFILES) + tcc -std=c89 -o $(PROJNAME) $(CFILES) $(DFLAGS) apple2-build: - cl65 --standard c89 -O -Os -t apple2 -o $(PROJNAME).apple2 $(CFILES) + cl65 --standard c89 -O -Os -t apple2 -o $(PROJNAME).apple2 $(CFILES) $(DFLAGS) apple2: apple2-build cp $(PBTDIR)/apple2/tpl.dsk equi.dsk java -jar $(PBTDIR)/apple2/ac.jar -p $(PROJNAME).dsk $(PROJNAME).system sys < $$(cl65 --print-target-path)/apple2/util/loader.system java -jar $(PBTDIR)/apple2/ac.jar -as $(PROJNAME).dsk $(PROJNAME) bin < $(PROJNAME).apple2 rm *.o *.apple2 + +clean: + rm -f ./$(PROJNAME) *.o *.apple2