-
Notifications
You must be signed in to change notification settings - Fork 110
/
Makefile
56 lines (45 loc) · 873 Bytes
/
Makefile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.PHONY: bgcc testsuite bidl2sl adapter bgcc_clean testsuite_clean
ifdef JAVA_HOME_1_6_33
export JAVA_HOME=$(JAVA_HOME_1_6_33)
endif
ifdef ANT_HOME_1_8
export ANT=$(ANT_HOME_1_8)/bin/ant
else
export ANT=ant
endif
all: bgcc bidl2sl adapter
export OUTPUT_PATH=./output
bgcc:
@echo
@echo
@echo "make bgcc..."
@$(MAKE) -C bgcc
@echo "make bgcc ok."
@echo
@echo
bidl2sl:
@echo
@echo
@echo "make bidl2sl..."
@$(MAKE) -C bidl2sl
@mkdir -p output
cp bidl2sl/bidl2sl output/bidl2sl
@echo "make bidl2sl ok."
@echo
@echo
adapter: bgcc
@echo
@echo
@echo "make adapter..."
@$(MAKE) -C adapter/java
cp adapter/java/output/libbgcc4j.so $(OUTPUT_PATH)/lib
@echo
@echo
clean: bgcc_clean bidl2sl_clean adapter_clean
@rm -rf output
bgcc_clean:
@$(MAKE) clean -C bgcc
bidl2sl_clean:
@$(MAKE) clean -C bidl2sl
adapter_clean:
@$(MAKE) clean -C adapter/java