Commit 1f82605f authored by Philippe Coval's avatar Philippe Coval

OICSensorBoard: update build path and improve

Origin: https://gerrit.iotivity.org/gerrit/#/c/4743/
Change-Id: I7b434e45226d78dc4b69a8b9296b6d9d77d89189
Signed-off-by: default avatarPhilippe Coval <philippe.coval@osg.samsung.com>
parent 049a4a2c
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}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment