summaryrefslogtreecommitdiff
path: root/cpu/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/Makefile')
-rw-r--r--cpu/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/cpu/Makefile b/cpu/Makefile
index e2ef7a8..74bfbae 100644
--- a/cpu/Makefile
+++ b/cpu/Makefile
@@ -1,21 +1,23 @@
.SECONDARY:
-GENERATOR=netlist_ast.ml netlist_gen.ml netlist_gen.mli netlist_proc.ml
+GENERATOR=netlist_ast.ml netlist_gen.ml netlist_gen.mli
AUXILLARY=alu.ml
SCHED=../sched/main.byte
SIM=../csim/csim
+all: cpu_opt.sim
+
%.sim: _build/%.dumb
$(SIM) $<
_build/%.dumb _build/%.snet _build/%_opt.dumb _build/%_opt.snet: _build/%.net
$(SCHED) $<
-_build/%.net: _build/%.byte
+_build/%.net: _build/%.native
./$< > $@
-_build/%.byte: $(GENERATOR) $(AUXILLARY) %.ml
+_build/%.native: $(GENERATOR) $(AUXILLARY) %.ml
ocamlbuild `basename $@`
# remove stupid symbolic link
rm `basename $@`