-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile.win
80 lines (66 loc) · 2.4 KB
/
Makefile.win
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
# 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_axl | build
#
# 2) To clean the project run:
#
# >> make -f Makefile.win clean_axl | clean
#
# Requirements: mingw, msys, make and gcc
#
include config.mk
export axl_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
# 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 = windows
#############################################
# after this line lines shouldn't be edited #
#############################################
# axl
axl = src
axl_ns = ns
axl_babel = babel
axl_test = test
axl_knife = knife
export axl_dll = libaxl
all: build_axl
build: build_axl
build_axl:
@echo
@echo "Building libaxl.."
@cd $(axl); AXL_VERSION=$(axl_version) make -f Makefile.win; cd -
@echo "Building libaxl (Namespaces).."
@cd $(axl_ns); AXL_VERSION=$(axl_version) make -f Makefile.win; cd -
@echo "Building libaxl (BABEL).."
@cd $(axl_babel); AXL_VERSION=$(axl_version) make -f Makefile.win; cd -
@echo "Building axl-knife.."
@cd $(axl_knife); AXL_VERSION=$(axl_version) make -f Makefile.win; cd -
@echo "Building libaxl tests.."
@cd $(axl_test); AXL_VERSION=$(axl_version) make -f Makefile.win; cd -
clean: clean_axl
clean_axl:
cd $(axl); make -f Makefile.win clean; cd -
cd $(axl_ns); make -f Makefile.win clean; cd -
cd $(axl_babel); make -f Makefile.win clean; cd -
cd $(axl_test); make -f Makefile.win clean; cd -
bundle: axl_bundle
axl_bundle: prepare_nshs
@echo "generando fichero de instalación"
cp src/axl_config_win$(platform_bits).h src/axl_config.h
$(makensis) axl.nsi
prepare_nshs:
./prepare-nsh.sh $(platform_bits)