2017-10-21 10:21:56 +03:00
|
|
|
|
2017-12-28 02:33:03 +03:00
|
|
|
STEPS = step0_repl step1_read_print step2_eval step3_env step4_if_fn_do step5_tco step6_file step7_quote step8_macros step9_try stepA_mal
|
|
|
|
|
2018-01-03 02:48:51 +03:00
|
|
|
COMPONENTS = env.asm core.asm reader.asm printer.asm types.asm system.asm exceptions.asm
|
2017-10-22 17:09:13 +03:00
|
|
|
|
2018-01-03 18:43:22 +03:00
|
|
|
|
2017-12-28 02:33:03 +03:00
|
|
|
all: $(STEPS)
|
|
|
|
|
2017-12-09 19:14:12 +03:00
|
|
|
%.o: %.asm $(COMPONENTS)
|
2017-11-19 02:04:53 +03:00
|
|
|
nasm -felf64 $<
|
|
|
|
|
|
|
|
%: %.o
|
|
|
|
ld -o $@ $<
|
|
|
|
|
2018-01-03 18:43:22 +03:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -f $(STEPS) $(STEPS:%=%.o)
|