1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir# 5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir# 7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# This file is part of OpenOffice.org. 10*cdf0e10cSrcweir# 11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir# 15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir# 26*cdf0e10cSrcweir#************************************************************************* 27*cdf0e10cSrcweir 28*cdf0e10cSrcweirPRJ=.. 29*cdf0e10cSrcweir 30*cdf0e10cSrcweirINCPRE=$(MISC) 31*cdf0e10cSrcweir 32*cdf0e10cSrcweirPRJNAME=l10ntools 33*cdf0e10cSrcweirTARGET=transex 34*cdf0e10cSrcweirTARGETTYPE=CUI 35*cdf0e10cSrcweirLIBTARGET=no 36*cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 37*cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir.INCLUDE : settings.mk 40*cdf0e10cSrcweirCDEFS+= -DYY_NEVER_INTERACTIVE=1 41*cdf0e10cSrcweir#CDEFS+= -pg 42*cdf0e10cSrcweir 43*cdf0e10cSrcweir.IF "$(SYSTEM_EXPAT)" == "YES" 44*cdf0e10cSrcweirCFLAGS+=-DSYSTEM_EXPAT 45*cdf0e10cSrcweir.ENDIF 46*cdf0e10cSrcweir 47*cdf0e10cSrcweir 48*cdf0e10cSrcweir# --- Files -------------------------------------------------------- 49*cdf0e10cSrcweir 50*cdf0e10cSrcweirOBJFILES= \ 51*cdf0e10cSrcweir $(OBJ)$/export.obj \ 52*cdf0e10cSrcweir $(OBJ)$/export2.obj \ 53*cdf0e10cSrcweir $(OBJ)$/merge.obj \ 54*cdf0e10cSrcweir $(OBJ)$/srciter.obj \ 55*cdf0e10cSrcweir $(OBJ)$/utf8conv.obj \ 56*cdf0e10cSrcweir $(OBJ)$/xmlparse.obj \ 57*cdf0e10cSrcweir $(OBJ)$/helpmerge.obj \ 58*cdf0e10cSrcweir $(OBJ)$/helpex.obj \ 59*cdf0e10cSrcweir $(OBJ)$/file.obj \ 60*cdf0e10cSrcweir $(OBJ)$/directory.obj 61*cdf0e10cSrcweir 62*cdf0e10cSrcweir 63*cdf0e10cSrcweirLIB1TARGET= $(LB)$/$(TARGET).lib 64*cdf0e10cSrcweirLIB1ARCHIV= $(LB)$/libtransex.a 65*cdf0e10cSrcweir#LIB1FILES= $(LB)$/transex3.lib 66*cdf0e10cSrcweirLIB1OBJFILES= $(OBJ)$/export.obj \ 67*cdf0e10cSrcweir $(OBJ)$/export2.obj \ 68*cdf0e10cSrcweir $(OBJ)$/merge.obj \ 69*cdf0e10cSrcweir $(OBJ)$/srciter.obj \ 70*cdf0e10cSrcweir $(OBJ)$/file.obj \ 71*cdf0e10cSrcweir $(OBJ)$/directory.obj \ 72*cdf0e10cSrcweir $(OBJ)$/utf8conv.obj 73*cdf0e10cSrcweir 74*cdf0e10cSrcweir 75*cdf0e10cSrcweirAPP1VERSIONMAP=exports.map 76*cdf0e10cSrcweir 77*cdf0e10cSrcweir# extractor and merger for *.src and *.hrc 78*cdf0e10cSrcweirAPP1TARGET= transex3 79*cdf0e10cSrcweir#APP1OBJS= $(OBJ)$/src_yy.obj 80*cdf0e10cSrcweirAPP1OBJS= $(OBJ)$/src_yy_wrapper.obj 81*cdf0e10cSrcweir 82*cdf0e10cSrcweirAPP1STDLIBS+= \ 83*cdf0e10cSrcweir $(TOOLSLIB) \ 84*cdf0e10cSrcweir $(VOSLIB) \ 85*cdf0e10cSrcweir $(SALLIB) 86*cdf0e10cSrcweir 87*cdf0e10cSrcweir.IF "$(OS)"=="MACOSX" 88*cdf0e10cSrcweir# static libs at end for OS X 89*cdf0e10cSrcweir.ENDIF 90*cdf0e10cSrcweir 91*cdf0e10cSrcweirAPP1LIBS+= $(LB)$/$(TARGET).lib 92*cdf0e10cSrcweirAPP1DEPN= $(OBJ)$/src_yy_wrapper.obj $(LB)$/$(TARGET).lib 93*cdf0e10cSrcweir 94*cdf0e10cSrcweirAPP2TARGET= helpex 95*cdf0e10cSrcweirAPP2OBJS= $(OBJ)$/helpmerge.obj $(OBJ)$/xmlparse.obj $(OBJ)$/export2.obj $(OBJ)$/utf8conv.obj $(OBJ)$/merge.obj $(OBJ)$/helpex.obj 96*cdf0e10cSrcweirAPP2RPATH= NONE 97*cdf0e10cSrcweir 98*cdf0e10cSrcweir.IF "$(OS)"!="MACOSX" 99*cdf0e10cSrcweir.ENDIF 100*cdf0e10cSrcweir 101*cdf0e10cSrcweirAPP2STDLIBS+=$(SALLIB) $(EXPATASCII3RDLIB) $(TOOLSLIB) $(VOSLIB) 102*cdf0e10cSrcweir 103*cdf0e10cSrcweir.IF "$(OS)"=="MACOSX" 104*cdf0e10cSrcweir# static libs at end for OS X 105*cdf0e10cSrcweir.ENDIF 106*cdf0e10cSrcweir 107*cdf0e10cSrcweir# extractor and merger for *.lng and *.lng 108*cdf0e10cSrcweirAPP3TARGET= ulfex 109*cdf0e10cSrcweirAPP3OBJS= $(OBJ)$/lngmerge.obj $(OBJ)$/merge.obj $(OBJ)$/export2.obj $(OBJ)$/lngex.obj $(OBJ)$/utf8conv.obj 110*cdf0e10cSrcweirAPP3RPATH= NONE 111*cdf0e10cSrcweir 112*cdf0e10cSrcweir.IF "$(OS)"!="MACOSX" 113*cdf0e10cSrcweir#APP3STDLIBS+= $(BTSTRPLIB) 114*cdf0e10cSrcweir.ENDIF 115*cdf0e10cSrcweirAPP3STDLIBS+= \ 116*cdf0e10cSrcweir $(TOOLSLIB) \ 117*cdf0e10cSrcweir $(VOSLIB) \ 118*cdf0e10cSrcweir $(SALLIB) 119*cdf0e10cSrcweir.IF "$(OS)"=="MACOSX" 120*cdf0e10cSrcweir# static libs at end for OS X 121*cdf0e10cSrcweir.ENDIF 122*cdf0e10cSrcweir 123*cdf0e10cSrcweir# encoding converter for *.gsi 124*cdf0e10cSrcweirAPP4TARGET= gsiconv 125*cdf0e10cSrcweirAPP4OBJS= $(OBJ)$/utf8conv.obj $(OBJ)$/gsiconv.obj 126*cdf0e10cSrcweirAPP4STDLIBS+= \ 127*cdf0e10cSrcweir $(TOOLSLIB) \ 128*cdf0e10cSrcweir $(VOSLIB) \ 129*cdf0e10cSrcweir $(SALLIB) 130*cdf0e10cSrcweir 131*cdf0e10cSrcweir# tag checker for *.gsi 132*cdf0e10cSrcweirAPP5TARGET= gsicheck 133*cdf0e10cSrcweirAPP5OBJS= $(OBJ)$/gsicheck.obj $(OBJ)$/tagtest.obj 134*cdf0e10cSrcweirAPP5STDLIBS+= \ 135*cdf0e10cSrcweir $(TOOLSLIB) \ 136*cdf0e10cSrcweir $(VOSLIB) \ 137*cdf0e10cSrcweir $(SALLIB) 138*cdf0e10cSrcweir 139*cdf0e10cSrcweir# extractor and merger for *.cfg 140*cdf0e10cSrcweirAPP6TARGET= cfgex 141*cdf0e10cSrcweirAPP6OBJS= $(OBJ)$/cfgmerge.obj $(OBJ)$/cfg_yy_wrapper.obj $(OBJ)$/merge.obj $(OBJ)$/export2.obj $(OBJ)$/utf8conv.obj 142*cdf0e10cSrcweir 143*cdf0e10cSrcweir.IF "$(OS)"!="MACOSX" 144*cdf0e10cSrcweir#APP6STDLIBS+= $(BTSTRPLIB) 145*cdf0e10cSrcweir.ENDIF 146*cdf0e10cSrcweir 147*cdf0e10cSrcweirAPP6STDLIBS+= \ 148*cdf0e10cSrcweir $(TOOLSLIB) \ 149*cdf0e10cSrcweir $(VOSLIB) \ 150*cdf0e10cSrcweir $(SALLIB) 151*cdf0e10cSrcweir 152*cdf0e10cSrcweir.IF "$(OS)"=="MACOSX" 153*cdf0e10cSrcweir# static libs at end for OS X 154*cdf0e10cSrcweir.ENDIF 155*cdf0e10cSrcweir 156*cdf0e10cSrcweir# extractor and merger for *.xrm 157*cdf0e10cSrcweirAPP7TARGET= xrmex 158*cdf0e10cSrcweirAPP7OBJS= $(OBJ)$/xrmmerge.obj $(OBJ)$/xrm_yy_wrapper.obj $(OBJ)$/merge.obj $(OBJ)$/export2.obj $(OBJ)$/utf8conv.obj 159*cdf0e10cSrcweirAPP7RPATH= NONE 160*cdf0e10cSrcweir 161*cdf0e10cSrcweir.IF "$(OS)"!="MACOSX" 162*cdf0e10cSrcweir.ENDIF 163*cdf0e10cSrcweir 164*cdf0e10cSrcweirAPP7STDLIBS+= \ 165*cdf0e10cSrcweir $(TOOLSLIB) \ 166*cdf0e10cSrcweir $(VOSLIB) \ 167*cdf0e10cSrcweir $(SALLIB) 168*cdf0e10cSrcweir 169*cdf0e10cSrcweir.IF "$(OS)"=="MACOSX" 170*cdf0e10cSrcweir# static libs at end for OS X 171*cdf0e10cSrcweir.ENDIF 172*cdf0e10cSrcweir 173*cdf0e10cSrcweir# 174*cdf0e10cSrcweir#APP8TARGET= treeconfig 175*cdf0e10cSrcweir#APP8OBJS= $(OBJ)$/treeconfig.obj $(OBJ)$/inireader.obj $(OBJ)$/export2.obj 176*cdf0e10cSrcweir#APP8STDLIBS=$(TOOLSLIB) $(SALLIB) $(VOSLIB) $(ICUINLIB) $(STLPORT) 177*cdf0e10cSrcweir 178*cdf0e10cSrcweir# localizer for l10n framework 179*cdf0e10cSrcweirAPP9TARGET= localize_sl 180*cdf0e10cSrcweirEXCEPTIONSFILES= \ 181*cdf0e10cSrcweir $(OBJ)$/localize.obj 182*cdf0e10cSrcweirAPP9OBJS= $(OBJ)$/localize.obj $(OBJ)$/utf8conv.obj $(OBJ)$/srciter.obj $(OBJ)$/export2.obj $(OBJ)$/file.obj $(OBJ)$/directory.obj $(OBJ)$/treeconfig.obj $(OBJ)$/inireader.obj 183*cdf0e10cSrcweir 184*cdf0e10cSrcweirAPP9STDLIBS+= \ 185*cdf0e10cSrcweir $(TOOLSLIB) \ 186*cdf0e10cSrcweir $(VOSLIB) \ 187*cdf0e10cSrcweir $(ICUINLIB) \ 188*cdf0e10cSrcweir $(ICUUCLIB) \ 189*cdf0e10cSrcweir $(STLPORTLIB) \ 190*cdf0e10cSrcweir $(SALLIB) 191*cdf0e10cSrcweir 192*cdf0e10cSrcweirDEPOBJFILES=$(APP1OBJS) $(APP2OBJS) $(APP3OBJS) $(APP4OBJS) $(APP5OBJS) $(APP6OBJS) $(APP7OBJS) $(APP8OBJS) $(APP9OBJS) 193*cdf0e10cSrcweir 194*cdf0e10cSrcweir# --- Targets ------------------------------------------------------ 195*cdf0e10cSrcweir 196*cdf0e10cSrcweir.INCLUDE : target.mk 197*cdf0e10cSrcweir 198*cdf0e10cSrcweir$(MISC)$/%_yy.c : %lex.l 199*cdf0e10cSrcweir flex -l -w -8 -o$@ $< 200*cdf0e10cSrcweir 201*cdf0e10cSrcweir# Helper to suppress warnings in lex generated c code, see #i57362# 202*cdf0e10cSrcweir 203*cdf0e10cSrcweir$(OBJ)$/src_yy_wrapper.obj: $(MISC)$/src_yy.c 204*cdf0e10cSrcweir$(OBJ)$/cfg_yy_wrapper.obj: $(MISC)$/cfg_yy.c 205*cdf0e10cSrcweir$(OBJ)$/xrm_yy_wrapper.obj: $(MISC)$/xrm_yy.c 206*cdf0e10cSrcweir 207