summaryrefslogtreecommitdiff
path: root/cpu/Makefile
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2013-12-19 18:31:04 +0100
committerAlex AUVOLAT <alex.auvolat@ens.fr>2013-12-19 18:31:04 +0100
commit8c63ae039b15a5de575248ed2399e8ab3c451e16 (patch)
tree90ba1285e3d2438d84ba00328714e52dd54f9483 /cpu/Makefile
parent19d450830f848c9d88d61c381c3bafde560f78bb (diff)
downloadSystDigit-Projet-8c63ae039b15a5de575248ed2399e8ab3c451e16.tar.gz
SystDigit-Projet-8c63ae039b15a5de575248ed2399e8ab3c451e16.zip
Premiers morceaux de CPU - enfin non, rien du tout...
Diffstat (limited to 'cpu/Makefile')
-rw-r--r--cpu/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/cpu/Makefile b/cpu/Makefile
new file mode 100644
index 0000000..e2ef7a8
--- /dev/null
+++ b/cpu/Makefile
@@ -0,0 +1,25 @@
+.SECONDARY:
+
+GENERATOR=netlist_ast.ml netlist_gen.ml netlist_gen.mli netlist_proc.ml
+AUXILLARY=alu.ml
+
+SCHED=../sched/main.byte
+SIM=../csim/csim
+
+%.sim: _build/%.dumb
+ $(SIM) $<
+
+_build/%.dumb _build/%.snet _build/%_opt.dumb _build/%_opt.snet: _build/%.net
+ $(SCHED) $<
+
+_build/%.net: _build/%.byte
+ ./$< > $@
+
+_build/%.byte: $(GENERATOR) $(AUXILLARY) %.ml
+ ocamlbuild `basename $@`
+ # remove stupid symbolic link
+ rm `basename $@`
+
+
+clean:
+ rm -rf _build