1c9f2ebcaSAriel Constenla-Haile#************************************************************** 2c9f2ebcaSAriel Constenla-Haile# 3c9f2ebcaSAriel Constenla-Haile# Licensed to the Apache Software Foundation (ASF) under one 4c9f2ebcaSAriel Constenla-Haile# or more contributor license agreements. See the NOTICE file 5c9f2ebcaSAriel Constenla-Haile# distributed with this work for additional information 6c9f2ebcaSAriel Constenla-Haile# regarding copyright ownership. The ASF licenses this file 7c9f2ebcaSAriel Constenla-Haile# to you under the Apache License, Version 2.0 (the 8c9f2ebcaSAriel Constenla-Haile# "License"); you may not use this file except in compliance 9c9f2ebcaSAriel Constenla-Haile# with the License. You may obtain a copy of the License at 10c9f2ebcaSAriel Constenla-Haile# 11c9f2ebcaSAriel Constenla-Haile# http://www.apache.org/licenses/LICENSE-2.0 12c9f2ebcaSAriel Constenla-Haile# 13c9f2ebcaSAriel Constenla-Haile# Unless required by applicable law or agreed to in writing, 14c9f2ebcaSAriel Constenla-Haile# software distributed under the License is distributed on an 15c9f2ebcaSAriel Constenla-Haile# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16c9f2ebcaSAriel Constenla-Haile# KIND, either express or implied. See the License for the 17c9f2ebcaSAriel Constenla-Haile# specific language governing permissions and limitations 18c9f2ebcaSAriel Constenla-Haile# under the License. 19c9f2ebcaSAriel Constenla-Haile# 20c9f2ebcaSAriel Constenla-Haile#************************************************************** 213e9d7d56SAndre Fischer 223e9d7d56SAndre FischerPRJ=. 233e9d7d56SAndre Fischer 243e9d7d56SAndre FischerPRJNAME=apr 253e9d7d56SAndre FischerTARGET=apr 263e9d7d56SAndre Fischer 273e9d7d56SAndre Fischer# --- Settings ----------------------------------------------------- 283e9d7d56SAndre Fischer 293e9d7d56SAndre Fischer.INCLUDE : settings.mk 3059ddfc10SAndre Fischer.INCLUDE : apr_version.mk 313e9d7d56SAndre Fischer 323e9d7d56SAndre Fischer# --- Files -------------------------------------------------------- 333e9d7d56SAndre Fischer 34fdf35928SAndre Fischer.IF "$(SYSTEM_APR)"=="YES" 35fdf35928SAndre Fischer 36fdf35928SAndre Fischerall: 37fdf35928SAndre Fischer @echo "Using system apr. Does not have to be built." 38fdf35928SAndre Fischer 39fdf35928SAndre Fischer.ELSE 40fdf35928SAndre Fischer 4159ddfc10SAndre Fischer# Assemble the full version number from the parts defined in apr_version.mk 4259ddfc10SAndre FischerAPRVERSION=$(APR_MAJOR).$(APR_MINOR).$(APR_MICRO) 433e9d7d56SAndre Fischer 443e9d7d56SAndre FischerTARFILE_NAME=$(PRJNAME)-$(APRVERSION) 453e9d7d56SAndre FischerTARFILE_MD5=97262fe54dddaf583eaaee3497a426e1 463e9d7d56SAndre Fischer 47677439b9SMaho NAKATAPATCH_FILES=apr-1.4.5.patch 48677439b9SMaho NAKATA 493e9d7d56SAndre Fischer.IF "$(OS)"=="WNT" 503e9d7d56SAndre Fischer 513e9d7d56SAndre FischerCONFIGURE_ACTION=cp include/apr.hw include/apr.h 523e9d7d56SAndre FischerBUILD_DIR= 533e9d7d56SAndre FischerBUILD_ACTION=INCLUDE="$(INCLUDE);./include" nmake -f Makefile.win buildall 543e9d7d56SAndre Fischer 553e9d7d56SAndre Fischer#INSTALL_ACTION=cp Release/libapr-1.lib $(OUTDIR)/lib/libapr-1.lib 563e9d7d56SAndre Fischer 574023fbb7SYuri Dario.ELIF "$(GUI)" == "OS2" 584023fbb7SYuri Dario 594023fbb7SYuri Dario@all: 604023fbb7SYuri Dario @echo "using system apr. nothing do do." 614023fbb7SYuri Dario 623e9d7d56SAndre Fischer.ELSE 633e9d7d56SAndre Fischer 643e9d7d56SAndre FischerCONFIGURE_DIR= 653e9d7d56SAndre FischerCONFIGURE_ACTION=.$/configure --prefix=$(OUTDIR) --includedir=$(OUTDIR)$/inc$/apr 663e9d7d56SAndre FischerCONFIGURE_FLAGS= 673e9d7d56SAndre Fischer 683e9d7d56SAndre FischerBUILD_DIR=$(CONFIGURE_DIR) 69*132e0b4fSHerbert DürrBUILD_ACTION=$(GNUMAKE) --debug=b 70*132e0b4fSHerbert Dürr#BUILD_FLAGS+= -j$(EXTMAXPROCESS) 713e9d7d56SAndre Fischer 723e9d7d56SAndre Fischer# Make apr-1-config believe that apr has been installed. 733e9d7d56SAndre FischerINSTALL_ACTION=if [ -f apr-1-config.orig ]; then mv -f apr-1-config.orig apr-1-config; fi; \ 743e9d7d56SAndre Fischer cp apr-1-config apr-1-config.orig; \ 753e9d7d56SAndre Fischer sed -e "s/^location=source/location=installed/;s/^\(installbuilddir=.*\)\/.*/\\1\/lib\/apr\"/" apr-1-config > apr-1-config.installed; \ 763e9d7d56SAndre Fischer mv -f apr-1-config.installed apr-1-config; \ 773e9d7d56SAndre Fischer chmod +x apr-1-config 783e9d7d56SAndre Fischer 793e9d7d56SAndre Fischer.ENDIF 803e9d7d56SAndre Fischer 813e9d7d56SAndre FischerOUT2INC+=include$/apr*.h 823e9d7d56SAndre FischerOUT2INC_SUBDIR=apr 833e9d7d56SAndre Fischer 843e9d7d56SAndre Fischer.IF "$(OS)"=="WNT" 853e9d7d56SAndre FischerOUT2LIB+=LibR$/*.lib 863e9d7d56SAndre FischerOUT2LIB+=LibR$/*.pdb 873e9d7d56SAndre FischerOUT2LIB+=Release$/libaprapp-1.lib 883e9d7d56SAndre FischerOUT2LIB+=Release$/libaprapp-1.pdb 893e9d7d56SAndre FischerOUT2LIB+=Release$/libapr-1.lib 903e9d7d56SAndre FischerOUT2LIB+=Release$/libapr-1.exp 913e9d7d56SAndre FischerOUT2BIN+=Release$/libapr-1.dll 923e9d7d56SAndre FischerOUT2BIN+=Release$/libapr-1.pdb 933e9d7d56SAndre Fischer.ELSE 943e9d7d56SAndre Fischer.IF "$(OS)"=="MACOSX" 953e9d7d56SAndre FischerOUT2LIB+=.libs/libapr-1.*dylib 963e9d7d56SAndre Fischer.ELSE 973e9d7d56SAndre FischerOUT2LIB+=.libs/libapr-1.so* 983e9d7d56SAndre Fischer.ENDIF 993e9d7d56SAndre FischerOUT2BIN=build/apr_rules.mk 1003e9d7d56SAndre FischerOUT2BIN+=libtool 1013e9d7d56SAndre FischerOUT2BIN+=apr-1-config 1023e9d7d56SAndre Fischer.ENDIF 1033e9d7d56SAndre Fischer 1043e9d7d56SAndre Fischer 1053e9d7d56SAndre Fischer# --- Targets ------------------------------------------------------ 1063e9d7d56SAndre Fischer 1073e9d7d56SAndre Fischer.INCLUDE : set_ext.mk 1083e9d7d56SAndre Fischer.INCLUDE : target.mk 1093e9d7d56SAndre Fischer.INCLUDE : tg_ext.mk 110fdf35928SAndre Fischer 111fdf35928SAndre Fischer.ENDIF 112