Project

General

Profile

Download (579 Bytes) Statistics
| Branch: | Tag: | Revision:
1 2051e520 Arnaud Dieumegard
EXEC=lustrei
2 33a42553 Arnaud Dieumegard
OPTIONS=-vhdl -print
3
GEN_VHDL=-gen_vhdl
4
GEN_MINIVHDL=-gen_minivhdl
5 6ba539c0 Arnaud Dieumegard
GEN_LUSTRE=-gen_lustre
6 33a42553 Arnaud Dieumegard
OUTPUT=-o
7 2051e520 Arnaud Dieumegard
SRCS := $(shell find vhdl_files/ -type f -name '*.json')
8 33a42553 Arnaud Dieumegard
DSTS_VHD=$(SRCS:.json=.json.vhd)
9
DSTS_MVHD=$(SRCS:.json=.mvhd)
10 6ba539c0 Arnaud Dieumegard
DSTS_LUS=$(SRCS:.json=.lus)
11 2051e520 Arnaud Dieumegard
12
RM = /bin/rm
13
14 6ba539c0 Arnaud Dieumegard
test: $(DSTS_VHD)	$(DSTS_MVHD) $(DSTS_LUS)
15 2051e520 Arnaud Dieumegard
16
%.json.vhd : %.json
17 1c688dd0 Arnaud Dieumegard
	-$(EXEC) $(OPTIONS) $(GEN_VHDL) $(OUTPUT) $@ $<
18 33a42553 Arnaud Dieumegard
19
%.mvhd : %.json
20 1c688dd0 Arnaud Dieumegard
	-$(EXEC) $(OPTIONS) $(GEN_MINIVHDL) $(OUTPUT) $@ $<
21 2051e520 Arnaud Dieumegard
22 6ba539c0 Arnaud Dieumegard
%.lus : %.json
23
	-$(EXEC) $(OPTIONS) $(GEN_LUS) $(OUTPUT) $@ $<
24
25 2051e520 Arnaud Dieumegard
clean:
26 6ba539c0 Arnaud Dieumegard
	@$(RM) -f $(DSTS_VHD) $(DSTS_MVHD) $(DSTS_LUS)