blob: a39375b7bd095bd25c1c6cd72b5621922ca89495 (
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
26
27
28
29
|
.SECONDARY:
GENERATOR=netlist_ast.ml netlist_gen.ml netlist_gen.mli
AUXILLARY=alu.ml
SCHED=../sched/main.native
SIM=../csim/csim
MON=../monitor/mon
all: _build/cpu_opt.dumb
$(MON) $(SIM) -rom ROM0 prog_rom0.rom $<
%.sim: _build/%.dumb
$(SIM) -n 12 $<
_build/%.dumb _build/%.snet _build/%_opt.dumb _build/%_opt.snet: _build/%.net
$(SCHED) $<
_build/%.net: _build/%.native
./$< > $@
_build/%.native: $(GENERATOR) $(AUXILLARY) %.ml
ocamlbuild `basename $@`
# remove stupid symbolic link
rm `basename $@`
clean:
rm -rf _build
|