55#
66
77sinclude config.make
8+ sinclude config.build
89
910ifndef POCO_BASE
1011$(warning WARNING : POCO_BASE is not defined. Assuming current directory.)
@@ -24,7 +25,8 @@ ifeq ($(LINKMODE),BOTH)
2425SHAREDONLY ='(' -name static -prune ')' -o
2526endif
2627
27- .PHONY : all libexecs cppunit tests samples clean distclean install
28+ # TESTS and SAMPLES are set by confgure script in config.make
29+ poco : libexecs $(if $(TESTS ) ,tests) $(if $(SAMPLES ) ,samples)
2830
2931all : libexecs tests samples
3032
@@ -53,6 +55,7 @@ libexecs = Foundation-libexec XML-libexec JSON-libexec Util-libexec Net-libexec
5355tests = Foundation-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 Zip-tests PDF-tests CppParser-tests
5456samples = Foundation-samples XML-samples JSON-samples Util-samples Net-samples Crypto-samples NetSSL_OpenSSL-samples Data-samples Zip-samples PageCompiler-samples PDF-samples
5557
58+ .PHONY : poco all libexecs cppunit tests samples clean distclean install
5659.PHONY : $(libexecs )
5760.PHONY : $(tests )
5861.PHONY : $(samples )
@@ -66,7 +69,7 @@ Foundation-libexec:
6669
6770Foundation-tests : Foundation-libexec cppunit
6871 $(MAKE ) -C $(POCO_BASE ) /Foundation/testsuite
69-
72+
7073Foundation-samples : Foundation-libexec
7174 $(MAKE ) -C $(POCO_BASE ) /Foundation/samples
7275
@@ -75,7 +78,7 @@ XML-libexec: Foundation-libexec
7578
7679XML-tests : XML-libexec cppunit
7780 $(MAKE ) -C $(POCO_BASE ) /XML/testsuite
78-
81+
7982XML-samples : XML-libexec
8083 $(MAKE ) -C $(POCO_BASE ) /XML/samples
8184
@@ -84,7 +87,7 @@ JSON-libexec: Foundation-libexec
8487
8588JSON-tests : JSON-libexec cppunit
8689 $(MAKE ) -C $(POCO_BASE ) /JSON/testsuite
87-
90+
8891JSON-samples : JSON-libexec
8992 $(MAKE ) -C $(POCO_BASE ) /JSON/samples
9093
@@ -93,7 +96,7 @@ Util-libexec: Foundation-libexec XML-libexec
9396
9497Util-tests : Util-libexec cppunit
9598 $(MAKE ) -C $(POCO_BASE ) /Util/testsuite
96-
99+
97100Util-samples : Util-libexec
98101 $(MAKE ) -C $(POCO_BASE ) /Util/samples
99102
@@ -102,7 +105,7 @@ Net-libexec: Foundation-libexec
102105
103106Net-tests : Net-libexec cppunit
104107 $(MAKE ) -C $(POCO_BASE ) /Net/testsuite
105-
108+
106109Net-samples : Net-libexec Foundation-libexec XML-libexec Util-libexec
107110 $(MAKE ) -C $(POCO_BASE ) /Net/samples
108111
@@ -111,7 +114,7 @@ Crypto-libexec: Foundation-libexec
111114
112115Crypto-tests : Crypto-libexec cppunit
113116 $(MAKE ) -C $(POCO_BASE ) /Crypto/testsuite
114-
117+
115118Crypto-samples : Crypto-libexec Foundation-libexec Util-libexec
116119 $(MAKE ) -C $(POCO_BASE ) /Crypto/samples
117120
@@ -120,7 +123,7 @@ NetSSL_OpenSSL-libexec: Foundation-libexec Net-libexec Util-libexec Crypto-libe
120123
121124NetSSL_OpenSSL-tests : NetSSL_OpenSSL-libexec cppunit
122125 $(MAKE ) -C $(POCO_BASE ) /NetSSL_OpenSSL/testsuite
123-
126+
124127NetSSL_OpenSSL-samples : NetSSL_OpenSSL-libexec
125128 $(MAKE ) -C $(POCO_BASE ) /NetSSL_OpenSSL/samples
126129
@@ -129,7 +132,7 @@ Data-libexec: Foundation-libexec
129132
130133Data-tests : Data-libexec cppunit
131134 $(MAKE ) -C $(POCO_BASE ) /Data/testsuite
132-
135+
133136Data-samples : Data-libexec Data-libexec Data/SQLite-libexec
134137 $(MAKE ) -C $(POCO_BASE ) /Data/samples
135138
@@ -156,13 +159,13 @@ Zip-libexec: Foundation-libexec Net-libexec Util-libexec XML-libexec
156159
157160Zip-tests : Zip-libexec cppunit
158161 $(MAKE ) -C $(POCO_BASE ) /Zip/testsuite
159-
162+
160163Zip-samples : Zip-libexec
161164 $(MAKE ) -C $(POCO_BASE ) /Zip/samples
162165
163166PageCompiler-libexec : Net-libexec Util-libexec XML-libexec Foundation-libexec
164167 $(MAKE ) -C $(POCO_BASE ) /PageCompiler
165-
168+
166169PageCompiler-samples : PageCompiler-libexec
167170 $(MAKE ) -C $(POCO_BASE ) /PageCompiler/samples
168171
@@ -174,7 +177,7 @@ PDF-libexec: Foundation-libexec
174177
175178PDF-tests : PDF-libexec cppunit
176179 $(MAKE ) -C $(POCO_BASE ) /PDF/testsuite
177-
180+
178181PDF-samples : PDF-libexec
179182 $(MAKE ) -C $(POCO_BASE ) /PDF/samples
180183
0 commit comments