mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-08 12:38:06 +11:00
26 lines
480 B
Makefile
26 lines
480 B
Makefile
|
CFSTARGETS = cfsin/zasm cfsin/user.h
|
||
|
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 > $@
|
||
|
|
||
|
cfsin/user.h: user.h
|
||
|
cp $< $@
|