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