forked from soar-penguin/BGCC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.gcc482
67 lines (55 loc) · 1.5 KB
/
Makefile.gcc482
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
57
58
59
60
61
62
63
64
65
66
67
.PHONY: bgcc testsuite bidl2sl adapter bgcc_clean testsuite_clean ssl
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
export CXX=/opt/compiler/gcc-4.8.2/bin/g++
export CC=/opt/compiler/gcc-4.8.2/bin/gcc
export AR=/opt/compiler/gcc-4.8.2/bin/ar
export MAKE=/opt/compiler/gcc-4.8.2/bin/make
export OUTPUT_PATH=./output/gcc482
export OPENSSL_PATH=${shell pwd}/deps/openssl
all: ssl bgcc bidl2sl
bgcc: ssl
@echo
@echo
@echo "make bgcc..."
@$(MAKE) -C bgcc
@echo "make bgcc ok."
@echo
@echo
ssl:
if [ ! -f $(OPENSSL_PATH)/output/include/openssl/ssl.h -o ! -f $(OPENSSL_PATH)/output/lib/libssl.a ]; then cd $(OPENSSL_PATH) && chmod +x config && ./config --prefix=$(OPENSSL_PATH)/output no-shared threads && make && make install; fi
if [ ! -f $(OUTPUT_PATH) ]; then mkdir -p $(OUTPUT_PATH); fi
cp -r $(OPENSSL_PATH)/output/include $(OUTPUT_PATH)/include
cp -r $(OPENSSL_PATH)/output/lib $(OUTPUT_PATH)/lib
bidl2sl:
@echo
@echo
@echo "make bidl2sl..."
@$(MAKE) -C bidl2sl
@mkdir -p $(OUTPUT_PATH)
cp bidl2sl/bidl2sl $(OUTPUT_PATH)/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
@rm -rf $(OUTPUT_PATH)
bgcc_clean:
@$(MAKE) clean -C bgcc
bidl2sl_clean:
@$(MAKE) clean -C bidl2sl
adapter_clean:
@$(MAKE) clean -C adapter/java