xref: /aoo4110/main/l10ntools/source/makefile.mk (revision b1cdbd2c)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=..
25
26INCPRE=$(MISC)
27
28PRJNAME=l10ntools
29TARGET=transex
30TARGETTYPE=CUI
31LIBTARGET=no
32# --- Settings -----------------------------------------------------
33ENABLE_EXCEPTIONS=TRUE
34
35.INCLUDE :  settings.mk
36CDEFS+= -DYY_NEVER_INTERACTIVE=1
37#CDEFS+= -pg
38
39.IF "$(SYSTEM_EXPAT)" == "YES"
40CFLAGS+=-DSYSTEM_EXPAT
41.ENDIF
42
43
44# --- Files --------------------------------------------------------
45
46OBJFILES=   			\
47	$(OBJ)$/export.obj	\
48	$(OBJ)$/export2.obj	\
49	$(OBJ)$/merge.obj   \
50	$(OBJ)$/srciter.obj		\
51	$(OBJ)$/utf8conv.obj	\
52	$(OBJ)$/xmlparse.obj    \
53    $(OBJ)$/helpmerge.obj   \
54    $(OBJ)$/helpex.obj      \
55    $(OBJ)$/file.obj        \
56	$(OBJ)$/directory.obj
57
58
59LIB1TARGET= $(LB)$/$(TARGET).lib
60LIB1ARCHIV= $(LB)$/libtransex.a
61#LIB1FILES=  $(LB)$/transex3.lib
62LIB1OBJFILES=        $(OBJ)$/export.obj      \
63        $(OBJ)$/export2.obj     \
64        $(OBJ)$/merge.obj   \
65        $(OBJ)$/srciter.obj             \
66        $(OBJ)$/file.obj \
67		$(OBJ)$/directory.obj     \
68        $(OBJ)$/utf8conv.obj
69
70
71APP1VERSIONMAP=exports.map
72
73# extractor and merger for *.src and *.hrc
74APP1TARGET=  transex3
75#APP1OBJS=   $(OBJ)$/src_yy.obj
76APP1OBJS=   $(OBJ)$/src_yy_wrapper.obj
77
78APP1STDLIBS+= \
79            $(TOOLSLIB) \
80            $(VOSLIB) \
81            $(SALLIB)
82
83.IF "$(OS)"=="MACOSX"
84# static libs at end for OS X
85.ENDIF
86
87APP1LIBS+=	$(LB)$/$(TARGET).lib
88APP1DEPN=   $(OBJ)$/src_yy_wrapper.obj $(LB)$/$(TARGET).lib
89
90APP2TARGET= helpex
91APP2OBJS= $(OBJ)$/helpmerge.obj  $(OBJ)$/xmlparse.obj $(OBJ)$/export2.obj $(OBJ)$/utf8conv.obj $(OBJ)$/merge.obj $(OBJ)$/helpex.obj
92APP2RPATH= NONE
93
94.IF "$(OS)"!="MACOSX"
95.ENDIF
96
97APP2STDLIBS+=$(SALLIB) $(EXPATASCII3RDLIB) $(TOOLSLIB) $(VOSLIB)
98
99.IF "$(OS)"=="MACOSX"
100# static libs at end for OS X
101.ENDIF
102
103# extractor and merger for *.lng and *.lng
104APP3TARGET= ulfex
105APP3OBJS=   $(OBJ)$/lngmerge.obj $(OBJ)$/merge.obj $(OBJ)$/export2.obj $(OBJ)$/lngex.obj $(OBJ)$/utf8conv.obj
106APP3RPATH=  NONE
107
108.IF "$(OS)"!="MACOSX"
109#APP3STDLIBS+= $(BTSTRPLIB)
110.ENDIF
111APP3STDLIBS+= \
112            $(TOOLSLIB) \
113            $(VOSLIB) \
114            $(SALLIB)
115.IF "$(OS)"=="MACOSX"
116# static libs at end for OS X
117.ENDIF
118
119# encoding converter for *.gsi
120APP4TARGET= gsiconv
121APP4OBJS=   $(OBJ)$/utf8conv.obj $(OBJ)$/gsiconv.obj
122APP4STDLIBS+= \
123            $(TOOLSLIB) \
124            $(VOSLIB) \
125            $(SALLIB)
126
127# tag checker for *.gsi
128APP5TARGET= gsicheck
129APP5OBJS=   $(OBJ)$/gsicheck.obj $(OBJ)$/tagtest.obj
130APP5STDLIBS+= \
131            $(TOOLSLIB) \
132            $(VOSLIB) \
133            $(SALLIB)
134
135# extractor and merger for *.cfg
136APP6TARGET= cfgex
137APP6OBJS=   $(OBJ)$/cfgmerge.obj $(OBJ)$/cfg_yy_wrapper.obj  $(OBJ)$/merge.obj $(OBJ)$/export2.obj $(OBJ)$/utf8conv.obj
138
139.IF "$(OS)"!="MACOSX"
140#APP6STDLIBS+= $(BTSTRPLIB)
141.ENDIF
142
143APP6STDLIBS+= \
144            $(TOOLSLIB) \
145            $(VOSLIB) \
146            $(SALLIB)
147
148.IF "$(OS)"=="MACOSX"
149# static libs at end for OS X
150.ENDIF
151
152# extractor and merger for *.xrm
153APP7TARGET= xrmex
154APP7OBJS=   $(OBJ)$/xrmmerge.obj $(OBJ)$/xrm_yy_wrapper.obj $(OBJ)$/merge.obj $(OBJ)$/export2.obj $(OBJ)$/utf8conv.obj
155APP7RPATH=  NONE
156
157.IF "$(OS)"!="MACOSX"
158.ENDIF
159
160APP7STDLIBS+= \
161            $(TOOLSLIB) \
162            $(VOSLIB) \
163            $(SALLIB)
164
165.IF "$(OS)"=="MACOSX"
166# static libs at end for OS X
167.ENDIF
168
169#
170#APP8TARGET= treeconfig
171#APP8OBJS=   $(OBJ)$/treeconfig.obj $(OBJ)$/inireader.obj $(OBJ)$/export2.obj
172#APP8STDLIBS=$(TOOLSLIB) $(SALLIB) $(VOSLIB) $(ICUINLIB) $(STLPORT)
173
174# localizer for l10n framework
175APP9TARGET= localize_sl
176EXCEPTIONSFILES=                            \
177                    $(OBJ)$/localize.obj
178APP9OBJS=   $(OBJ)$/localize.obj $(OBJ)$/utf8conv.obj $(OBJ)$/srciter.obj $(OBJ)$/export2.obj $(OBJ)$/file.obj $(OBJ)$/directory.obj $(OBJ)$/treeconfig.obj $(OBJ)$/inireader.obj
179
180APP9STDLIBS+= \
181            $(TOOLSLIB) \
182            $(VOSLIB) \
183            $(ICUINLIB) \
184			$(ICUUCLIB) \
185			$(STLPORTLIB) \
186			$(SALLIB)
187
188DEPOBJFILES=$(APP1OBJS) $(APP2OBJS) $(APP3OBJS) $(APP4OBJS) $(APP5OBJS) $(APP6OBJS) $(APP7OBJS) $(APP8OBJS) $(APP9OBJS)
189
190# --- Targets ------------------------------------------------------
191
192.INCLUDE :  target.mk
193
194$(MISC)$/%_yy.c : %lex.l
195	flex -l -w -8 -o$@ $<
196
197# Helper to suppress warnings in lex generated c code, see #i57362#
198
199$(OBJ)$/src_yy_wrapper.obj: $(MISC)$/src_yy.c
200$(OBJ)$/cfg_yy_wrapper.obj: $(MISC)$/cfg_yy.c
201$(OBJ)$/xrm_yy_wrapper.obj: $(MISC)$/xrm_yy.c
202
203