poco/Makefile

94 lines
2.7 KiB
Makefile
Raw Normal View History

2006-09-14 18:46:36 +02:00
#
# Makefile
#
# The global Makefile for POCO [generated by mkrelease]
#
sinclude config.make
ifndef POCO_BASE
$(warning WARNING: POCO_BASE is not defined. Assuming current directory.)
export POCO_BASE=$(shell pwd)
endif
ifndef POCO_PREFIX
export POCO_PREFIX=/usr/local
endif
2006-12-22 11:07:47 +01:00
.PHONY: all libexecs cppunit tests samples install
2006-09-14 18:46:36 +02:00
2006-12-22 11:07:47 +01:00
all: libexecs tests samples
2006-09-14 18:46:36 +02:00
INSTALLDIR = $(DESTDIR)$(POCO_PREFIX)
2007-01-17 11:36:57 +01:00
COMPONENTS = Foundation XML Util Net NetSSL_OpenSSL
2006-09-14 18:46:36 +02:00
cppunit:
$(MAKE) -C $(POCO_BASE)/CppUnit
2006-12-22 11:07:47 +01:00
install: libexecs
2006-09-14 18:46:36 +02:00
mkdir -p $(INSTALLDIR)/include/Poco
mkdir -p $(INSTALLDIR)/lib
2006-12-22 11:07:47 +01:00
mkdir -p $(INSTALLDIR)/bin
2006-09-14 18:46:36 +02:00
for comp in $(COMPONENTS) ; do \
2006-12-22 11:07:47 +01:00
if [ -d "$(POCO_BASE)/$$comp/include" ] ; then \
cp -Rf $(POCO_BASE)/$$comp/include/* $(INSTALLDIR)/include/ ; \
fi ; \
2007-05-17 04:28:13 +02:00
if [ -d "$(POCO_BASE)/$$comp/bin" ] ; then \
find $(POCO_BASE)/$$comp/bin -perm -700 -type f -exec cp -Rf {} $(INSTALLDIR)/bin \; ; \
2006-12-22 11:07:47 +01:00
fi ; \
2006-09-14 18:46:36 +02:00
done
2007-05-17 04:28:13 +02:00
find $(POCO_BASE)/lib -name "libPoco*" -exec cp -Rf {} $(INSTALLDIR)/lib \;
2006-09-14 18:46:36 +02:00
2007-01-17 11:36:57 +01:00
.PHONY: Foundation-libexec XML-libexec Util-libexec Net-libexec NetSSL_OpenSSL-libexec
.PHONY: Foundation-tests XML-tests Util-tests Net-tests NetSSL_OpenSSL-tests
.PHONY: Foundation-samples XML-samples Util-samples Net-samples NetSSL_OpenSSL-samples
2006-09-14 18:46:36 +02:00
2007-01-17 11:36:57 +01:00
libexecs: Foundation-libexec XML-libexec Util-libexec Net-libexec NetSSL_OpenSSL-libexec
tests: Foundation-tests XML-tests Util-tests Net-tests NetSSL_OpenSSL-tests
samples: Foundation-samples XML-samples Util-samples Net-samples NetSSL_OpenSSL-samples
2006-09-14 18:46:36 +02:00
2006-12-22 11:07:47 +01:00
Foundation-libexec:
2006-09-14 18:46:36 +02:00
$(MAKE) -C $(POCO_BASE)/Foundation
2006-12-22 11:07:47 +01:00
Foundation-tests: Foundation-libexec cppunit
2006-09-14 18:46:36 +02:00
$(MAKE) -C $(POCO_BASE)/Foundation/testsuite
2006-12-22 11:07:47 +01:00
Foundation-samples: Foundation-libexec
2006-09-14 18:46:36 +02:00
$(MAKE) -C $(POCO_BASE)/Foundation/samples
2006-12-22 11:07:47 +01:00
XML-libexec: Foundation-libexec
2006-09-14 18:46:36 +02:00
$(MAKE) -C $(POCO_BASE)/XML
2006-12-22 11:07:47 +01:00
XML-tests: XML-libexec cppunit
2006-09-14 18:46:36 +02:00
$(MAKE) -C $(POCO_BASE)/XML/testsuite
2006-12-22 11:07:47 +01:00
XML-samples: XML-libexec
2006-09-14 18:46:36 +02:00
$(MAKE) -C $(POCO_BASE)/XML/samples
2006-12-22 11:07:47 +01:00
Util-libexec: Foundation-libexec XML-libexec
2006-09-14 18:46:36 +02:00
$(MAKE) -C $(POCO_BASE)/Util
2006-12-22 11:07:47 +01:00
Util-tests: Util-libexec cppunit
2006-09-14 18:46:36 +02:00
$(MAKE) -C $(POCO_BASE)/Util/testsuite
2006-12-22 11:07:47 +01:00
Util-samples: Util-libexec
2006-09-14 18:46:36 +02:00
$(MAKE) -C $(POCO_BASE)/Util/samples
2006-12-22 11:07:47 +01:00
Net-libexec: Foundation-libexec
2006-09-14 18:46:36 +02:00
$(MAKE) -C $(POCO_BASE)/Net
2006-12-22 11:07:47 +01:00
Net-tests: Net-libexec cppunit
2006-09-14 18:46:36 +02:00
$(MAKE) -C $(POCO_BASE)/Net/testsuite
2006-12-22 11:07:47 +01:00
Net-samples: Net-libexec Foundation-libexec XML-libexec Util-libexec
2006-09-14 18:46:36 +02:00
$(MAKE) -C $(POCO_BASE)/Net/samples
2007-01-17 11:36:57 +01:00
NetSSL_OpenSSL-libexec: Foundation-libexec Net-libexec Util-libexec
$(MAKE) -C $(POCO_BASE)/NetSSL_OpenSSL
NetSSL_OpenSSL-tests: NetSSL_OpenSSL-libexec cppunit
$(MAKE) -C $(POCO_BASE)/NetSSL_OpenSSL/testsuite
NetSSL_OpenSSL-samples: NetSSL_OpenSSL-libexec
$(MAKE) -C $(POCO_BASE)/NetSSL_OpenSSL/samples