xref: /aoo4110/main/l10ntools/layout/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=tralay
30#TARGETTYPE=GUI
31TARGETTYPE=CUI
32LIBTARGET=no
33
34# --- Settings -----------------------------------------------------
35
36ENABLE_EXCEPTIONS=TRUE
37
38.INCLUDE :  settings.mk
39
40.IF "$(SYSTEM_EXPAT)" == "YES"
41CFLAGS+=-DSYSTEM_EXPAT
42.ENDIF
43
44# --- Files --------------------------------------------------------
45
46APP1TARGET=$(TARGET)
47
48OBJFILES =\
49	$(OBJ)/export2.obj\
50	$(OBJ)/helpmerge.obj\
51	$(OBJ)/layoutparse.obj\
52	$(OBJ)/merge.obj\
53	$(OBJ)/tralay.obj\
54	$(OBJ)/xmlparse.obj
55
56APP1OBJS = $(OBJFILES)
57
58APP1STDLIBS =\
59	$(TOOLSLIB)\
60	$(EXPATASCII3RDLIB)\
61	$(VOSLIB)\
62	$(CPPULIB) \
63	$(SALLIB)
64
65# --- Targets ------------------------------------------------------
66
67.INCLUDE :  target.mk
68
69test .PHONY:
70	../$(INPATH)/bin/tralay -l en-US -o out.sdf zoom.xml
71	cat out.sdf > trans.sdf
72	sed 's/en-US\t/de\tde:/' out.sdf >> trans.sdf
73	../$(INPATH)/bin/tralay -m trans.sdf -l de -o zoom-DE.xml zoom.xml
74