[Debian-iot-packaging] [openzwave-controlpanel] 36/81: Get Makefile to check for missing library configuration error.
Dara Adib
daradib-guest at moszumanska.debian.org
Thu Dec 22 16:57:49 UTC 2016
This is an automated email from the git hooks/post-receive script.
daradib-guest pushed a commit to branch debian/master
in repository openzwave-controlpanel.
commit bf8b9f77812f3cfd52f39345db01422e5d721552
Author: glsatz <glsatz at gmail.com>
Date: Tue Jan 15 19:35:27 2013 +0000
Get Makefile to check for missing library configuration error.
---
Makefile | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index 9a80866..ecb45a7 100644
--- a/Makefile
+++ b/Makefile
@@ -32,9 +32,10 @@ INCLUDES := -I $(OPENZWAVE)/cpp/src -I $(OPENZWAVE)/cpp/src/command_classes/ \
# Remove comment below for gnutls support
GNUTLS := #-lgnutls
-# for Linux uncomment out next two lines
-#LIBZWAVE := $(wildcard $(OPENZWAVE)/cpp/lib/linux/*.a)
-#LIBUSB := -ludev
+# for Linux uncomment out next three lines
+LIBZWAVE := $(wildcard $(OPENZWAVE)/cpp/lib/linux/*.a)
+LIBUSB := -ludev
+LIBS := $(LIBZWAVE) $(GNUTLS) $(LIBMICROHTTPD) -pthread $(LIBUSB)
# for Mac OS X comment out above 2 lines and uncomment next 5 lines
#ARCH := -arch i386 -arch x86_64
@@ -49,7 +50,14 @@ GNUTLS := #-lgnutls
%.o : %.c
$(CC) $(CFLAGS) $(INCLUDES) -o $@ $<
-all: ozwcp
+all: defs ozwcp
+
+
+defs:
+ifeq ($(LIBZWAVE),)
+ @echo Please edit the Makefile to avoid this error message.
+ @exit 1
+endif
ozwcp.o: ozwcp.h webserver.h $(OPENZWAVE)/cpp/src/Options.h $(OPENZWAVE)/cpp/src/Manager.h \
$(OPENZWAVE)/cpp/src/Node.h $(OPENZWAVE)/cpp/src/Group.h \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-iot/openzwave-controlpanel.git
More information about the Debian-iot-packaging
mailing list