Browse Source

unbundled build fixes

alex 13 years ago
parent
commit
161ea4ec18

+ 5 - 1
Crypto/samples/genrsakey/Makefile

@@ -18,6 +18,10 @@ objects = genrsakey
 
 target         = genrsakey
 target_version = 1
-target_libs    = PocoCrypto PocoUtil PocoXML PocoFoundation
+target_libs    = PocoCrypto PocoUtil PocoJSON PocoXML PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lpcre -lexpat
+endif

+ 3 - 0
Crypto/testsuite/Makefile

@@ -13,6 +13,9 @@ ifeq ($(POCO_CONFIG),FreeBSD)
 SYSLIBS += -lssl -lcrypto -lz
 else
 SYSLIBS += -lssl -lcrypto -lz -ldl
+  ifeq ($(POCO_CONFIG),Linux)
+  SYSLIBS += -lkrb5
+  endif
 endif
 
 objects = CryptoTestSuite Driver \

+ 5 - 0
Foundation/samples/Logger/Makefile

@@ -15,3 +15,8 @@ target_version = 1
 target_libs    = PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz
+endif
+

+ 5 - 0
Foundation/samples/deflate/Makefile

@@ -15,3 +15,8 @@ target_version = 1
 target_libs    = PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz
+endif
+

+ 5 - 0
Foundation/samples/grep/Makefile

@@ -15,3 +15,8 @@ target_version = 1
 target_libs    = PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lpcre
+endif
+

+ 5 - 0
Foundation/samples/inflate/Makefile

@@ -15,3 +15,8 @@ target_version = 1
 target_libs    = PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz
+endif
+

+ 4 - 0
Foundation/testsuite/Makefile-Driver

@@ -46,3 +46,7 @@ target_version = 1
 target_libs    = PocoFoundation CppUnit
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz -lpcre
+endif

+ 4 - 0
JSON/testsuite/Makefile

@@ -15,3 +15,7 @@ target_version = 1
 target_libs    = PocoJSON PocoFoundation CppUnit
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lpcre -lexpat
+endif

+ 6 - 1
Net/samples/EchoServer/Makefile

@@ -12,6 +12,11 @@ objects = EchoServer
 
 target         = EchoServer
 target_version = 1
-target_libs    = PocoUtil PocoNet PocoXML PocoFoundation
+target_libs    = PocoUtil PocoJSON PocoNet PocoXML PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz -lpcre -lexpat
+endif
+

+ 5 - 1
Net/samples/HTTPFormServer/Makefile

@@ -12,6 +12,10 @@ objects = HTTPFormServer
 
 target         = HTTPFormServer
 target_version = 1
-target_libs    = PocoUtil PocoNet PocoXML PocoFoundation
+target_libs    = PocoUtil PocoJSON PocoNet PocoXML PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz -lpcre -lexpat
+endif

+ 5 - 1
Net/samples/HTTPLoadTest/Makefile

@@ -12,6 +12,10 @@ objects = HTTPLoadTest
 
 target         = HTTPLoadTest
 target_version = 1
-target_libs    = PocoUtil PocoNet PocoXML PocoFoundation
+target_libs    = PocoUtil PocoJSON PocoNet PocoXML PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz -lpcre -lexpat
+endif

+ 5 - 1
Net/samples/HTTPTimeServer/Makefile

@@ -12,6 +12,10 @@ objects = HTTPTimeServer
 
 target         = HTTPTimeServer
 target_version = 1
-target_libs    = PocoUtil PocoNet PocoXML PocoFoundation
+target_libs    = PocoUtil PocoJSON PocoNet PocoXML PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz -lpcre -lexpat
+endif

+ 5 - 1
Net/samples/Ping/Makefile

@@ -12,6 +12,10 @@ objects = Ping
 
 target         = Ping
 target_version = 1
-target_libs    = PocoNet PocoUtil PocoXML PocoFoundation
+target_libs    = PocoUtil PocoJSON PocoNet PocoXML PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz -lpcre -lexpat
+endif

+ 4 - 0
Net/samples/SMTPLogger/Makefile

@@ -15,3 +15,7 @@ target_version = 1
 target_libs    = PocoNet PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz
+endif

+ 5 - 1
Net/samples/TimeServer/Makefile

@@ -12,6 +12,10 @@ objects = TimeServer
 
 target         = TimeServer
 target_version = 1
-target_libs    = PocoUtil PocoNet PocoXML PocoFoundation
+target_libs    = PocoUtil PocoJSON PocoNet PocoXML PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz -lpcre -lexpat
+endif

+ 5 - 1
Net/samples/TwitterClient/Makefile

@@ -12,6 +12,10 @@ objects = Twitter TweetApp
 
 target         = tweet
 target_version = 1
-target_libs    = PocoUtil PocoNet PocoXML PocoFoundation
+target_libs    = PocoUtil PocoJSON PocoNet PocoXML PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz -lpcre -lexpat
+endif

+ 5 - 1
Net/samples/WebSocketServer/Makefile

@@ -12,6 +12,10 @@ objects = WebSocketServer
 
 target         = WebSocketServer
 target_version = 1
-target_libs    = PocoUtil PocoNet PocoXML PocoFoundation
+target_libs    = PocoUtil PocoJSON PocoNet PocoXML PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz -lpcre -lexpat
+endif

+ 4 - 0
Net/testsuite/Makefile

@@ -33,3 +33,7 @@ target_version = 1
 target_libs    = PocoNet PocoFoundation CppUnit
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz
+endif

+ 5 - 1
NetSSL_OpenSSL/samples/HTTPSTimeServer/Makefile

@@ -19,6 +19,10 @@ objects = HTTPSTimeServer
 
 target         = HTTPSTimeServer
 target_version = 1
-target_libs    = PocoNetSSL PocoCrypto PocoNet PocoUtil PocoXML PocoFoundation
+target_libs    = PocoNetSSL PocoCrypto PocoNet PocoUtil PocoJSON PocoXML PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lpcre -lexpat
+endif

+ 1 - 1
PageCompiler/File2Page/Makefile

@@ -16,6 +16,6 @@ endif
 
 target         = f2cpsp
 target_version = 1
-target_libs    = PocoUtil PocoXML PocoFoundation
+target_libs    = PocoUtil PocoXML PocoJSON PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec

+ 1 - 1
PageCompiler/Makefile

@@ -18,6 +18,6 @@ endif
 
 target         = cpspc
 target_version = 1
-target_libs    = PocoNet PocoUtil PocoXML PocoFoundation
+target_libs    = PocoNet PocoUtil PocoXML PocoJSON PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec

+ 5 - 1
PageCompiler/samples/HTTPTimeServer/Makefile

@@ -15,10 +15,14 @@ objects = HTTPTimeServerApp TimeHandler
 
 target         = HTTPTimeServer
 target_version = 1
-target_libs    = PocoUtil PocoNet PocoXML PocoFoundation
+target_libs    = PocoUtil PocoJSON PocoNet PocoXML PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
 
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz -lpcre -lexpat
+endif
+
 # Rule for runnning PageCompiler
 src/%.cpp: src/%.cpsp
 	@echo "** Compiling Page" $<

+ 5 - 1
Util/samples/SampleApp/Makefile

@@ -12,6 +12,10 @@ objects = SampleApp
 
 target         = SampleApp
 target_version = 1
-target_libs    = PocoUtil PocoXML PocoFoundation
+target_libs    = PocoUtil PocoJSON PocoXML PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz -lpcre -lexpat
+endif

+ 5 - 1
Util/samples/SampleServer/Makefile

@@ -12,6 +12,10 @@ objects = SampleServer
 
 target         = SampleServer
 target_version = 1
-target_libs    = PocoUtil PocoXML PocoFoundation
+target_libs    = PocoUtil PocoJSON PocoXML PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz -lpcre -lexpat
+endif

+ 5 - 1
Util/samples/pkill/Makefile

@@ -12,6 +12,10 @@ objects = pkill
 
 target         = pkill
 target_version = 1
-target_libs    = PocoUtil PocoXML PocoFoundation
+target_libs    = PocoUtil PocoJSON PocoXML PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz -lpcre -lexpat
+endif

+ 4 - 0
Util/testsuite/Makefile

@@ -24,3 +24,7 @@ target_version = 1
 target_libs    = PocoUtil PocoXML PocoJSON PocoFoundation CppUnit
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz -lpcre -lexpat
+endif

+ 5 - 0
XML/samples/DOMParser/Makefile

@@ -15,3 +15,8 @@ target_version = 1
 target_libs    = PocoXML PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lexpat
+endif
+

+ 5 - 0
XML/samples/PrettyPrint/Makefile

@@ -15,3 +15,8 @@ target_version = 1
 target_libs    = PocoXML PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lexpat
+endif
+

+ 4 - 0
XML/samples/SAXParser/Makefile

@@ -15,3 +15,7 @@ target_version = 1
 target_libs    = PocoXML PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lexpat
+endif

+ 4 - 0
XML/testsuite/Makefile

@@ -19,3 +19,7 @@ target_version = 1
 target_libs    = PocoXML PocoFoundation CppUnit
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lexpat
+endif

+ 5 - 1
Zip/samples/unzip/Makefile

@@ -12,6 +12,10 @@ objects = unzip
 
 target         = unzip
 target_version = 1
-target_libs    = PocoZip PocoUtil PocoXML PocoFoundation
+target_libs    = PocoZip PocoUtil PocoJSON PocoXML PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz -lpcre -lexpat
+endif

+ 5 - 1
Zip/samples/zip/Makefile

@@ -12,6 +12,10 @@ objects = zip
 
 target         = zip
 target_version = 1
-target_libs    = PocoZip PocoUtil PocoXML PocoFoundation
+target_libs    = PocoZip PocoUtil PocoJSON PocoXML PocoFoundation
 
 include $(POCO_BASE)/build/rules/exec
+
+ifdef POCO_UNBUNDLED
+        SYSLIBS += -lz -lpcre -lexpat
+endif