example: build on any target 15/34515/2
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Wed, 28 Jan 2015 13:06:50 +0000 (14:06 +0100)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Thu, 29 Jan 2015 10:57:52 +0000 (11:57 +0100)
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 <philippe.coval@open.eurogiciel.org>
examples/OICMiddle/makefile

index 52c3772..21883f3 100644 (file)
@@ -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 \