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 $
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 #*************************************************************************
37 # --- Settings -----------------------------------------------------
39 .INCLUDE
: settings.mk
41 .IF
"$(SYSTEM_LIBXML)" == "YES"
43 @echo
"An already available installation of libxml should exist on your system."
44 @echo
"Therefore the version provided here does not need to be built in addition."
47 # --- Files --------------------------------------------------------
51 TARFILE_NAME
=$(PRJNAME
)-$(LIBXML2VERSION
)
52 #.IF "$(OS)$(COM)"=="WNTGCC"
53 #PATCH_FILE_NAME=$(TARFILE_NAME)-mingw.patch
55 PATCH_FILE_NAME
=$(TARFILE_NAME
).patch
58 # This is only for UNX environment now
63 CONFIGURE_ACTION
=.
$/configure
64 CONFIGURE_FLAGS
=--enable-ipv6
=no
--without-python
--enable-static
=no
--without-debug
--build
=i586-pc-mingw32
--host
=i586-pc-mingw32 lt_cv_cc_dll_switch
="-shared" CFLAGS
=-D_MT LDFLAGS
="-no-undefined -Wl,--enable-runtime-pseudo-reloc -L$(ILIB:s/;/ -L/)" LIBS
="-lws2_32 -lmingwthrd" OBJDUMP
="$(WRAPCMD) objdump"
65 BUILD_ACTION
=$(GNUMAKE
)
66 BUILD_DIR
=$(CONFIGURE_DIR
)
69 CONFIGURE_ACTION
=cscript configure.js
70 CONFIGURE_FLAGS
=iconv
=no sax1
=yes
72 CONFIGURE_FLAGS
+=debug
=yes
75 BUILD_DIR
=$(CONFIGURE_DIR
)
79 xml2_CFLAGS
+=-I
$(SYSBASE
)$/usr
$/include
80 .IF
"$(COMNAME)"=="sunpro5"
81 xml2_CFLAGS
+=$(ARCH_FLAGS
) $(C_RESTRICTIONFLAGS
)
82 .ENDIF
# "$(COMNAME)"=="sunpro5"
83 xml2_LDFLAGS
+=-L
$(SYSBASE
)$/usr
$/lib
84 .ENDIF
# "$(SYSBASE)"!=""
86 .IF
"$(OS)$(COM)"=="LINUXGCC"
87 xml2_LDFLAGS
+=-Wl
,-z
,noexecstack
92 CONFIGURE_ACTION
=sh .
$/configure
93 CONFIGURE_FLAGS
=--enable-ipv6
=no
--without-python
--enable-static
=yes
--with-sax1
=yes ADDCFLAGS
="$(xml2_CFLAGS)" CFLAGS
="$(EXTRA_CFLAGS)" LDFLAGS
="$(xml2_LDFLAGS) $(EXTRA_LINKFLAGS)"
95 CONFIGURE_ACTION
=.
$/configure
96 CONFIGURE_FLAGS
=--enable-ipv6
=no
--without-python
--enable-static
=no
--with-sax1
=yes ADDCFLAGS
="$(xml2_CFLAGS) $(EXTRA_CFLAGS)" LDFLAGS
="$(xml2_LDFLAGS) $(EXTRA_LINKFLAGS)"
98 BUILD_ACTION
=$(GNUMAKE
)
99 BUILD_FLAGS
+= -j
$(EXTMAXPROCESS
)
100 BUILD_DIR
=$(CONFIGURE_DIR
)
104 OUTDIR2INC
=include$/libxml
106 .IF
"$(OS)"=="MACOSX"
108 OUT2LIB
+=.libs
$/libxml2.
*.dylib
109 OUT2BIN
+=.libs
$/xmllint
113 OUT2LIB
+=.libs
$/libxml2
*.a
114 OUT2BIN
+=.libs
$/libxml2
*.dll
115 OUT2BIN
+=.libs
$/xmllint.exe
118 OUT2LIB
+=win32
$/bin.msvc
$/*.lib
119 OUT2BIN
+=win32
$/bin.msvc
$/*.dll
120 OUT2BIN
+=win32
$/bin.msvc
$/xmllint.exe
123 OUT2LIB
+=.libs
$/libxml2.so
*
124 OUT2BIN
+=.libs
$/xmllint
128 # --- Targets ------------------------------------------------------
130 .INCLUDE
: set_ext.mk