xref: /trunk/main/libxslt/makefile.mk (revision fb46da01)
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*fb46da01SDon LewisTARFILE_MD5=db8765c8d076f1b6caafd9f2542a304a
49cdf0e10cSrcweir
50cdf0e10cSrcweir# libxslt-internal-symbols: #i112480#: Solaris ld requires symbols to be defined
51cdf0e10cSrcweirPATCH_FILES=libxslt-configure.patch \
52*fb46da01SDon Lewis            libxslt-win_manifest.patch
53cdf0e10cSrcweir
54cdf0e10cSrcweir# This is only for UNX environment now
55cdf0e10cSrcweir.IF "$(OS)"=="WNT"
56cdf0e10cSrcweir.IF "$(COM)"=="GCC"
57cdf0e10cSrcweirxslt_CC=$(CC) -mthreads
58cdf0e10cSrcweir.IF "$(MINGW_SHARED_GCCLIB)"=="YES"
59cdf0e10cSrcweirxslt_CC+=-shared-libgcc
60cdf0e10cSrcweir.ENDIF
61cdf0e10cSrcweirxslt_LIBS=
62cdf0e10cSrcweir.IF "$(MINGW_SHARED_GXXLIB)"=="YES"
63cdf0e10cSrcweirxslt_LIBS+=$(MINGW_SHARED_LIBSTDCPP)
64cdf0e10cSrcweir.ENDIF
65cdf0e10cSrcweirCONFIGURE_DIR=
66cdf0e10cSrcweirCONFIGURE_ACTION=.$/configure
67cdf0e10cSrcweirCONFIGURE_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
68cdf0e10cSrcweirBUILD_ACTION=chmod 777 xslt-config && $(GNUMAKE)
69cdf0e10cSrcweirBUILD_FLAGS+= -j$(EXTMAXPROCESS)
70cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR)
71cdf0e10cSrcweir.IF "$(GUI)$(COM)"=="WNTGCC"
72cdf0e10cSrcweir.EXPORT : PWD
73cdf0e10cSrcweir.ENDIF
74cdf0e10cSrcweir.ELSE
75cdf0e10cSrcweirCONFIGURE_DIR=win32
76cdf0e10cSrcweirCONFIGURE_ACTION=cscript configure.js
77cdf0e10cSrcweir#CONFIGURE_FLAGS=iconv=no sax1=yes
78cdf0e10cSrcweir.IF "$(debug)"!=""
79cdf0e10cSrcweirCONFIGURE_FLAGS+=debug=yes
80cdf0e10cSrcweir.ENDIF
81cdf0e10cSrcweirBUILD_ACTION=nmake
82cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR)
83cdf0e10cSrcweir.ENDIF
84cdf0e10cSrcweir.ELSE
85cdf0e10cSrcweir
86cdf0e10cSrcweir.IF "$(OS)$(COM)"=="LINUXGCC" || "$(OS)$(COM)"=="FREEBSDGCC"
87cdf0e10cSrcweirLDFLAGS:=-Wl,-rpath,'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec
88cdf0e10cSrcweir.ENDIF                  # "$(OS)$(COM)"=="LINUXGCC"
89cdf0e10cSrcweir.IF "$(OS)$(COM)"=="SOLARISC52"
90cdf0e10cSrcweirLDFLAGS:=-Wl,-R'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib'
91cdf0e10cSrcweir.ENDIF                  # "$(OS)$(COM)"=="SOLARISC52"
92cdf0e10cSrcweir
93cdf0e10cSrcweir.IF "$(SYSBASE)"!=""
94cdf0e10cSrcweirCPPFLAGS+:=-I$(SOLARINCDIR)$/external -I$(SYSBASE)$/usr$/include $(EXTRA_CFLAGS)
95cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" || "$(OS)"=="LINUX"
96cdf0e10cSrcweirLDFLAGS+:=-L$(SOLARLIBDIR) -L$(SYSBASE)$/lib -L$(SYSBASE)$/usr$/lib -lpthread -ldl
97cdf0e10cSrcweir.ENDIF
98cdf0e10cSrcweir.ENDIF			# "$(SYSBASE)"!=""
99cdf0e10cSrcweir
100cdf0e10cSrcweir.EXPORT: CPPFLAGS
101cdf0e10cSrcweir.EXPORT: LDFLAGS
102cdf0e10cSrcweir.EXPORT: LIBXML2LIB
103cdf0e10cSrcweir
104cdf0e10cSrcweir.IF "$(COMNAME)"=="sunpro5"
105cdf0e10cSrcweirCPPFLAGS+:=$(ARCH_FLAGS) -xc99=none
106cdf0e10cSrcweir.ENDIF                  # "$(COMNAME)"=="sunpro5"
107cdf0e10cSrcweirCONFIGURE_DIR=
108cdf0e10cSrcweirCONFIGURE_ACTION=.$/configure
1094a0a8088StruckmanCONFIGURE_FLAGS=--enable-ipv6=no --without-crypto --without-python --enable-static=no --with-sax1=yes ac_cv_func_clock_gettime=false
110cdf0e10cSrcweirBUILD_ACTION=chmod 777 xslt-config && $(GNUMAKE)
111cdf0e10cSrcweirBUILD_FLAGS+= -j$(EXTMAXPROCESS)
112cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR)
113cdf0e10cSrcweir.ENDIF
114cdf0e10cSrcweir
115cdf0e10cSrcweirOUT2INC=libxslt$/*.h
116cdf0e10cSrcweir
117cdf0e10cSrcweir.IF "$(OS)"=="MACOSX"
118cdf0e10cSrcweirOUT2LIB+=libxslt$/.libs$/libxslt.*.dylib
119cdf0e10cSrcweirOUT2LIB+=libexslt$/.libs$/libexslt.*.dylib
120cdf0e10cSrcweirOUT2BIN+=xsltproc$/.libs$/xsltproc
121cdf0e10cSrcweirOUT2BIN+=xslt-config
122cdf0e10cSrcweir.ELIF "$(OS)"=="WNT"
123cdf0e10cSrcweir.IF "$(COM)"=="GCC"
124cdf0e10cSrcweirOUT2LIB+=libxslt$/.libs$/*.a
125cdf0e10cSrcweirOUT2LIB+=libexslt$/.libs$/*.a
126cdf0e10cSrcweirOUT2BIN+=libxslt$/.libs$/*.dll
127cdf0e10cSrcweirOUT2BIN+=libexslt$/.libs$/*.dll
128cdf0e10cSrcweirOUT2BIN+=xsltproc$/.libs$/*.exe*
129cdf0e10cSrcweirOUT2BIN+=xslt-config
130cdf0e10cSrcweir.ELSE
131cdf0e10cSrcweirOUT2LIB+=win32$/bin.msvc$/*.lib
132cdf0e10cSrcweirOUT2BIN+=win32$/bin.msvc$/*.dll
133cdf0e10cSrcweirOUT2BIN+=win32$/bin.msvc$/*.exe
134cdf0e10cSrcweir.ENDIF
135cdf0e10cSrcweir.ELSE
136cdf0e10cSrcweirOUT2LIB+=libxslt$/.libs$/libxslt.so*
137cdf0e10cSrcweirOUT2LIB+=libexslt$/.libs$/libexslt.so*
138cdf0e10cSrcweirOUT2BIN+=xsltproc$/.libs$/xsltproc
139cdf0e10cSrcweirOUT2BIN+=xslt-config
140cdf0e10cSrcweir.ENDIF
141cdf0e10cSrcweir
142cdf0e10cSrcweir# --- Targets ------------------------------------------------------
143cdf0e10cSrcweir.ENDIF 			# L10N_framework
144cdf0e10cSrcweir.INCLUDE : set_ext.mk
145cdf0e10cSrcweir.INCLUDE : target.mk
146cdf0e10cSrcweir.INCLUDE : tg_ext.mk
147cdf0e10cSrcweir
148