xref: /aoo41x/ext_libraries/apr/makefile.mk (revision 59ddfc10)
13e9d7d56SAndre Fischer#/**************************************************************
23e9d7d56SAndre Fischer# *
33e9d7d56SAndre Fischer# * Licensed to the Apache Software Foundation (ASF) under one
43e9d7d56SAndre Fischer# * or more contributor license agreements.  See the NOTICE file
53e9d7d56SAndre Fischer# * distributed with this work for additional information
63e9d7d56SAndre Fischer# * regarding copyright ownership.  The ASF licenses this file
73e9d7d56SAndre Fischer# * to you under the Apache License, Version 2.0 (the
83e9d7d56SAndre Fischer# * "License"); you may not use this file except in compliance
93e9d7d56SAndre Fischer# * with the License.  You may obtain a copy of the License at
103e9d7d56SAndre Fischer# *
113e9d7d56SAndre Fischer# *   http://www.apache.org/licenses/LICENSE-2.0
123e9d7d56SAndre Fischer# *
133e9d7d56SAndre Fischer# * Unless required by applicable law or agreed to in writing,
143e9d7d56SAndre Fischer# * software distributed under the License is distributed on an
153e9d7d56SAndre Fischer# * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
163e9d7d56SAndre Fischer# * KIND, either express or implied.  See the License for the
173e9d7d56SAndre Fischer# * specific language governing permissions and limitations
183e9d7d56SAndre Fischer# * under the License.
193e9d7d56SAndre Fischer# *
203e9d7d56SAndre Fischer# *************************************************************/
213e9d7d56SAndre Fischer
223e9d7d56SAndre FischerPRJ=.
233e9d7d56SAndre Fischer
243e9d7d56SAndre FischerPRJNAME=apr
253e9d7d56SAndre FischerTARGET=apr
263e9d7d56SAndre Fischer
273e9d7d56SAndre Fischer# --- Settings -----------------------------------------------------
283e9d7d56SAndre Fischer
293e9d7d56SAndre Fischer.INCLUDE :	settings.mk
30*59ddfc10SAndre Fischer.INCLUDE :      apr_version.mk
313e9d7d56SAndre Fischer
323e9d7d56SAndre Fischer# --- Files --------------------------------------------------------
333e9d7d56SAndre Fischer
34*59ddfc10SAndre Fischer# Assemble the full version number from the parts defined in apr_version.mk
35*59ddfc10SAndre FischerAPRVERSION=$(APR_MAJOR).$(APR_MINOR).$(APR_MICRO)
363e9d7d56SAndre Fischer
373e9d7d56SAndre FischerTARFILE_NAME=$(PRJNAME)-$(APRVERSION)
383e9d7d56SAndre FischerTARFILE_MD5=97262fe54dddaf583eaaee3497a426e1
393e9d7d56SAndre Fischer
403e9d7d56SAndre Fischer.IF "$(OS)"=="WNT"
413e9d7d56SAndre Fischer
423e9d7d56SAndre FischerCONFIGURE_ACTION=cp include/apr.hw include/apr.h
433e9d7d56SAndre FischerBUILD_DIR=
443e9d7d56SAndre FischerBUILD_ACTION=INCLUDE="$(INCLUDE);./include"  nmake -f Makefile.win buildall
453e9d7d56SAndre Fischer
463e9d7d56SAndre Fischer#INSTALL_ACTION=cp Release/libapr-1.lib $(OUTDIR)/lib/libapr-1.lib
473e9d7d56SAndre Fischer
483e9d7d56SAndre Fischer.ELSE
493e9d7d56SAndre Fischer
503e9d7d56SAndre FischerCONFIGURE_DIR=
513e9d7d56SAndre FischerCONFIGURE_ACTION=.$/configure --prefix=$(OUTDIR) --includedir=$(OUTDIR)$/inc$/apr
523e9d7d56SAndre FischerCONFIGURE_FLAGS=
533e9d7d56SAndre Fischer
543e9d7d56SAndre FischerBUILD_DIR=$(CONFIGURE_DIR)
553e9d7d56SAndre FischerBUILD_ACTION=$(GNUMAKE)
563e9d7d56SAndre FischerBUILD_FLAGS+= -j$(EXTMAXPROCESS)
573e9d7d56SAndre Fischer
583e9d7d56SAndre Fischer# Make apr-1-config believe that apr has been installed.
593e9d7d56SAndre FischerINSTALL_ACTION=if [ -f apr-1-config.orig ]; then mv -f apr-1-config.orig apr-1-config; fi;	\
603e9d7d56SAndre Fischer	cp apr-1-config apr-1-config.orig;							\
613e9d7d56SAndre Fischer	sed -e "s/^location=source/location=installed/;s/^\(installbuilddir=.*\)\/.*/\\1\/lib\/apr\"/" apr-1-config > apr-1-config.installed;								\
623e9d7d56SAndre Fischer	mv -f apr-1-config.installed apr-1-config;	\
633e9d7d56SAndre Fischer	chmod +x apr-1-config
643e9d7d56SAndre Fischer
653e9d7d56SAndre Fischer.ENDIF
663e9d7d56SAndre Fischer
673e9d7d56SAndre FischerOUT2INC+=include$/apr*.h
683e9d7d56SAndre FischerOUT2INC_SUBDIR=apr
693e9d7d56SAndre Fischer
703e9d7d56SAndre Fischer.IF "$(OS)"=="WNT"
713e9d7d56SAndre FischerOUT2LIB+=LibR$/*.lib
723e9d7d56SAndre FischerOUT2LIB+=LibR$/*.pdb
733e9d7d56SAndre FischerOUT2LIB+=Release$/libaprapp-1.lib
743e9d7d56SAndre FischerOUT2LIB+=Release$/libaprapp-1.pdb
753e9d7d56SAndre FischerOUT2LIB+=Release$/libapr-1.lib
763e9d7d56SAndre FischerOUT2LIB+=Release$/libapr-1.exp
773e9d7d56SAndre FischerOUT2BIN+=Release$/libapr-1.dll
783e9d7d56SAndre FischerOUT2BIN+=Release$/libapr-1.pdb
793e9d7d56SAndre Fischer.ELSE
803e9d7d56SAndre Fischer.IF "$(OS)"=="MACOSX"
813e9d7d56SAndre FischerOUT2LIB+=.libs/libapr-1.*dylib
823e9d7d56SAndre Fischer.ELSE
833e9d7d56SAndre FischerOUT2LIB+=.libs/libapr-1.so*
843e9d7d56SAndre Fischer.ENDIF
853e9d7d56SAndre FischerOUT2BIN=build/apr_rules.mk
863e9d7d56SAndre FischerOUT2BIN+=libtool
873e9d7d56SAndre FischerOUT2BIN+=apr-1-config
883e9d7d56SAndre Fischer.ENDIF
893e9d7d56SAndre Fischer
903e9d7d56SAndre Fischer
913e9d7d56SAndre Fischer# --- Targets ------------------------------------------------------
923e9d7d56SAndre Fischer
933e9d7d56SAndre Fischer.INCLUDE : set_ext.mk
943e9d7d56SAndre Fischer.INCLUDE : target.mk
953e9d7d56SAndre Fischer.INCLUDE : tg_ext.mk
96