-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile.win
More file actions
163 lines (142 loc) · 8.4 KB
/
Makefile.win
File metadata and controls
163 lines (142 loc) · 8.4 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# Hey emacs this this -*- makefile -*-
# Makefile.win: compile the af-arch enviroment under the mingw
# Advanced Software Prodution Line, S.L.
#
# Instructions:
#
# 1) To compile the project run:
#
# >> make -f Makefile.win build
#
# 2) To clean the project run:
#
# >> make -f Makefile.win clean
#
# Requirements: mingw, msys, make and gcc
#
include config.mk
# version
export vortex_1_1_version=$(shell cat VERSION)
# While especifiying directories do not append the trailing slash
# general configuration
export enable_gcc_debug = -g
# axl configuration (enable log: uncomment)
# export enable_axl_log = -DSHOW_DEBUG_LOG
# force enable debug (for this to work you have to set MODE = console (not windows)
# export enable_vortex_log=-DENABLE_VORTEX_LOG
# compilation mode to use: console, windows. If console is used the
# output to the console will be allowed. Other wise, if windows
# selected the console output will be disabled. On windows platforms
# is prefered the windows mode. For debuging I recomend to use
# console.
export MODE = console
# Flags to compile OPENSSL
# Uncomment the following lines, placing the libraries following the path
# schema provided to get support OpenSSL
# export OPENSSL_FLAGS = -DENABLE_TLS_SUPPORT -Ic:/openssl-098h/include
# export OPENSSL_LIBS = c:/openssl-098h/bin/libeay32.dll c:/openssl-098h/bin/ssleay32.dll
#############################################
# after this line lines shouldn't be edited #
#############################################
# vortex configuration
vortex_1_1 = src
vortex_tunnel_1_1 = tunnel
vortex_pull_1_1 = pull
vortex_sasl_1_1 = sasl
vortex_tls_1_1 = tls
vortex_xml_rpc_1_1 = xml-rpc
vortex_http_1_1 = http
vortex_alive_1_1 = alive
vortex_websocket_1_1 = web-socket
vortex_external_1_1 = external
vortex_1_1_test = test
vortex_1_1_xml_rpc_gen = xml-rpc-gen
# library build names
export vortex_1_1_dll = libvortex-1.1
export vortex_tunnel_1_1_dll = libvortex-tunnel-1.1
export vortex_pull_1_1_dll = libvortex-pull-1.1
export vortex_sasl_1_1_dll = libvortex-sasl-1.1
export vortex_tls_1_1_dll = libvortex-tls-1.1
export vortex_xml_rpc_1_1_dll = libvortex-xml-rpc-1.1
export vortex_http_1_1_dll = libvortex-http-1.1
export vortex_alive_1_1_dll = libvortex-alive-1.1
export vortex_websocket_1_1_dll = libvortex-websocket-1.1
export vortex_external_1_1_dll = libvortex-external-1.1
# library debug build names
export vortex_debug_1_1_dll = libvortex-debug-1.1
export vortex_debug_tunnel_1_1_dll = libvortex-tunnel-debug-1.1
export vortex_debug_pull_1_1_dll = libvortex-pull-debug-1.1
export vortex_debug_sasl_1_1_dll = libvortex-sasl-debug-1.1
export vortex_debug_tls_1_1_dll = libvortex-tls-debug-1.1
export vortex_debug_xml_rpc_1_1_dll = libvortex-xml-rpc-debug-1.1
export vortex_debug_http_1_1_dll = libvortex-http-debug-1.1
export vortex_debug_alive_1_1_dll = libvortex-alive-debug-1.1
export vortex_debug_websocket_1_1_dll = libvortex-websocket-debug-1.1
export vortex_debug_external_1_1_dll = libvortex-external-debug-1.1
prepare_vortex:
export vortex_1_1_version=`cat VERSION`
./prepare-nsh.sh $(platform_bits)
build: build_vortex_1_1
build_vortex_1_1: prepare_vortex
@echo
@echo "Building libvortex 1.1.."
@echo "Building libvortex 1.1 (PRODUCTION RELEASE).."
test -d release || mkdir release
rm -rf release/libvortex-1.1
mkdir release/libvortex-1.1
@cd $(vortex_1_1); VORTEX_VERSION=$(vortex_1_1_version) release_dir=../release/libvortex-1.1 make -f Makefile.win; cd -
@cd $(vortex_sasl_1_1); VORTEX_VERSION=$(vortex_1_1_version) release_dir=../release/libvortex-1.1 make -f Makefile.win; cd -
@cd $(vortex_tls_1_1); VORTEX_VERSION=$(vortex_1_1_version) release_dir=../release/libvortex-1.1 make -f Makefile.win; cd -
@cd $(vortex_xml_rpc_1_1); VORTEX_VERSION=$(vortex_1_1_version) release_dir=../release/libvortex-1.1 make -f Makefile.win; cd -
@cd $(vortex_tunnel_1_1); VORTEX_VERSION=$(vortex_1_1_version) release_dir=../release/libvortex-1.1 make -f Makefile.win; cd -
@cd $(vortex_pull_1_1); VORTEX_VERSION=$(vortex_1_1_version) release_dir=../release/libvortex-1.1 make -f Makefile.win; cd -
@cd $(vortex_http_1_1); VORTEX_VERSION=$(vortex_1_1_version) release_dir=../release/libvortex-1.1 make -f Makefile.win; cd -
@cd $(vortex_alive_1_1); VORTEX_VERSION=$(vortex_1_1_version) release_dir=../release/libvortex-1.1 make -f Makefile.win; cd -
@cd $(vortex_websocket_1_1); VORTEX_VERSION=$(vortex_1_1_version) release_dir=../release/libvortex-1.1 make -f Makefile.win; cd -
@cd $(vortex_external_1_1); VORTEX_VERSION=$(vortex_1_1_version) release_dir=../release/libvortex-1.1 make -f Makefile.win; cd -
@cd $(vortex_1_1_test); VORTEX_VERSION=$(vortex_1_1_version) make -f Makefile.win; cd -
@cd $(vortex_1_1_xml_rpc_gen); VORTEX_VERSION=$(vortex_1_1_version) make -f Makefile.win; cd -
build_debug: build_debug_vortex_1_1
build_debug_vortex_1_1: prepare_vortex
@echo
@echo "Building libvortex 1.1 (DEBUG SUPPORT).."
test -d debug || mkdir debug
rm -rf debug/libvortex-1.1
mkdir debug/libvortex-1.1
@cd $(vortex_1_1); enable_vortex_log=-DENABLE_VORTEX_LOG VORTEX_VERSION=$(vortex_1_1_version) release_dir=../debug/libvortex-1.1 make -f Makefile.win; cd -
@cd $(vortex_sasl_1_1); enable_vortex_log=-DENABLE_VORTEX_LOG VORTEX_VERSION=$(vortex_1_1_version) release_dir=../debug/libvortex-1.1 make -f Makefile.win; cd -
@cd $(vortex_tls_1_1); enable_vortex_log=-DENABLE_VORTEX_LOG VORTEX_VERSION=$(vortex_1_1_version) release_dir=../debug/libvortex-1.1 make -f Makefile.win; cd -
@cd $(vortex_xml_rpc_1_1); enable_vortex_log=-DENABLE_VORTEX_LOG VORTEX_VERSION=$(vortex_1_1_version) release_dir=../debug/libvortex-1.1 make -f Makefile.win; cd -
@cd $(vortex_tunnel_1_1); enable_vortex_log=-DENABLE_VORTEX_LOG VORTEX_VERSION=$(vortex_1_1_version) release_dir=../debug/libvortex-1.1 make -f Makefile.win; cd -
@cd $(vortex_pull_1_1); enable_vortex_log=-DENABLE_VORTEX_LOG VORTEX_VERSION=$(vortex_1_1_version) release_dir=../debug/libvortex-1.1 make -f Makefile.win; cd -
@cd $(vortex_http_1_1); enable_vortex_log=-DENABLE_VORTEX_LOG VORTEX_VERSION=$(vortex_1_1_version) release_dir=../debug/libvortex-1.1 make -f Makefile.win; cd -
@cd $(vortex_alive_1_1); enable_vortex_log=-DENABLE_VORTEX_LOG VORTEX_VERSION=$(vortex_1_1_version) release_dir=../debug/libvortex-1.1 make -f Makefile.win; cd -
@cd $(vortex_websocket_1_1); enable_vortex_log=-DENABLE_VORTEX_LOG VORTEX_VERSION=$(vortex_1_1_version) release_dir=../debug/libvortex-1.1 make -f Makefile.win; cd -
@cd $(vortex_external_1_1); enable_vortex_log=-DENABLE_VORTEX_LOG VORTEX_VERSION=$(vortex_1_1_version) release_dir=../debug/libvortex-1.1 make -f Makefile.win; cd -
@cd $(vortex_1_1_test); enable_vortex_log=-DENABLE_VORTEX_LOG VORTEX_VERSION=$(vortex_1_1_version) make -f Makefile.win; cd -
@cd $(vortex_1_1_xml_rpc_gen); enable_vortex_log=-DENABLE_VORTEX_LOG VORTEX_VERSION=$(vortex_1_1_version) make -f Makefile.win; cd -
clean: clean_vortex_1_1
clean_vortex_1_1:
@echo "CLEANING VORTEX 1.1"
cd $(vortex_1_1); make -f Makefile.win clean; cd -
cd $(vortex_tunnel_1_1); make -f Makefile.win clean; cd -
cd $(vortex_pull_1_1); make -f Makefile.win clean; cd -
cd $(vortex_http_1_1); make -f Makefile.win clean; cd -
cd $(vortex_alive_1_1); make -f Makefile.win clean; cd -
cd $(vortex_websocket_1_1); make -f Makefile.win clean; cd -
cd $(vortex_external_1_1); make -f Makefile.win clean; cd -
cd $(vortex_xml_rpc_1_1); make -f Makefile.win clean; cd -
cd $(vortex_sasl_1_1); make -f Makefile.win clean; cd -
cd $(vortex_tls_1_1); make -f Makefile.win clean; cd -
cd $(vortex_1_1_test); make -f Makefile.win clean; cd -
cd $(vortex_1_1_xml_rpc_gen); make -f Makefile.win clean; cd -
bundle: vortex_1_1_bundle
vortex_1_1_bundle: prepare_vortex
@echo "generando fichero de instalación"
$(makensis) vortex-1.1-$(platform_bits).nsi
bundle_prepare: vortex_1_1_bundle_prepare
vortex_1_1_bundle_prepare:
make -f Makefile.win clean_vortex_1_1
make -f Makefile.win build_debug_vortex_1_1
make -f Makefile.win clean_vortex_1_1
make -f Makefile.win build_vortex_1_1