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 .ENDIF
# "$(SYSBASE)"!=""
68 .IF
"$(OS)"=="SOLARIS"
69 CFLAGS
:=-O
$(ARCH_FLAGS
)
70 .IF
"$(COM)$(CPU)" == "C52I"
71 CXXFLAGS
:=-O2
$(ARCH_FLAGS
)
73 CXXFLAGS
:=-O
$(ARCH_FLAGS
)
75 LDFLAGS
:=$(ARCH_FLAGS
)
76 .EXPORT
: CFLAGS CXXFLAGS LDFLAGS
79 .IF
"$(COM)$(OS)$(CPU)" == "GCCMACOSXP"
80 CONFIGURE_ACTION
=.
/configure
--without-x
--enable-multithreaded
--enable-exceptions CXXFLAGS
="-malign-natural"
82 #CONFIGURE_ACTION=./configure
83 #CONFIGURE_ACTION=./configure --without-x --enable-multithreaded --enable-exceptions CFLAGS="-g -O0" CXXFLAGS="-g -O0"
84 CONFIGURE_ACTION
=.
/configure
--without-libpaper-library
--without-t1-library
--without-x
--enable-multithreaded
--enable-exceptions
87 BUILD_ACTION
=$(GNUMAKE
) -j
$(EXTMAXPROCESS
)
90 CONFIGURE_ACTION
=.
/configure
--without-x
--enable-multithreaded
--enable-exceptions LIBS
=-lgdi32
91 BUILD_ACTION
=$(GNUMAKE
) -j
$(EXTMAXPROCESS
)
94 BUILD_ACTION
= cmd.exe
/d
/c ms_make.bat
98 CONVERTFILES
=ms_make.bat
127 # --- Targets ------------------------------------------------------
129 .INCLUDE
: set_ext.mk