updated Makefile

This commit is contained in:
Günter Obiltschnig 2021-06-22 14:27:29 +02:00
parent a1a228ff68
commit 7cae9a1b6d

View File

@ -78,7 +78,7 @@ poco: libexecs $(if $(TESTS),tests) $(if $(SAMPLES),samples)
all: libexecs tests samples
INSTALLDIR = $(DESTDIR)$(POCO_PREFIX)
COMPONENTS = Foundation Encodings XML JSON Util Net Crypto NetSSL_OpenSSL Data Data/SQLite Data/ODBC Data/MySQL Zip PageCompiler PageCompiler/File2Page JWT CppParser PDF MongoDB Redis ActiveRecord ActiveRecord/Compiler
COMPONENTS = Foundation Encodings XML JSON Util Net Crypto NetSSL_OpenSSL Data Data/SQLite Data/ODBC Data/MySQL Data/PostgreSQL ActiveRecord ActiveRecord/Compiler Zip PageCompiler PageCompiler/File2Page JWT CppParser PDF MongoDB Redis
cppunit:
$(MAKE) -C $(POCO_BASE)/CppUnit
@ -115,10 +115,10 @@ endif
find $(INSTALLDIR)/lib -name "libPoco*" -type f -exec rm -f {} \;
find $(INSTALLDIR)/lib -name "libPoco*" -type l -exec rm -f {} \;
libexecs = Foundation-libexec Encodings-libexec XML-libexec JSON-libexec Util-libexec Net-libexec Crypto-libexec NetSSL_OpenSSL-libexec Data-libexec Data/SQLite-libexec Data/ODBC-libexec Data/MySQL-libexec Zip-libexec JWT-libexec PageCompiler-libexec PageCompiler/File2Page-libexec CppParser-libexec PDF-libexec MongoDB-libexec Redis-libexec ActiveRecord-libexec ActiveRecord/Compiler-libexec
tests = Foundation-tests Encodings-tests XML-tests JSON-tests Util-tests Net-tests Crypto-tests NetSSL_OpenSSL-tests Data-tests Data/SQLite-tests Data/ODBC-tests Data/MySQL-tests JWT-tests Zip-tests CppParser-tests PDF-tests MongoDB-tests Redis-tests ActiveRecord-tests
libexecs = Foundation-libexec Encodings-libexec XML-libexec JSON-libexec Util-libexec Net-libexec Crypto-libexec NetSSL_OpenSSL-libexec Data-libexec Data/SQLite-libexec Data/ODBC-libexec Data/MySQL-libexec Data/PostgreSQL-libexec ActiveRecord-libexec ActiveRecord/Compiler-libexec Zip-libexec JWT-libexec PageCompiler-libexec PageCompiler/File2Page-libexec CppParser-libexec PDF-libexec MongoDB-libexec Redis-libexec
tests = Foundation-tests Encodings-tests XML-tests JSON-tests Util-tests Net-tests Crypto-tests NetSSL_OpenSSL-tests Data-tests Data/SQLite-tests Data/ODBC-tests Data/MySQL-tests Data/PostgreSQL-tests ActiveRecord-tests JWT-tests Zip-tests CppParser-tests PDF-tests MongoDB-tests Redis-tests
samples = Foundation-samples Encodings-samples XML-samples JSON-samples Util-samples Net-samples Crypto-samples NetSSL_OpenSSL-samples Data-samples MongoDB-samples Zip-samples PageCompiler-samples PDF-samples
cleans = Foundation-clean Encodings-clean XML-clean JSON-clean Util-clean Net-clean Crypto-clean NetSSL_OpenSSL-clean Data-clean Data/SQLite-clean Data/ODBC-clean Data/MySQL-clean JWT-clean Zip-clean PageCompiler-clean PageCompiler/File2Page-clean CppParser-clean PDF-clean MongoDB-clean Redis-clean ActiveRecord-clean ActiveRecord/Compiler-clean
cleans = Foundation-clean Encodings-clean XML-clean JSON-clean Util-clean Net-clean Crypto-clean NetSSL_OpenSSL-clean Data-clean Data/SQLite-clean Data/ODBC-clean Data/MySQL-clean Data/PostgreSQL-clean ActiveRecord-clean ActiveRecord/Compiler-clean JWT-clean Zip-clean PageCompiler-clean PageCompiler/File2Page-clean CppParser-clean PDF-clean MongoDB-clean Redis-clean
.PHONY: $(libexecs)
.PHONY: $(tests)
@ -286,6 +286,32 @@ Data/MySQL-clean:
$(MAKE) -C $(POCO_BASE)/Data/MySQL clean
$(MAKE) -C $(POCO_BASE)/Data/MySQL/testsuite clean
Data/PostgreSQL-libexec: Foundation-libexec Data-libexec
$(MAKE) -C $(POCO_BASE)/Data/PostgreSQL
Data/PostgreSQL-tests: Data/PostgreSQL-libexec cppunit
$(MAKE) -C $(POCO_BASE)/Data/PostgreSQL/testsuite
Data/PostgreSQL-clean:
$(MAKE) -C $(POCO_BASE)/Data/PostgreSQL clean
$(MAKE) -C $(POCO_BASE)/Data/PostgreSQL/testsuite clean
ActiveRecord-libexec: Foundation-libexec Data-libexec
$(MAKE) -C $(POCO_BASE)/ActiveRecord
ActiveRecord-tests: ActiveRecord-libexec Data/SQLite-libexec cppunit
$(MAKE) -C $(POCO_BASE)/ActiveRecord/testsuite
ActiveRecord-clean:
$(MAKE) -C $(POCO_BASE)/ActiveRecord clean
$(MAKE) -C $(POCO_BASE)/ActiveRecord/testsuite clean
ActiveRecord/Compiler-libexec: Foundation-libexec Util-libexec
$(MAKE) -C $(POCO_BASE)/ActiveRecord/Compiler
ActiveRecord/Compiler-clean:
$(MAKE) -C $(POCO_BASE)/ActiveRecord/Compiler clean
Zip-libexec: Foundation-libexec Net-libexec Util-libexec XML-libexec
$(MAKE) -C $(POCO_BASE)/Zip
@ -374,22 +400,6 @@ Redis-clean:
$(MAKE) -C $(POCO_BASE)/Redis clean
$(MAKE) -C $(POCO_BASE)/Redis/testsuite clean
ActiveRecord-libexec: Foundation-libexec Data-libexec
$(MAKE) -C $(POCO_BASE)/ActiveRecord
ActiveRecord-tests: ActiveRecord-libexec Data/SQLite-libexec cppunit
$(MAKE) -C $(POCO_BASE)/ActiveRecord/testsuite
ActiveRecord-clean:
$(MAKE) -C $(POCO_BASE)/ActiveRecord clean
$(MAKE) -C $(POCO_BASE)/ActiveRecord/testsuite clean
ActiveRecord/Compiler-libexec: Foundation-libexec Util-libexec
$(MAKE) -C $(POCO_BASE)/ActiveRecord/Compiler
ActiveRecord/Compiler-clean:
$(MAKE) -C $(POCO_BASE)/ActiveRecord/Compiler clean
clean: cleans CppUnit-clean
distclean: