Statistics
| Revision:

svn-gvsig-desktop / tags / v1_0_2_Build_916 / install / launcher / izpack-launcher-1.3 / src / Makefile.wxconfig @ 12327

History | View | Annotate | Download (1.91 KB)

1
# Makefile for systems where 'wx-config' is available.
2
# This works mainly on Unix-like systems (Linux, *BSD) and MinGW + wxWidgets 2.5.x
3
#
4
# 'all'     ---> builds the executable.
5
# 'clean'   ---> removes the compilation-generated files.
6
# 'install' ---> puts the executbale in 'dist'.
7
# 'refmsg'  ---> Invokes xgettext to produce the reference .pot file.
8
#                You can then use it to produce the translations or use
9
#                gnu's 'msgmerge $lang/launcher.po (reference)launcher.pot' to update existing ones.
10
#                where $lang is your language in which you translate i.e. fr for french 
11
#                finally use gnu's 'msgfmt -o outputfile' to convert the translation
12
#                into the expected binary file 'launcher.mo' in your lang-folder
13
#                recognized by the i18n-system of wxWindows
14

    
15
FLAGS = -Wall -O -pipe
16
CXX = `wx-config --cxx`
17
CXX_FLAGS = `wx-config --cxxflags --debug=no`
18
CXX_LIBS = `wx-config --libs --static=yes --debug=no`
19

    
20
OS = `uname`
21

    
22
APP=launcher
23
FD=failuredialog
24
SD=statusdialog
25

    
26
EXEC = ${APP}
27
OBJS = ${APP}.o ${FD}.o ${SD}.o
28

    
29

    
30

    
31
all: launcher
32

    
33
launcher: ${OBJS}
34
	${CXX} ${FLAGS} ${CXX_FLAGS} -o ${EXEC} ${OBJS} ${CXX_LIBS}
35

    
36
${APP}.o: ${APP}.h ${APP}.cpp ${FD}.h
37
	${CXX} ${FLAGS} ${CXX_FLAGS} -c ${APP}.cpp
38

    
39
${FD}.o: ${FD}.h ${FD}.cpp
40
	${CXX} ${FLAGS} ${CXX_FLAGS} -c ${FD}.cpp
41
	
42
${SD}.o: ${SD}.h ${SD}.cpp
43
	${CXX} ${FLAGS} ${CXX_FLAGS} -c ${SD}.cpp
44

    
45
install: all install_lang
46
	cp ${EXEC} ../dist/${EXEC}-${OS}
47
	strip ../dist/${EXEC}-${OS}
48
	cp ${EXEC}.ini ../dist/${EXEC}.ini
49

    
50
install_lang:
51
	mkdir -p ../dist/fr ../dist/de ../dist/da ../dist/pt-BR ../dist/es ../dist/it ../dist/nl
52
	cp fr/launcher.mo ../dist/fr
53
	cp es/launcher.mo ../dist/es
54
	cp de/launcher.mo ../dist/de
55
	cp da/launcher.mo ../dist/da
56
	cp pt-BR/launcher.mo ../dist/pt-BR
57
	cp it/launcher.mo ../dist/it
58
	cp nl/launcher.mo ../dist/nl
59

    
60
clean:
61
	rm -f ${EXEC} ${OBJS}
62

    
63
refmsg:
64
	xgettext -C -n -k_ -o launcher.pot *.cpp