bbc-basic: Slight tweak to heap size.
[jackhill/mal.git] / nasm / Makefile
dissimilarity index 99%
index 3eddf75..a3cf08c 100644 (file)
@@ -1,17 +1,17 @@
-step0_repl: step0_repl.asm
-       nasm -felf64 step0_repl.asm
-       ld -o $@ step0_repl.o
-
-COMPONENTS=core.asm reader.asm printer.asm types.asm system.asm
-
-step1_read_print: step1_read_print.asm $(COMPONENTS)
-       nasm -felf64 step1_read_print.asm
-       ld -o $@ step1_read_print.o
-
-step2_eval: step2_eval.asm $(COMPONENTS)
-       nasm -felf64 step2_eval.asm
-       ld -o $@ step2_eval.o
-
-step3_env: step3_env.asm $(COMPONENTS)
-       nasm -felf64 step3_env.asm
-       ld -o $@ step3_env.o
+
+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
+
+COMPONENTS = env.asm core.asm reader.asm printer.asm types.asm system.asm exceptions.asm
+
+
+all: $(STEPS)
+
+%.o: %.asm $(COMPONENTS)
+       nasm -felf64 $<
+
+%: %.o
+       ld -o $@ $<
+
+.PHONY: clean
+clean:
+       rm -f $(STEPS) $(STEPS:%=%.o)