COMMON/common/Makefile

19 lines
558 B
Makefile
Raw Normal View History

2020-09-26 07:40:56 +00:00
TGT=common
XAPP=../xa-pre-process/xapp
2020-09-26 07:40:56 +00:00
system.obj: $(TGT).obj appl.obj
cat $(TGT).obj appl.obj > system.obj
2018-08-07 02:14:36 +00:00
2020-09-26 07:40:56 +00:00
$(TGT).obj: rom.h $(TGT).h $(TGT).asm
xa -C -M $(TGT).asm -l $(TGT).lbl -o $(TGT).obj
2018-08-07 02:14:36 +00:00
appl.obj: rom.h macros.h globals.h appl.src
cpp -P appl.src | $(XAPP) > appl.asm
xa -C -M appl.asm -l appl.lbl -o appl.obj
2018-08-07 02:14:36 +00:00
2020-09-26 07:40:56 +00:00
globals.h: $(TGT).obj
grep -E '^(FN_XR|FN_0X|PLS_1|MNS_1|ADDR)' $(TGT).lbl | sed -e 's/, 0, 0x0000//' -e 's/, / = /' -e 's/ 0x/ \x24/' > globals.h
clean:
2020-09-26 07:40:56 +00:00
rm -f globals.h appl.asm $(TGT).obj appl.obj $(TGT).lbl appl.lbl system.obj