xref: /aoo41x/main/libxslt/makefile.mk (revision 2d019523)
17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=.
25cdf0e10cSrcweir
26cdf0e10cSrcweirPRJNAME=libxslt
27cdf0e10cSrcweirTARGET=so_libxslt
28cdf0e10cSrcweir
29cdf0e10cSrcweir# --- Settings -----------------------------------------------------
30cdf0e10cSrcweir
31cdf0e10cSrcweir.INCLUDE :	settings.mk
32cdf0e10cSrcweir
33cdf0e10cSrcweir.IF "$(SYSTEM_LIBXSLT)" == "YES"
34cdf0e10cSrcweirall:
35cdf0e10cSrcweir	@echo "An already available installation of libxslt should exist on your system."
36cdf0e10cSrcweir	@echo "Therefore the version provided here does not need to be built in addition."
37cdf0e10cSrcweir.ENDIF
38cdf0e10cSrcweir
39cdf0e10cSrcweir# --- Files --------------------------------------------------------
40cdf0e10cSrcweir
41cdf0e10cSrcweir.IF "$(L10N_framework)"==""
42cdf0e10cSrcweir
43cdf0e10cSrcweir.INCLUDE :	libxsltversion.mk
44cdf0e10cSrcweir
45cdf0e10cSrcweirLIBXSLTVERSION=$(LIBXSLT_MAJOR).$(LIBXSLT_MINOR).$(LIBXSLT_MICRO)
46cdf0e10cSrcweir
47cdf0e10cSrcweirTARFILE_NAME=$(PRJNAME)-$(LIBXSLTVERSION)
48*2d019523SJim JagielskiTARFILE_MD5=1fc72f98e98bf4443f1651165f3aa146
49cdf0e10cSrcweir
50cdf0e10cSrcweir# libxslt-internal-symbols: #i112480#: Solaris ld requires symbols to be defined
51cdf0e10cSrcweirPATCH_FILES=libxslt-configure.patch \
52cdf0e10cSrcweir            libxslt-win_manifest.patch \
53*2d019523SJim Jagielski            libxslt-CVE-2015-7995.patch
54*2d019523SJim Jagielski
55cdf0e10cSrcweir
56cdf0e10cSrcweir
57cdf0e10cSrcweir# This is only for UNX environment now
58cdf0e10cSrcweir.IF "$(OS)"=="WNT"
59cdf0e10cSrcweir.IF "$(COM)"=="GCC"
60cdf0e10cSrcweirxslt_CC=$(CC) -mthreads
61cdf0e10cSrcweir.IF "$(MINGW_SHARED_GCCLIB)"=="YES"
62cdf0e10cSrcweirxslt_CC+=-shared-libgcc
63cdf0e10cSrcweir.ENDIF
64cdf0e10cSrcweirxslt_LIBS=
65cdf0e10cSrcweir.IF "$(MINGW_SHARED_GXXLIB)"=="YES"
66cdf0e10cSrcweirxslt_LIBS+=$(MINGW_SHARED_LIBSTDCPP)
67cdf0e10cSrcweir.ENDIF
68cdf0e10cSrcweirCONFIGURE_DIR=
69cdf0e10cSrcweirCONFIGURE_ACTION=.$/configure
70cdf0e10cSrcweirCONFIGURE_FLAGS=--without-crypto --without-python --enable-static=no --build=i586-pc-mingw32 --host=i586-pc-mingw32 CC="$(xslt_CC)" CFLAGS="$(xslt_CFLAGS)" LDFLAGS="-no-undefined -Wl,--enable-runtime-pseudo-reloc-v2 -L$(ILIB:s/;/ -L/)" LIBS="$(xslt_LIBS)"  LIBXML2LIB=$(LIBXML2LIB) OBJDUMP=objdump
71cdf0e10cSrcweirBUILD_ACTION=chmod 777 xslt-config && $(GNUMAKE)
72cdf0e10cSrcweirBUILD_FLAGS+= -j$(EXTMAXPROCESS)
73cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR)
74cdf0e10cSrcweir.IF "$(GUI)$(COM)"=="WNTGCC"
75cdf0e10cSrcweir.EXPORT : PWD
76cdf0e10cSrcweir.ENDIF
77cdf0e10cSrcweir.ELSE
78cdf0e10cSrcweirCONFIGURE_DIR=win32
79cdf0e10cSrcweirCONFIGURE_ACTION=cscript configure.js
80cdf0e10cSrcweir#CONFIGURE_FLAGS=iconv=no sax1=yes
81cdf0e10cSrcweir.IF "$(debug)"!=""
82cdf0e10cSrcweirCONFIGURE_FLAGS+=debug=yes
83cdf0e10cSrcweir.ENDIF
84cdf0e10cSrcweirBUILD_ACTION=nmake
85cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR)
86cdf0e10cSrcweir.ENDIF
87cdf0e10cSrcweir.ELSE
88cdf0e10cSrcweir
89cdf0e10cSrcweir.IF "$(OS)$(COM)"=="LINUXGCC" || "$(OS)$(COM)"=="FREEBSDGCC"
90cdf0e10cSrcweirLDFLAGS:=-Wl,-rpath,'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec
91cdf0e10cSrcweir.ENDIF                  # "$(OS)$(COM)"=="LINUXGCC"
92cdf0e10cSrcweir.IF "$(OS)$(COM)"=="SOLARISC52"
93cdf0e10cSrcweirLDFLAGS:=-Wl,-R'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib'
94cdf0e10cSrcweir.ENDIF                  # "$(OS)$(COM)"=="SOLARISC52"
95cdf0e10cSrcweir
96cdf0e10cSrcweir.IF "$(SYSBASE)"!=""
97cdf0e10cSrcweirCPPFLAGS+:=-I$(SOLARINCDIR)$/external -I$(SYSBASE)$/usr$/include $(EXTRA_CFLAGS)
98cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" || "$(OS)"=="LINUX"
99cdf0e10cSrcweirLDFLAGS+:=-L$(SOLARLIBDIR) -L$(SYSBASE)$/lib -L$(SYSBASE)$/usr$/lib -lpthread -ldl
100cdf0e10cSrcweir.ENDIF
101cdf0e10cSrcweir.ENDIF			# "$(SYSBASE)"!=""
102cdf0e10cSrcweir
103cdf0e10cSrcweir.EXPORT: CPPFLAGS
104cdf0e10cSrcweir.EXPORT: LDFLAGS
105cdf0e10cSrcweir.EXPORT: LIBXML2LIB
106cdf0e10cSrcweir
107cdf0e10cSrcweir.IF "$(COMNAME)"=="sunpro5"
108cdf0e10cSrcweirCPPFLAGS+:=$(ARCH_FLAGS) -xc99=none
109cdf0e10cSrcweir.ENDIF                  # "$(COMNAME)"=="sunpro5"
110cdf0e10cSrcweirCONFIGURE_DIR=
111cdf0e10cSrcweirCONFIGURE_ACTION=.$/configure
112*2d019523SJim JagielskiCONFIGURE_FLAGS=--enable-ipv6=no --without-crypto --without-python --enable-static=no --with-sax1=yes ac_cv_func_clock_gettime=false
113cdf0e10cSrcweirBUILD_ACTION=chmod 777 xslt-config && $(GNUMAKE)
114cdf0e10cSrcweirBUILD_FLAGS+= -j$(EXTMAXPROCESS)
115cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR)
116cdf0e10cSrcweir.ENDIF
117cdf0e10cSrcweir
118cdf0e10cSrcweirOUT2INC=libxslt$/*.h
119cdf0e10cSrcweir
120cdf0e10cSrcweir.IF "$(OS)"=="MACOSX"
121cdf0e10cSrcweirOUT2LIB+=libxslt$/.libs$/libxslt.*.dylib
122cdf0e10cSrcweirOUT2LIB+=libexslt$/.libs$/libexslt.*.dylib
123cdf0e10cSrcweirOUT2BIN+=xsltproc$/.libs$/xsltproc
124cdf0e10cSrcweirOUT2BIN+=xslt-config
125cdf0e10cSrcweir.ELIF "$(OS)"=="WNT"
126cdf0e10cSrcweir.IF "$(COM)"=="GCC"
127cdf0e10cSrcweirOUT2LIB+=libxslt$/.libs$/*.a
128cdf0e10cSrcweirOUT2LIB+=libexslt$/.libs$/*.a
129cdf0e10cSrcweirOUT2BIN+=libxslt$/.libs$/*.dll
130cdf0e10cSrcweirOUT2BIN+=libexslt$/.libs$/*.dll
131cdf0e10cSrcweirOUT2BIN+=xsltproc$/.libs$/*.exe*
132cdf0e10cSrcweirOUT2BIN+=xslt-config
133cdf0e10cSrcweir.ELSE
134cdf0e10cSrcweirOUT2LIB+=win32$/bin.msvc$/*.lib
135cdf0e10cSrcweirOUT2BIN+=win32$/bin.msvc$/*.dll
136cdf0e10cSrcweirOUT2BIN+=win32$/bin.msvc$/*.exe
137cdf0e10cSrcweir.ENDIF
138cdf0e10cSrcweir.ELSE
139cdf0e10cSrcweirOUT2LIB+=libxslt$/.libs$/libxslt.so*
140cdf0e10cSrcweirOUT2LIB+=libexslt$/.libs$/libexslt.so*
141cdf0e10cSrcweirOUT2BIN+=xsltproc$/.libs$/xsltproc
142cdf0e10cSrcweirOUT2BIN+=xslt-config
143cdf0e10cSrcweir.ENDIF
144cdf0e10cSrcweir
145cdf0e10cSrcweir# --- Targets ------------------------------------------------------
146cdf0e10cSrcweir.ENDIF 			# L10N_framework
147cdf0e10cSrcweir.INCLUDE : set_ext.mk
148cdf0e10cSrcweir.INCLUDE : target.mk
149cdf0e10cSrcweir.INCLUDE : tg_ext.mk
150cdf0e10cSrcweir
151