mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
79 lines
1.8 KiB
Makefile
79 lines
1.8 KiB
Makefile
#
|
|
# 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
|
|
|
|
.PHONY: all libs cppunit tests samples install
|
|
|
|
all: libs tests samples
|
|
|
|
INSTALLDIR = $(DESTDIR)$(POCO_PREFIX)
|
|
COMPONENTS = Foundation XML Util Net
|
|
|
|
cppunit:
|
|
$(MAKE) -C $(POCO_BASE)/CppUnit
|
|
|
|
install: libs
|
|
mkdir -p $(INSTALLDIR)/include/Poco
|
|
mkdir -p $(INSTALLDIR)/lib
|
|
for comp in $(COMPONENTS) ; do \
|
|
cp -Rf $(POCO_BASE)/$$comp/include/* $(INSTALLDIR)/include/ ; \
|
|
done
|
|
find $(POCO_BUILD)/lib -name "libPoco*" -exec cp -Rf {} $(INSTALLDIR)/lib \;
|
|
|
|
.PHONY: Foundation-lib XML-lib Util-lib Net-lib
|
|
.PHONY: Foundation-tests XML-tests Util-tests Net-tests
|
|
.PHONY: Foundation-samples XML-samples Util-samples Net-samples
|
|
|
|
libs: Foundation-lib XML-lib Util-lib Net-lib
|
|
tests: Foundation-tests XML-tests Util-tests Net-tests
|
|
samples: Foundation-samples XML-samples Util-samples Net-samples
|
|
|
|
Foundation-lib:
|
|
$(MAKE) -C $(POCO_BASE)/Foundation
|
|
|
|
Foundation-tests: Foundation-lib cppunit
|
|
$(MAKE) -C $(POCO_BASE)/Foundation/testsuite
|
|
|
|
Foundation-samples: Foundation-lib
|
|
$(MAKE) -C $(POCO_BASE)/Foundation/samples
|
|
|
|
XML-lib: Foundation-lib
|
|
$(MAKE) -C $(POCO_BASE)/XML
|
|
|
|
XML-tests: XML-lib cppunit
|
|
$(MAKE) -C $(POCO_BASE)/XML/testsuite
|
|
|
|
XML-samples: XML-lib
|
|
$(MAKE) -C $(POCO_BASE)/XML/samples
|
|
|
|
Util-lib: Foundation-lib XML-lib
|
|
$(MAKE) -C $(POCO_BASE)/Util
|
|
|
|
Util-tests: Util-lib cppunit
|
|
$(MAKE) -C $(POCO_BASE)/Util/testsuite
|
|
|
|
Util-samples: Util-lib
|
|
$(MAKE) -C $(POCO_BASE)/Util/samples
|
|
|
|
Net-lib: Foundation-lib
|
|
$(MAKE) -C $(POCO_BASE)/Net
|
|
|
|
Net-tests: Net-lib cppunit
|
|
$(MAKE) -C $(POCO_BASE)/Net/testsuite
|
|
|
|
Net-samples: Net-lib
|
|
$(MAKE) -C $(POCO_BASE)/Net/samples
|