2020-09-26 07:40:56 +00:00
|
|
|
TGT=common
|
2018-08-07 11:03:21 +00:00
|
|
|
XAPP=../xa-pre-process/xapp
|
2018-08-07 10:38:40 +00:00
|
|
|
|
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
|
2024-08-20 13:58:06 +00:00
|
|
|
xa -XASM $(TGT).asm -l $(TGT).lbl -o $(TGT).obj
|
2018-08-07 02:14:36 +00:00
|
|
|
|
2019-07-07 17:25:47 +00:00
|
|
|
appl.obj: rom.h macros.h globals.h appl.src
|
|
|
|
cpp -P appl.src | $(XAPP) > appl.asm
|
2024-08-20 13:58:06 +00:00
|
|
|
xa -XASM 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
|
2018-09-08 15:00:19 +00:00
|
|
|
|
2018-08-21 13:14:16 +00:00
|
|
|
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
|