xref: /trunk/main/mythes/makefile.mk (revision 7e8ab750cfd3aa68da5fd305f11cfb43d73e574c)
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
26PRJNAME=mythes
27TARGET=mythes
28
29# --- Settings -----------------------------------------------------
30
31.INCLUDE :  settings.mk
32
33# --- Files --------------------------------------------------------
34
35
36TARFILE_NAME=mythes-1.2.4
37TARFILE_MD5=a8c2c5b8f09e7ede322d5c602ff6a4b6
38
39ADDITIONAL_FILES += makefile.mk
40
41PATCH_FILES=mythes-1.2.4-vanilla-th-gen-idx.patch \
42    mythes-1.2.4-makefile-mk.patch \
43    mythes-1.2.4-disable-example.patch
44
45.IF "$(GUI)"=="UNX"
46CONFIGURE_DIR=$(BUILD_DIR)
47
48.IF "$(SYSTEM_MYTHES)" != "YES"
49
50#relative to CONFIGURE_DIR
51# still needed also in system-mythes case as it creates the makefile
52CONFIGURE_ACTION=configure
53CONFIGURE_FLAGS= --disable-shared --with-pic
54# hunspell is only needed by the example program, which is not built
55# (see mythes-1.2.4-disable-example.patch); preset the variables so
56# configure does not abort when no hunspell pkg-config file is around
57CONFIGURE_FLAGS+= HUNSPELL_CFLAGS=-I. HUNSPELL_LIBS=-L.
58
59.IF "$(COM)"=="C52" && "$(CPU)"=="U"
60LCL_CONFIGURE_CFLAGS+=-m64
61.ENDIF
62
63.IF "$(SYSBASE)"!=""
64.IF "$(EXTRA_CFLAGS)"!=""
65LCL_CONFIGURE_CFLAGS+=$(EXTRA_CFLAGS)
66CONFIGURE_FLAGS+=CXXFLAGS="$(EXTRA_CFLAGS)"
67.ENDIF # "$(EXTRA_CFLAGS)"!=""
68.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
69CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
70.ENDIF
71
72.IF "$(LCL_CONFIGURE_CFLAGS)"!=""
73CONFIGURE_FLAGS+=CFLAGS='$(LCL_CONFIGURE_CFLAGS)'
74.ENDIF
75
76BUILD_ACTION=make
77OUT2INC += mythes.hxx
78.ENDIF
79.ENDIF # "$(GUI)"=="UNX"
80
81
82.IF "$(GUI)"=="WNT"
83.IF "$(COM)"=="GCC"
84CONFIGURE_ACTION=configure
85CONFIGURE_FLAGS= --disable-shared --with-pic
86CONFIGURE_FLAGS+= HUNSPELL_CFLAGS=-I. HUNSPELL_LIBS=-L.
87
88BUILD_ACTION=make
89
90.ELSE
91BUILD_ACTION=dmake
92.ENDIF # "$(COM)"=="GCC"
93OUT2INC += mythes.hxx
94.ENDIF # "$(GUI)"=="WNT"
95
96.IF "$(GUI)"=="OS2"
97BUILD_ACTION=dmake
98OUT2INC += mythes.hxx
99.ENDIF # "$(GUI)"=="OS2"
100
101# --- Targets ------------------------------------------------------
102
103.INCLUDE : set_ext.mk
104.INCLUDE : target.mk
105.INCLUDE : tg_ext.mk
106