summaryrefslogtreecommitdiff
path: root/cpu/Makefile
blob: e2ef7a8d145678c5e1dbc2cdd3ad6a0d3d1588c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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