1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.7.4.1 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 # dmake create_clean -- just unpacks
33 # dmake patch -- unpacks and applies patch file
34 # dmake create_patch -- creates a patch file
41 # --- Settings -----------------------------------------------------
45 .IF
"$(SYSTEM_POPPLER)" == "YES"
47 @echo
"An already available installation of poppler should exist on your system."
48 @echo
"Therefore xpdf provided here does not need to be built in addition."
51 # --- Files --------------------------------------------------------
53 TARFILE_NAME
=xpdf-3.02
54 PATCH_FILES
=$(TARFILE_NAME
).patch
57 BUILD_DIR
=$(CONFIGURE_DIR
)
60 .IF
"$(EXTRA_CFLAGS)"!=""
61 CFLAGS
:=$(EXTRA_CFLAGS
)
62 CXXFLAGS
:=$(EXTRA_CFLAGS
)
63 .EXPORT
: CFLAGS CXXFLAGS
64 .ENDIF
# "$(EXTRA_CFLAGS)"!=""
65 .ELIF
"$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
66 CFLAGS
:=$(EXTRA_CDEFS
)
67 CXXFLAGS
+:=$(EXTRA_CDEFS
)
68 .EXPORT
: CFLAGS CXXFLAGS
72 .IF
"$(OS)"=="SOLARIS"
73 CFLAGS
:=-O
$(ARCH_FLAGS
)
74 .IF
"$(COM)$(CPU)" == "C52I"
75 CXXFLAGS
:=-O2
$(ARCH_FLAGS
)
77 CXXFLAGS
:=-O
$(ARCH_FLAGS
)
79 LDFLAGS
:=$(ARCH_FLAGS
)
80 .EXPORT
: CFLAGS CXXFLAGS LDFLAGS
83 CONFIGURE_ACTION
=configure
84 CONFIGURE_FLAGS
+=--without-x
--without-libpaper-library
--without-t1-library
--enable-multithreaded
--enable-exceptions
86 .IF
"$(OS)$(CPU)"=="MACOSXP"
87 CXXFLAGS
+=-malign-natural
91 BUILD_ACTION
=$(GNUMAKE
) -j
$(EXTMAXPROCESS
)
94 CONFIGURE_ACTION
=.
/configure
--without-x
--enable-multithreaded
--enable-exceptions LIBS
=-lgdi32
95 BUILD_ACTION
=$(GNUMAKE
) -j
$(EXTMAXPROCESS
)
98 BUILD_ACTION
= cmd.exe
/d
/c ms_make.bat
102 CONVERTFILES
=ms_make.bat
131 # --- Targets ------------------------------------------------------
133 .INCLUDE
: set_ext.mk