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#**************************************************************
21PRJ=..$/..$/..
22
23PRJNAME=i18npool
24TARGET=index_data
25LIBTARGET=NO
26
27# --- Settings -----------------------------------------------------
28.INCLUDE :  settings.mk
29
30# Fix heap limit problem on MSC
31.IF "$(OS)" == "WNT"
32.IF  "$(COMEX)" != "8"
33CDEFS+=-Zm300
34.ENDIF
35.ENDIF
36
37# --- Files --------------------------------------------------------
38
39# index data library
40SHL1TARGET=$(TARGET)
41SHL1IMPLIB=i$(SHL1TARGET)
42
43SHL1VERSIONMAP=$(SHL1TARGET).map
44SHL1DEF=$(MISC)$/$(SHL1TARGET).def
45DEF1NAME=$(SHL1TARGET)
46
47DATA_TXTFILES:=$(shell @ls ./*.txt)
48SHL1OBJS=$(subst,./,$(SLO)$/ $(DATA_TXTFILES:s/.txt/.obj/))
49
50LIB1TARGET=	$(SLB)$/$(SHL1TARGET).lib
51LIB1OBJFILES=$(SHL1OBJS)
52
53# --- Targets ------------------------------------------------------
54.INCLUDE :  target.mk
55
56$(MISC)$/%.cxx : %.txt
57    $(AUGMENT_LIBRARY_PATH) $(BIN)$/genindex_data $< $@ $*
58
59# ugly - is this dependency really required here?
60.IF "$(GUI)" != "OS2"
61$(foreach,i,$(shell @$(FIND) . -name "*.txt") $(MISC)$/dict_$(i:b).cxx) : $(BIN)$/genindex_data$(EXECPOST)
62.ENDIF
63
64