From: Philippe Coval Date: Wed, 28 Jan 2015 13:06:50 +0000 (+0100) Subject: example: build on any target X-Git-Tag: submit/contrib_common/20150129.113722~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F15%2F34515%2F2;p=contrib%2Fiotivity.git example: build on any target x86_64 was hardcoded this way it can be overloaded make TARGET_ARCH=$RPM_ARCH did the trick on tizen It was tested on arm Change-Id: I6a3ba569807910c2bc4feef663c0a19d1792af07 Forwarded: https://gerrit.iotivity.org/gerrit/#/c/265/ Signed-off-by: Philippe Coval --- diff --git a/examples/OICMiddle/makefile b/examples/OICMiddle/makefile index 52c3772..21883f3 100644 --- a/examples/OICMiddle/makefile +++ b/examples/OICMiddle/makefile @@ -26,8 +26,9 @@ CXX := g++ #CXX := clang OUT_DIR := $(BUILD) OIC := ../.. +TARGET_ARCH?=x86_64 OIC_RES := $(OIC)/resource -OIC_LIB := $(OIC)/out/linux/x86_64/release +OIC_LIB := $(OIC)/out/linux/${TARGET_ARCH}/release OBJS := OICMiddle.o \ Client.o \ Server.o \