Project

General

Profile

Revision 6ba539c0

View differences:

vhdl_json/Makefile
2 2
OPTIONS=-vhdl -print
3 3
GEN_VHDL=-gen_vhdl
4 4
GEN_MINIVHDL=-gen_minivhdl
5
GEN_LUSTRE=-gen_lustre
5 6
OUTPUT=-o
6 7
SRCS := $(shell find vhdl_files/ -type f -name '*.json')
7 8
DSTS_VHD=$(SRCS:.json=.json.vhd)
8 9
DSTS_MVHD=$(SRCS:.json=.mvhd)
10
DSTS_LUS=$(SRCS:.json=.lus)
9 11

  
10 12
RM = /bin/rm
11 13

  
12
test: $(DSTS_VHD)	$(DSTS_MVHD)
14
test: $(DSTS_VHD)	$(DSTS_MVHD) $(DSTS_LUS)
13 15

  
14 16
%.json.vhd : %.json
15 17
	-$(EXEC) $(OPTIONS) $(GEN_VHDL) $(OUTPUT) $@ $<
......
17 19
%.mvhd : %.json
18 20
	-$(EXEC) $(OPTIONS) $(GEN_MINIVHDL) $(OUTPUT) $@ $<
19 21

  
22
%.lus : %.json
23
	-$(EXEC) $(OPTIONS) $(GEN_LUS) $(OUTPUT) $@ $<
24

  
20 25
clean:
21
	@$(RM) -f $(DSTS)
26
	@$(RM) -f $(DSTS_VHD) $(DSTS_MVHD) $(DSTS_LUS)

Also available in: Unified diff