xref: /aoo41x/ext_libraries/apr-util/makefile.mk (revision 3e9d7d56)
1#/**************************************************************
2# *
3# * Licensed to the Apache Software Foundation (ASF) under one
4# * or more contributor license agreements.  See the NOTICE file
5# * distributed with this work for additional information
6# * regarding copyright ownership.  The ASF licenses this file
7# * to you under the Apache License, Version 2.0 (the
8# * "License"); you may not use this file except in compliance
9# * with the License.  You may obtain a copy of the License at
10# *
11# *   http://www.apache.org/licenses/LICENSE-2.0
12# *
13# * Unless required by applicable law or agreed to in writing,
14# * software distributed under the License is distributed on an
15# * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16# * KIND, either express or implied.  See the License for the
17# * specific language governing permissions and limitations
18# * under the License.
19# *
20# *************************************************************/
21
22PRJ=.
23
24PRJNAME=apr-util
25TARGET=aprutil
26
27# --- Settings -----------------------------------------------------
28
29.INCLUDE :	settings.mk
30
31# --- Files --------------------------------------------------------
32
33APRVERSION=1.4.1
34
35TARFILE_NAME=$(PRJNAME)-$(APRVERSION)
36TARFILE_MD5=666a5d56098a9debf998510e304c8095
37
38.IF "$(OS)"=="WNT"
39
40ADDITIONAL_FILES=Makefile Module_apr-util.mk Library_apr-util.mk Package_inc.mk
41
42PATCH_FILES= \
43    $(TARFILE_NAME).apu.hw.patch \
44    $(TARFILE_NAME).makewin32.patch
45
46CONFIGURE_DIR=
47CONFIGURE_ACTION=cp include/apu.hw include/apu.h;							\
48	cp include/apr_ldap.hw include/apr_ldap.h;								\
49	cp include/private/apu_config.hw include/private/apu_config.h;			\
50	cp include/private/apu_select_dbm.hw include/private/apu_select_dbm.h
51CONFIGURE_FLAGS=
52
53BUILD_DIR=$(CONFIGURE_DIR)
54BUILD_ACTION=$(GNUMAKE)
55BUILD_FLAGS+= -j$(EXTMAXPROCESS)
56
57.ELSE
58
59CONFIGURE_DIR=
60CONFIGURE_ACTION=.$/configure
61CONFIGURE_FLAGS=								\
62	--with-apr=$(OUTDIR)/bin/apr-1-config		\
63	--prefix=$(OUTDIR)							\
64	--includedir=$(OUTDIR)$/inc$/apr-util		\
65	--with-iconv="no"
66
67BUILD_DIR=$(CONFIGURE_DIR)
68BUILD_ACTION=$(GNUMAKE)
69BUILD_FLAGS+= -j$(EXTMAXPROCESS)
70
71# Make apu-1-config believe that apr-util has been installed.
72INSTALL_ACTION=if [ -f apu-1-config.orig ]; then mv -f apu-1-config.orig apu-1-config; fi;	\
73	cp apu-1-config apu-1-config.orig;							\
74	sed -e "s/^location=source/location=installed/;s/^\(installbuilddir=.*\)\/.*/\\1\/lib\/apr-util\"/" apu-1-config > apu-1-config.installed;								\
75	mv -f apu-1-config.installed apu-1-config;	\
76	chmod +x apu-1-config
77
78OUT2INC+=include$/apr*.h
79OUT2INC+=include$/apu.h
80OUT2INC_SUBDIR=apr-util
81
82.IF "$(OS)"=="MACOSX"
83OUT2LIB+=.libs/libaprutil-1.*dylib
84.ELSE
85OUT2LIB=.libs/libaprutil-1.so*
86.ENDIF
87OUT2BIN=apu-1-config
88
89.ENDIF
90
91# --- Targets ------------------------------------------------------
92
93.INCLUDE : set_ext.mk
94.INCLUDE : target.mk
95.INCLUDE : tg_ext.mk
96
97