root / trunk / install / launcher / izpack-launcher-1.3_linux / src / Makefile.wxconfig @ 6834
History | View | Annotate | Download (1.94 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 |
SELD=selectiondialog |
24 |
SD=statusdialog |
25 |
|
26 |
EXEC = ${APP} |
27 |
OBJS = ${APP}.o ${SELD}.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 |
${SELD}.o: ${SELD}.h ${SELD}.cpp |
40 |
${CXX} ${FLAGS} ${CXX_FLAGS} -c ${SELD}.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 |
cp *.class ../dist/ |
50 |
|
51 |
install_lang: |
52 |
mkdir -p ../dist/fr ../dist/de ../dist/da ../dist/pt-BR ../dist/es ../dist/it ../dist/nl |
53 |
cp fr/launcher.mo ../dist/fr |
54 |
cp es/launcher.mo ../dist/es |
55 |
cp de/launcher.mo ../dist/de |
56 |
cp da/launcher.mo ../dist/da |
57 |
cp pt-BR/launcher.mo ../dist/pt-BR |
58 |
cp it/launcher.mo ../dist/it |
59 |
cp nl/launcher.mo ../dist/nl |
60 |
|
61 |
clean: |
62 |
rm -f ${EXEC} ${OBJS} |
63 |
|
64 |
refmsg: |
65 |
xgettext -C -n -k_ -o launcher.pot *.cpp |