xref: /trunk/main/mythes/makefile.mk (revision a3815d2648b88f7f31a8d7b9c12f7d69f31156cd)
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
41# mythes 1.2.4 builds cleanly from the upstream tarball; no in-tree patches
42# are needed (the old 1.2.0 patches are obsolete for this version).
43
44.IF "$(GUI)"=="UNX"
45CONFIGURE_DIR=$(BUILD_DIR)
46
47.IF "$(SYSTEM_MYTHES)" != "YES"
48
49#relative to CONFIGURE_DIR
50# still needed also in system-mythes case as it creates the makefile
51CONFIGURE_ACTION=configure
52CONFIGURE_FLAGS= --disable-shared --with-pic
53# hunspell is only needed by the example program; preset the variables so
54# configure does not abort when no hunspell pkg-config file is around
55CONFIGURE_FLAGS+= HUNSPELL_CFLAGS=-I. HUNSPELL_LIBS=-L.
56
57.IF "$(COM)"=="C52" && "$(CPU)"=="U"
58LCL_CONFIGURE_CFLAGS+=-m64
59.ENDIF
60
61.IF "$(SYSBASE)"!=""
62.IF "$(EXTRA_CFLAGS)"!=""
63LCL_CONFIGURE_CFLAGS+=$(EXTRA_CFLAGS)
64CONFIGURE_FLAGS+=CXXFLAGS="$(EXTRA_CFLAGS)"
65.ENDIF # "$(EXTRA_CFLAGS)"!=""
66.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
67CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
68.ENDIF
69
70.IF "$(LCL_CONFIGURE_CFLAGS)"!=""
71CONFIGURE_FLAGS+=CFLAGS='$(LCL_CONFIGURE_CFLAGS)'
72.ENDIF
73
74BUILD_ACTION=make
75OUT2INC += mythes.hxx
76.ENDIF
77.ENDIF # "$(GUI)"=="UNX"
78
79
80.IF "$(GUI)"=="WNT"
81.IF "$(COM)"=="GCC"
82CONFIGURE_ACTION=configure
83CONFIGURE_FLAGS= --disable-shared --with-pic
84CONFIGURE_FLAGS+= HUNSPELL_CFLAGS=-I. HUNSPELL_LIBS=-L.
85
86BUILD_ACTION=make
87
88.ELSE
89BUILD_ACTION=dmake
90.ENDIF # "$(COM)"=="GCC"
91OUT2INC += mythes.hxx
92.ENDIF # "$(GUI)"=="WNT"
93
94.IF "$(GUI)"=="OS2"
95BUILD_ACTION=dmake
96OUT2INC += mythes.hxx
97.ENDIF # "$(GUI)"=="OS2"
98
99# --- Targets ------------------------------------------------------
100
101.INCLUDE : set_ext.mk
102.INCLUDE : target.mk
103.INCLUDE : tg_ext.mk
104