aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2024-12-07 22:54:12 +0800
committerMistivia <i@mistivia.com>2024-12-07 22:54:12 +0800
commit3e6bf6091cc32cf11d61c0250bde9115208ad5d5 (patch)
treed451ea9afa53610fd98b574676b53d932994d130 /Makefile
parent22b08dbf32e9c5de1f10c19897422168100fa639 (diff)
simplify asm language
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1a79f46..6ef7466 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,18 @@
target = fvm
-cflags = -g
+cflags = -g -O3
ldflags = -lm
cc = gcc
+csc = chicken-csc
src = $(shell find src/ -name '*.c' -not -name 'main.c')
obj = $(src:.c=.o)
tests=$(shell find tests/ -name '*.c')
tests_bin=$(tests:.c=.bin)
-all: $(target)
+all: $(target) fvm-as
+
+fvm-as: assembler/fvm-as.scm
+ $(csc) $< -o $@
full: all $(tests_bin)