fix some cores etc. when reading global template bits
[ooovba.git] / libxml2 / makefile.mk
blobf3449f0dde3f824f418131cf086c05d5f50f673d
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.24 $
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 PRJ=.
34 PRJNAME=libxml2
35 TARGET=so_libxml2
37 # --- Settings -----------------------------------------------------
39 .INCLUDE : settings.mk
41 .IF "$(SYSTEM_LIBXML)" == "YES"
42 all:
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."
45 .ENDIF
47 # --- Files --------------------------------------------------------
49 LIBXML2VERSION=2.6.31
51 TARFILE_NAME=$(PRJNAME)-$(LIBXML2VERSION)
52 #.IF "$(OS)$(COM)"=="WNTGCC"
53 #PATCH_FILE_NAME=$(TARFILE_NAME)-mingw.patch
54 #.ELSE
55 PATCH_FILE_NAME=$(TARFILE_NAME).patch
56 #.ENDIF
58 # This is only for UNX environment now
60 .IF "$(OS)"=="WNT"
61 .IF "$(COM)"=="GCC"
62 CONFIGURE_DIR=
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)
67 .ELSE
68 CONFIGURE_DIR=win32
69 CONFIGURE_ACTION=cscript configure.js
70 CONFIGURE_FLAGS=iconv=no sax1=yes
71 .IF "$(debug)"!=""
72 CONFIGURE_FLAGS+=debug=yes
73 .ENDIF
74 BUILD_ACTION=nmake
75 BUILD_DIR=$(CONFIGURE_DIR)
76 .ENDIF
77 .ELSE
78 .IF "$(SYSBASE)"!=""
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
88 .ENDIF
90 CONFIGURE_DIR=
91 .IF "$(OS)"=="OS2"
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)"
94 .ELSE
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)"
97 .ENDIF
98 BUILD_ACTION=$(GNUMAKE)
99 BUILD_FLAGS+= -j$(EXTMAXPROCESS)
100 BUILD_DIR=$(CONFIGURE_DIR)
101 .ENDIF
104 OUTDIR2INC=include$/libxml
106 .IF "$(OS)"=="MACOSX"
107 EXTRPATH=URELIB
108 OUT2LIB+=.libs$/libxml2.*.dylib
109 OUT2BIN+=.libs$/xmllint
110 OUT2BIN+=xml2-config
111 .ELIF "$(OS)"=="WNT"
112 .IF "$(COM)"=="GCC"
113 OUT2LIB+=.libs$/libxml2*.a
114 OUT2BIN+=.libs$/libxml2*.dll
115 OUT2BIN+=.libs$/xmllint.exe
116 OUT2BIN+=xml2-config
117 .ELSE
118 OUT2LIB+=win32$/bin.msvc$/*.lib
119 OUT2BIN+=win32$/bin.msvc$/*.dll
120 OUT2BIN+=win32$/bin.msvc$/xmllint.exe
121 .ENDIF
122 .ELSE
123 OUT2LIB+=.libs$/libxml2.so*
124 OUT2BIN+=.libs$/xmllint
125 OUT2BIN+=xml2-config
126 .ENDIF
128 # --- Targets ------------------------------------------------------
130 .INCLUDE : set_ext.mk
131 .INCLUDE : target.mk
132 .INCLUDE : tg_ext.mk