X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=Makefile;h=3c1f61a6bca20737a33345fb01a1e4adc459e892;hb=56a9fab0f5bfcfdd455dd1640415e64c63670d9c;hp=39e68f2b2adf940a953fa6520b32b14fc9ad48c7;hpb=3260137f947f79448a6167123d28dfbdc67d6db0;p=rrq%2Frrqforth.git diff --git a/Makefile b/Makefile index 39e68f2..3c1f61a 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,11 @@ -BINARY = rrqforth +INCS := $(shell grep ^include rrqforth.asm | tr -d "'" | sed 's/include//' ) +SRCS = rrqforth.asm $(INCS) -default: rrqforth - -version: main.fasm - git log --pretty=format:"msg db 'RRQ Forth version %h at %aI'" $< > $@ - echo "\ndb 10" >> $@ - -rrqforth: main.fasm | version - fasm $^ $@ +# compile into 3 things: binary, symbolic information and debug support +rrqforth: rrqforth.asm + fasm $< -s $@.fas + ./fas2txt.lsp $@.fas > $@.map chmod a+x $@ clean: - rm -f version rrqforth + rm -f rrqforth{,.fas,.map}