Update ooo320-m1
[ooovba.git] / xpdf / makefile.mk
blob337c0a28c162b0728f82c9fcbbf153c4aa438922
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
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
36 PRJ=.
38 PRJNAME=xpdf
39 TARGET=xpdflib
41 # --- Settings -----------------------------------------------------
43 .INCLUDE: settings.mk
45 .IF "$(SYSTEM_POPPLER)" == "YES"
46 dummy:
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."
49 .ENDIF
51 # --- Files --------------------------------------------------------
53 TARFILE_NAME=xpdf-3.02
54 PATCH_FILES=$(TARFILE_NAME).patch
56 CONFIGURE_DIR=
57 BUILD_DIR=$(CONFIGURE_DIR)
59 .IF "$(SYSBASE)"!=""
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
69 .ENDIF
71 .IF "$(GUI)"=="UNX"
72 .IF "$(OS)"=="SOLARIS"
73 CFLAGS:=-O $(ARCH_FLAGS)
74 .IF "$(COM)$(CPU)" == "C52I"
75 CXXFLAGS:=-O2 $(ARCH_FLAGS)
76 .ELSE
77 CXXFLAGS:=-O $(ARCH_FLAGS)
78 .ENDIF
79 LDFLAGS:=$(ARCH_FLAGS)
80 .EXPORT : CFLAGS CXXFLAGS LDFLAGS
81 .ENDIF
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
88 .EXPORT: CXXFLAGS
89 .ENDIF
91 BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
92 .ELSE
93 .IF "$(COM)"=="GCC"
94 CONFIGURE_ACTION=./configure --without-x --enable-multithreaded --enable-exceptions LIBS=-lgdi32
95 BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
96 .ELSE
97 CONFIGURE_ACTION=
98 BUILD_ACTION= cmd.exe /d /c ms_make.bat
99 .ENDIF
100 .ENDIF
102 CONVERTFILES=ms_make.bat
103 BUILD_FLAGS=
105 OUT2INC= \
106 fofi$/*.h \
107 goo$/*.h \
108 xpdf$/*.h \
109 aconf.h \
110 aconf2.h
112 .IF "$(GUI)"=="UNX"
113 OUT2LIB= \
114 fofi$/lib*.a \
115 goo$/lib*.a \
116 xpdf$/lib*.a
117 .ELSE
118 .IF "$(COM)"=="GCC"
119 OUT2LIB= \
120 fofi$/lib*.a \
121 goo$/lib*.a \
122 xpdf$/lib*.a
123 .ELSE
124 OUT2LIB= \
125 fofi$/*.lib \
126 goo$/*.lib \
127 xpdf$/*.lib
128 .ENDIF
129 .ENDIF
131 # --- Targets ------------------------------------------------------
133 .INCLUDE : set_ext.mk
134 .INCLUDE : target.mk
135 .INCLUDE : tg_ext.mk