xref: /aoo41x/ext_libraries/apr/makefile.mk (revision 3e9d7d56)
1*3e9d7d56SAndre Fischer#/**************************************************************
2*3e9d7d56SAndre Fischer# *
3*3e9d7d56SAndre Fischer# * Licensed to the Apache Software Foundation (ASF) under one
4*3e9d7d56SAndre Fischer# * or more contributor license agreements.  See the NOTICE file
5*3e9d7d56SAndre Fischer# * distributed with this work for additional information
6*3e9d7d56SAndre Fischer# * regarding copyright ownership.  The ASF licenses this file
7*3e9d7d56SAndre Fischer# * to you under the Apache License, Version 2.0 (the
8*3e9d7d56SAndre Fischer# * "License"); you may not use this file except in compliance
9*3e9d7d56SAndre Fischer# * with the License.  You may obtain a copy of the License at
10*3e9d7d56SAndre Fischer# *
11*3e9d7d56SAndre Fischer# *   http://www.apache.org/licenses/LICENSE-2.0
12*3e9d7d56SAndre Fischer# *
13*3e9d7d56SAndre Fischer# * Unless required by applicable law or agreed to in writing,
14*3e9d7d56SAndre Fischer# * software distributed under the License is distributed on an
15*3e9d7d56SAndre Fischer# * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*3e9d7d56SAndre Fischer# * KIND, either express or implied.  See the License for the
17*3e9d7d56SAndre Fischer# * specific language governing permissions and limitations
18*3e9d7d56SAndre Fischer# * under the License.
19*3e9d7d56SAndre Fischer# *
20*3e9d7d56SAndre Fischer# *************************************************************/
21*3e9d7d56SAndre Fischer
22*3e9d7d56SAndre FischerPRJ=.
23*3e9d7d56SAndre Fischer
24*3e9d7d56SAndre FischerPRJNAME=apr
25*3e9d7d56SAndre FischerTARGET=apr
26*3e9d7d56SAndre Fischer
27*3e9d7d56SAndre Fischer# --- Settings -----------------------------------------------------
28*3e9d7d56SAndre Fischer
29*3e9d7d56SAndre Fischer.INCLUDE :	settings.mk
30*3e9d7d56SAndre Fischer
31*3e9d7d56SAndre Fischer# --- Files --------------------------------------------------------
32*3e9d7d56SAndre Fischer
33*3e9d7d56SAndre FischerAPRVERSION=1.4.5
34*3e9d7d56SAndre Fischer
35*3e9d7d56SAndre FischerTARFILE_NAME=$(PRJNAME)-$(APRVERSION)
36*3e9d7d56SAndre FischerTARFILE_MD5=97262fe54dddaf583eaaee3497a426e1
37*3e9d7d56SAndre Fischer
38*3e9d7d56SAndre Fischer.IF "$(OS)"=="WNT"
39*3e9d7d56SAndre Fischer
40*3e9d7d56SAndre FischerCONFIGURE_ACTION=cp include/apr.hw include/apr.h
41*3e9d7d56SAndre FischerBUILD_DIR=
42*3e9d7d56SAndre FischerBUILD_ACTION=INCLUDE="$(INCLUDE);./include"  nmake -f Makefile.win buildall
43*3e9d7d56SAndre Fischer
44*3e9d7d56SAndre Fischer#INSTALL_ACTION=cp Release/libapr-1.lib $(OUTDIR)/lib/libapr-1.lib
45*3e9d7d56SAndre Fischer
46*3e9d7d56SAndre Fischer.ELSE
47*3e9d7d56SAndre Fischer
48*3e9d7d56SAndre FischerCONFIGURE_DIR=
49*3e9d7d56SAndre FischerCONFIGURE_ACTION=.$/configure --prefix=$(OUTDIR) --includedir=$(OUTDIR)$/inc$/apr
50*3e9d7d56SAndre FischerCONFIGURE_FLAGS=
51*3e9d7d56SAndre Fischer
52*3e9d7d56SAndre FischerBUILD_DIR=$(CONFIGURE_DIR)
53*3e9d7d56SAndre FischerBUILD_ACTION=$(GNUMAKE)
54*3e9d7d56SAndre FischerBUILD_FLAGS+= -j$(EXTMAXPROCESS)
55*3e9d7d56SAndre Fischer
56*3e9d7d56SAndre Fischer# Make apr-1-config believe that apr has been installed.
57*3e9d7d56SAndre FischerINSTALL_ACTION=if [ -f apr-1-config.orig ]; then mv -f apr-1-config.orig apr-1-config; fi;	\
58*3e9d7d56SAndre Fischer	cp apr-1-config apr-1-config.orig;							\
59*3e9d7d56SAndre Fischer	sed -e "s/^location=source/location=installed/;s/^\(installbuilddir=.*\)\/.*/\\1\/lib\/apr\"/" apr-1-config > apr-1-config.installed;								\
60*3e9d7d56SAndre Fischer	mv -f apr-1-config.installed apr-1-config;	\
61*3e9d7d56SAndre Fischer	chmod +x apr-1-config
62*3e9d7d56SAndre Fischer
63*3e9d7d56SAndre Fischer.ENDIF
64*3e9d7d56SAndre Fischer
65*3e9d7d56SAndre FischerOUT2INC+=include$/apr*.h
66*3e9d7d56SAndre FischerOUT2INC_SUBDIR=apr
67*3e9d7d56SAndre Fischer
68*3e9d7d56SAndre Fischer.IF "$(OS)"=="WNT"
69*3e9d7d56SAndre FischerOUT2LIB+=LibR$/*.lib
70*3e9d7d56SAndre FischerOUT2LIB+=LibR$/*.pdb
71*3e9d7d56SAndre FischerOUT2LIB+=Release$/libaprapp-1.lib
72*3e9d7d56SAndre FischerOUT2LIB+=Release$/libaprapp-1.pdb
73*3e9d7d56SAndre FischerOUT2LIB+=Release$/libapr-1.lib
74*3e9d7d56SAndre FischerOUT2LIB+=Release$/libapr-1.exp
75*3e9d7d56SAndre FischerOUT2BIN+=Release$/libapr-1.dll
76*3e9d7d56SAndre FischerOUT2BIN+=Release$/libapr-1.pdb
77*3e9d7d56SAndre Fischer.ELSE
78*3e9d7d56SAndre Fischer.IF "$(OS)"=="MACOSX"
79*3e9d7d56SAndre FischerOUT2LIB+=.libs/libapr-1.*dylib
80*3e9d7d56SAndre Fischer.ELSE
81*3e9d7d56SAndre FischerOUT2LIB+=.libs/libapr-1.so*
82*3e9d7d56SAndre Fischer.ENDIF
83*3e9d7d56SAndre FischerOUT2BIN=build/apr_rules.mk
84*3e9d7d56SAndre FischerOUT2BIN+=libtool
85*3e9d7d56SAndre FischerOUT2BIN+=apr-1-config
86*3e9d7d56SAndre Fischer.ENDIF
87*3e9d7d56SAndre Fischer
88*3e9d7d56SAndre Fischer
89*3e9d7d56SAndre Fischer# --- Targets ------------------------------------------------------
90*3e9d7d56SAndre Fischer
91*3e9d7d56SAndre Fischer.INCLUDE : set_ext.mk
92*3e9d7d56SAndre Fischer.INCLUDE : target.mk
93*3e9d7d56SAndre Fischer.INCLUDE : tg_ext.mk
94