2019-06-10 15:13:46 -04:00
|
|
|
CFSTARGETS = cfsin/zasm cfsin/sdct cfsin/user.h
|
2019-06-03 13:34:16 -04:00
|
|
|
BASE = ../../..
|
|
|
|
TOOLS = $(BASE)/tools
|
|
|
|
ZASM = $(TOOLS)/zasm.sh
|
|
|
|
KERNEL = $(BASE)/kernel
|
|
|
|
APPS = $(BASE)/apps
|
|
|
|
CFSPACK = $(TOOLS)/cfspack/cfspack
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: os.bin sdcard.cfs
|
|
|
|
|
|
|
|
os.bin: glue.asm
|
|
|
|
$(ZASM) $(KERNEL) < $< > $@
|
|
|
|
|
|
|
|
$(CFSPACK):
|
|
|
|
make -C $(TOOLS)/cfspack
|
|
|
|
|
|
|
|
sdcard.cfs: $(CFSTARGETS) $(CFSPACK)
|
|
|
|
$(CFSPACK) cfsin > $@
|
|
|
|
|
|
|
|
cfsin/zasm: $(ZASMBIN)
|
|
|
|
$(ZASM) $(KERNEL) $(APPS) user.h < $(APPS)/zasm/glue.asm > $@
|
|
|
|
|
2019-06-10 15:13:46 -04:00
|
|
|
cfsin/sdct: $(ZASMBIN)
|
|
|
|
$(ZASM) $(APPS) user.h < $(APPS)/sdct/glue.asm > $@
|
|
|
|
|
2019-06-03 13:34:16 -04:00
|
|
|
cfsin/user.h: user.h
|
|
|
|
cp $< $@
|