X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=Makefile;h=7e3b60456bfff45338cf5024f087551a81d4b0dc;hb=135bac77e9403714670d582b59255f2588ec83fb;hp=012248adc33017fad4b886d323cc4fd043c8c3ef;hpb=b404f29caf2f82acc9fc4cd84e7247857878f7a8;p=rrq%2Frrqforth.git diff --git a/Makefile b/Makefile index 012248a..7e3b604 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,10 @@ -BINARY = rrqforth +INCS := $(shell grep ^include rrqforth.asm | tr -d "'" | sed 's/include//' ) -rrqforth: main.fasm - fasm $^ $@ +# compile into 3 things: binary, symbolic information and debug support +rrqforth: rrqforth.asm $(INCS) + fasm $< -s $@.fas + ./fas2txt.lsp $@.fas > $@.map + chmod a+x $@ +clean: + rm -f rrqforth{,.fas,.map}