From: Philippe Coval Date: Fri, 22 Jan 2016 15:37:04 +0000 (+0100) Subject: OICSensorBoard: install example and improve configuration X-Git-Tag: 1.2.0+RC1~232 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8619a9026fa9abf0099192dfcbb2dc1b4ceb9a9b;p=platform%2Fupstream%2Fiotivity.git OICSensorBoard: install example and improve configuration Origin: https://gerrit.iotivity.org/gerrit/#/c/4743/ Change-Id: I7b434e45226d78dc4b69a8b9296b6d9d77d89189 Signed-off-by: Philippe Coval Reviewed-on: https://gerrit.iotivity.org/gerrit/5365 Tested-by: jenkins-iotivity Reviewed-by: Ziran Sun Reviewed-by: Mats Wichmann Reviewed-by: Jon A. Cruz --- diff --git a/examples/OICSensorBoard/Makefile b/examples/OICSensorBoard/Makefile index 2e7acb505..21c9068ea 100644 --- a/examples/OICSensorBoard/Makefile +++ b/examples/OICSensorBoard/Makefile @@ -1,3 +1,5 @@ +default: all + #Set the two variables below for the client build. CLIENTARCH?=x86 BUILDTYPE?=release @@ -11,6 +13,17 @@ CXXFLAGS=-I../../resource/include -I../../resource/c_common -I../../resource/csd LDFLAGS=-L../../out/linux/$(CLIENTARCH)/$(BUILDTYPE) -loc -loctbstack -loc_logger +install_dir?=${DESTDIR}/usr/lib/iotivity/examples/OICSensorBoard + +exes?=client +ifneq ($(SDKTARGETSYSROOT),) +exes+=server +endif + + +all: client + @echo "server depends on mraa" + client: client.o g++ -o client client.o $(LDFLAGS) @@ -32,3 +45,7 @@ server: server.o observer.o clean: rm -rf server client *.o + +install: ${exes} + install -d ${install_dir} + install $^ ${install_dir}