1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-28 03:48:05 +11:00
collapseos/recipes/rc2014/zasm/Makefile

31 lines
657 B
Makefile
Raw Normal View History

SHELLAPPS = zasm sdct memt at28w
APPTARGETS = ${SHELLAPPS:%=cfsin/%}
CFSTARGETS = $(APPTARGETS) cfsin/user.h
BASEDIR = ../../..
ZASM = $(BASEDIR)/emul/zasm/zasm
KERNEL = $(BASEDIR)/kernel
APPS = $(BASEDIR)/apps
CFSPACK = $(BASEDIR)/tools/cfspack/cfspack
2019-06-04 03:34:16 +10:00
.PHONY: all
all: os.bin sdcard.cfs
os.bin: glue.asm
$(ZASM) $(KERNEL) $(APPS) < glue.asm > $@
2019-06-04 03:34:16 +10:00
$(CFSPACK):
make -C $(BASEDIR)/tools/cfspack
2019-06-04 03:34:16 +10:00
sdcard.cfs: $(CFSTARGETS) $(CFSPACK)
$(CFSPACK) cfsin > $@
$(APPTARGETS): $(ZASMBIN)
$(ZASM) $(KERNEL) $(APPS) user.h < $(APPS)/${@:cfsin/%=%}/glue.asm > $@
2019-06-04 03:34:16 +10:00
cfsin/user.h: user.h
cp user.h $@
.PHONY: clean
clean:
rm -f $(CFSTARGETS) sdcard.cfs os.bin