aforth

FORTH for Linux x86-64, written in assembly.
git clone git://henryandlizzy.uk/aforth
Log | Files | Refs | README

makefile (400B)


      1 .PHONY: all run test clean
      2 
      3 all: bin/aFORTH
      4 
      5 test: all
      6 	@echo Testing...
      7 	@bin/aFORTH < test.txt
      8 
      9 run: all
     10 	@bin/aFORTH
     11 
     12 bin/aFORTH: obj/main.o
     13 	@echo Linking...
     14 	@ld -o bin/aFORTH obj/main.o
     15 
     16 obj/main.o: main.s dictionary.s interpreter.s memory.s boolean.s extras.s macros.i stack.s compiler.s input.s maths.s output.s
     17 	@echo Compiling...
     18 	@gcc -c -o obj/main.o main.s
     19 
     20 clean:
     21 	@rm obj/*
     22 	@rm bin/*