mirror of
https://github.com/Russell-S-Harper/COMMON.git
synced 2024-11-24 08:30:57 +00:00
Normalzing Nakefiles
This commit is contained in:
parent
ef15d3a291
commit
b1a019a1c4
@ -1,17 +1,18 @@
|
|||||||
|
TGT=common
|
||||||
XAPP=../xa-pre-process/xapp
|
XAPP=../xa-pre-process/xapp
|
||||||
|
|
||||||
system.obj: common.obj appl.obj
|
system.obj: $(TGT).obj appl.obj
|
||||||
cat common.obj appl.obj > system.obj
|
cat $(TGT).obj appl.obj > system.obj
|
||||||
|
|
||||||
common.obj: rom.h common.h common.asm
|
$(TGT).obj: rom.h $(TGT).h $(TGT).asm
|
||||||
xa -C -M common.asm -l common.lbl -o common.obj
|
xa -C -M $(TGT).asm -l $(TGT).lbl -o $(TGT).obj
|
||||||
|
|
||||||
appl.obj: rom.h macros.h globals.h appl.src
|
appl.obj: rom.h macros.h globals.h appl.src
|
||||||
cpp -P appl.src | $(XAPP) > appl.asm
|
cpp -P appl.src | $(XAPP) > appl.asm
|
||||||
xa -C -M appl.asm -l appl.lbl -o appl.obj
|
xa -C -M appl.asm -l appl.lbl -o appl.obj
|
||||||
|
|
||||||
globals.h: common.obj
|
globals.h: $(TGT).obj
|
||||||
grep -E '^(FN_XR|FN_0X|PLS_1|MNS_1|ADDR)' common.lbl | sed -e 's/, 0, 0x0000//' -e 's/, / = /' -e 's/ 0x/ \x24/' > globals.h
|
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:
|
clean:
|
||||||
rm -f globals.h appl.asm common.obj appl.obj common.lbl appl.lbl system.obj
|
rm -f globals.h appl.asm $(TGT).obj appl.obj $(TGT).lbl appl.lbl system.obj
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
emulator: emulator.h emulator.c main.c
|
TGT=emulator
|
||||||
gcc -o emulator emulator.c main.c
|
|
||||||
|
$(TGT): $(TGT).h $(TGT).c main.c
|
||||||
|
gcc -o $(TGT) $(TGT).c main.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f emulator
|
rm -f $(TGT)
|
||||||
|
Loading…
Reference in New Issue
Block a user