From: Philippe Coval Date: Fri, 22 Jan 2016 15:37:04 +0000 (+0100) Subject: OICSensorBoard: update build path and improve X-Git-Tag: submit/contrib_common/20160127.204590 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ebdaf411fe4a34bec069e1b905043f968b162048;p=contrib%2Fiotivity.git OICSensorBoard: update build path and improve Origin: https://gerrit.iotivity.org/gerrit/#/c/4743/ Change-Id: I7b434e45226d78dc4b69a8b9296b6d9d77d89189 Signed-off-by: Philippe Coval --- diff --git a/examples/OICSensorBoard/Makefile b/examples/OICSensorBoard/Makefile index 8a6939b..571016f 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 @@ -7,10 +9,21 @@ YOCTOCXXFLAGS=-I$(SDKTARGETSYSROOT)/usr/include/iotivity/resource/ -I$(SDKTARGET YOCTOLDFLAGS=-loc -loctbstack -loc_logger -lmraa -CXXFLAGS=-I../../resource/include -I../../resource/csdk/stack/include -I../../resource/csdk/ocrandom/include -I../../resource/csdk/logger/include -I../../resource/oc_logger/include +CXXFLAGS=-I../../resource/include -I../../resource/csdk/stack/include -I../../resource/csdk/ocrandom/include -I../../resource/csdk/logger/include -I../../resource/oc_logger/include -I../../resource/c_common/ 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}