xref: /aoo41x/main/mythes/makefile.mk (revision 75c6398b)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28PRJ=.
29
30PRJNAME=mythes
31TARGET=mythes
32
33# --- Settings -----------------------------------------------------
34
35.INCLUDE :	settings.mk
36
37# --- Files --------------------------------------------------------
38
39
40TARFILE_NAME=mythes-1.2.0
41TARFILE_MD5=067201ea8b126597670b5eff72e1f66c
42
43ADDITIONAL_FILES += makefile.mk
44
45PATCH_FILES=mythes-1.2.0-vanilla-th-gen-idx.patch \
46	mythes-1.2.0-makefile-mk.diff \
47	mythes-1.2.0-disable-example.patch
48
49.IF "$(GUI)"=="UNX"
50CONFIGURE_DIR=$(BUILD_DIR)
51
52.IF "$(SYSTEM_MYTHES)" != "YES"
53
54#relative to CONFIGURE_DIR
55# still needed also in system-mythes case as it creates the makefile
56CONFIGURE_ACTION=configure
57CONFIGURE_FLAGS= --disable-shared --with-pic
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
86
87BUILD_ACTION=gmake
88
89.ELSE
90BUILD_ACTION=dmake
91.ENDIF # "$(COM)"=="GCC"
92OUT2INC += mythes.hxx
93.ENDIF # "$(GUI)"=="WNT"
94
95.IF "$(GUI)"=="OS2"
96BUILD_ACTION=dmake
97OUT2INC += mythes.hxx
98.ENDIF # "$(GUI)"=="OS2"
99
100# --- Targets ------------------------------------------------------
101
102.INCLUDE : set_ext.mk
103.INCLUDE : target.mk
104.INCLUDE : tg_ext.mk
105