xref: /aoo41x/ext_libraries/apr/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
25TARGET=apr
26
27# --- Settings -----------------------------------------------------
28
29.INCLUDE :	settings.mk
30
31# --- Files --------------------------------------------------------
32
33APRVERSION=1.4.5
34
35TARFILE_NAME=$(PRJNAME)-$(APRVERSION)
36TARFILE_MD5=97262fe54dddaf583eaaee3497a426e1
37
38.IF "$(OS)"=="WNT"
39
40CONFIGURE_ACTION=cp include/apr.hw include/apr.h
41BUILD_DIR=
42BUILD_ACTION=INCLUDE="$(INCLUDE);./include"  nmake -f Makefile.win buildall
43
44#INSTALL_ACTION=cp Release/libapr-1.lib $(OUTDIR)/lib/libapr-1.lib
45
46.ELSE
47
48CONFIGURE_DIR=
49CONFIGURE_ACTION=.$/configure --prefix=$(OUTDIR) --includedir=$(OUTDIR)$/inc$/apr
50CONFIGURE_FLAGS=
51
52BUILD_DIR=$(CONFIGURE_DIR)
53BUILD_ACTION=$(GNUMAKE)
54BUILD_FLAGS+= -j$(EXTMAXPROCESS)
55
56# Make apr-1-config believe that apr has been installed.
57INSTALL_ACTION=if [ -f apr-1-config.orig ]; then mv -f apr-1-config.orig apr-1-config; fi;	\
58	cp apr-1-config apr-1-config.orig;							\
59	sed -e "s/^location=source/location=installed/;s/^\(installbuilddir=.*\)\/.*/\\1\/lib\/apr\"/" apr-1-config > apr-1-config.installed;								\
60	mv -f apr-1-config.installed apr-1-config;	\
61	chmod +x apr-1-config
62
63.ENDIF
64
65OUT2INC+=include$/apr*.h
66OUT2INC_SUBDIR=apr
67
68.IF "$(OS)"=="WNT"
69OUT2LIB+=LibR$/*.lib
70OUT2LIB+=LibR$/*.pdb
71OUT2LIB+=Release$/libaprapp-1.lib
72OUT2LIB+=Release$/libaprapp-1.pdb
73OUT2LIB+=Release$/libapr-1.lib
74OUT2LIB+=Release$/libapr-1.exp
75OUT2BIN+=Release$/libapr-1.dll
76OUT2BIN+=Release$/libapr-1.pdb
77.ELSE
78.IF "$(OS)"=="MACOSX"
79OUT2LIB+=.libs/libapr-1.*dylib
80.ELSE
81OUT2LIB+=.libs/libapr-1.so*
82.ENDIF
83OUT2BIN=build/apr_rules.mk
84OUT2BIN+=libtool
85OUT2BIN+=apr-1-config
86.ENDIF
87
88
89# --- Targets ------------------------------------------------------
90
91.INCLUDE : set_ext.mk
92.INCLUDE : target.mk
93.INCLUDE : tg_ext.mk
94