xref: /aoo41x/main/mythes/makefile.mk (revision f7d9bc2e)
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.0
37TARFILE_MD5=067201ea8b126597670b5eff72e1f66c
38
39ADDITIONAL_FILES += makefile.mk
40
41PATCH_FILES=mythes-1.2.0-vanilla-th-gen-idx.patch \
42	mythes-1.2.0-overflow.patch \
43	mythes-1.2.0-makefile-mk.patch \
44	mythes-1.2.0-disable-example.patch
45
46.IF "$(GUI)"=="UNX"
47CONFIGURE_DIR=$(BUILD_DIR)
48
49.IF "$(SYSTEM_MYTHES)" != "YES"
50
51#relative to CONFIGURE_DIR
52# still needed also in system-mythes case as it creates the makefile
53CONFIGURE_ACTION=configure
54CONFIGURE_FLAGS= --disable-shared --with-pic
55
56.IF "$(COM)"=="C52" && "$(CPU)"=="U"
57LCL_CONFIGURE_CFLAGS+=-m64
58.ENDIF
59
60.IF "$(SYSBASE)"!=""
61.IF "$(EXTRA_CFLAGS)"!=""
62LCL_CONFIGURE_CFLAGS+=$(EXTRA_CFLAGS)
63CONFIGURE_FLAGS+=CXXFLAGS="$(EXTRA_CFLAGS)"
64.ENDIF # "$(EXTRA_CFLAGS)"!=""
65.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
66CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
67.ENDIF
68
69.IF "$(LCL_CONFIGURE_CFLAGS)"!=""
70CONFIGURE_FLAGS+=CFLAGS='$(LCL_CONFIGURE_CFLAGS)'
71.ENDIF
72
73BUILD_ACTION=make
74OUT2INC += mythes.hxx
75.ENDIF
76.ENDIF # "$(GUI)"=="UNX"
77
78
79.IF "$(GUI)"=="WNT"
80.IF "$(COM)"=="GCC"
81CONFIGURE_ACTION=configure
82CONFIGURE_FLAGS= --disable-shared --with-pic
83
84BUILD_ACTION=make
85
86.ELSE
87BUILD_ACTION=dmake
88.ENDIF # "$(COM)"=="GCC"
89OUT2INC += mythes.hxx
90.ENDIF # "$(GUI)"=="WNT"
91
92.IF "$(GUI)"=="OS2"
93BUILD_ACTION=dmake
94OUT2INC += mythes.hxx
95.ENDIF # "$(GUI)"=="OS2"
96
97# --- Targets ------------------------------------------------------
98
99.INCLUDE : set_ext.mk
100.INCLUDE : target.mk
101.INCLUDE : tg_ext.mk
102