update dev300-m57
[ooovba.git] / xpdf / makefile.mk
blob8ed25433f0830b7b47922b4de1b8565926f0b4ea
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 .ENDIF # "$(SYSBASE)"!=""
67 .IF "$(GUI)"=="UNX"
68 .IF "$(OS)"=="SOLARIS"
69 CFLAGS:=-O $(ARCH_FLAGS)
70 .IF "$(COM)$(CPU)" == "C52I"
71 CXXFLAGS:=-O2 $(ARCH_FLAGS)
72 .ELSE
73 CXXFLAGS:=-O $(ARCH_FLAGS)
74 .ENDIF
75 LDFLAGS:=$(ARCH_FLAGS)
76 .EXPORT : CFLAGS CXXFLAGS LDFLAGS
77 .ENDIF
79 .IF "$(COM)$(OS)$(CPU)" == "GCCMACOSXP"
80 CONFIGURE_ACTION=./configure --without-x --enable-multithreaded --enable-exceptions CXXFLAGS="-malign-natural"
81 .ELSE
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
85 .ENDIF
87 BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
88 .ELSE
89 .IF "$(COM)"=="GCC"
90 CONFIGURE_ACTION=./configure --without-x --enable-multithreaded --enable-exceptions LIBS=-lgdi32
91 BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
92 .ELSE
93 CONFIGURE_ACTION=
94 BUILD_ACTION= cmd.exe /d /c ms_make.bat
95 .ENDIF
96 .ENDIF
98 CONVERTFILES=ms_make.bat
99 BUILD_FLAGS=
101 OUT2INC= \
102 fofi$/*.h \
103 goo$/*.h \
104 xpdf$/*.h \
105 aconf.h \
106 aconf2.h
108 .IF "$(GUI)"=="UNX"
109 OUT2LIB= \
110 fofi$/lib*.a \
111 goo$/lib*.a \
112 xpdf$/lib*.a
113 .ELSE
114 .IF "$(COM)"=="GCC"
115 OUT2LIB= \
116 fofi$/lib*.a \
117 goo$/lib*.a \
118 xpdf$/lib*.a
119 .ELSE
120 OUT2LIB= \
121 fofi$/*.lib \
122 goo$/*.lib \
123 xpdf$/*.lib
124 .ENDIF
125 .ENDIF
127 # --- Targets ------------------------------------------------------
129 .INCLUDE : set_ext.mk
130 .INCLUDE : target.mk
131 .INCLUDE : tg_ext.mk