Update the Makefile-swig for onboarding
Tested-by: IoTivity Jenkins
# Either set ANDROID_API and ANDROID_BASE in this makefile
# or invoke like this: make NDK_HOME=/opt/android-ndk ANDROID_API=24
-# Example Usage: make -f Makefile-swig DYNAMIC=1 TCP=1 IPV4=1 SECURE=0 DEBUG=1
+# Example Usage: make -f Makefile-swig DYNAMIC=1 TCP=1 IPV4=1 SECURE=1 DEBUG=1
#
# Copy the *.so to the appropriate jniLibs sub-directories, ie
# cp *.so ../../swig/apps/android_simple_client/SimpleClient/app/src/main/jniLibs/armeabi/.
@@ -145,17 +145,25 @@ ${OBJDIR}/client_server/%.o: %.c
@mkdir -p ${@D}
${CC} -c -o $@ $< ${CFLAGS} -DOC_CLIENT -DOC_SERVER
+${OBJDIR}/swig/oc_api_wrap.o: ${SWIG_DIR}/oc_api_wrap.c
+ @mkdir -p ${@D}
+ ${CC} -c -o $@ $< ${CFLAGS} -I../ -Wno-unused-function -Wno-pointer-bool-conversion -DOC_CLIENT -DOC_SERVER
+
${OBJDIR}/swig/oc_clock_wrap.o: ${SWIG_DIR}/oc_clock_wrap.c
@mkdir -p ${@D}
${CC} -c -o $@ $< ${CFLAGS} -DOC_CLIENT -DOC_SERVER
+${OBJDIR}/swig/oc_obt_wrap.o: ${SWIG_DIR}/oc_obt_wrap.c
+ @mkdir -p ${@D}
+ ${CC} -c -o $@ $< ${CFLAGS} -I../ -DOC_CLIENT -DOC_SERVER
+
${OBJDIR}/swig/oc_storage_wrap.o: ${SWIG_DIR}/oc_storage_wrap.c
@mkdir -p ${@D}
${CC} -c -o $@ $< ${CFLAGS} -I../ -DOC_CLIENT -DOC_SERVER
-${OBJDIR}/swig/oc_api_wrap.o: ${SWIG_DIR}/oc_api_wrap.c
+${OBJDIR}/swig/oc_uuid_wrap.o: ${SWIG_DIR}/oc_uuid_wrap.c
@mkdir -p ${@D}
- ${CC} -c -o $@ $< ${CFLAGS} -Wno-unused-function -Wno-pointer-bool-conversion -DOC_CLIENT -DOC_SERVER
+ ${CC} -c -o $@ $< ${CFLAGS} -I../ -DOC_CLIENT -DOC_SERVER
libiotivity-constrained-client-server.so: $(OBJ_COMMON) $(OBJ_CLIENT_SERVER) $(OBJ_SWIG)
${CC} -shared $(OBJ_SWIG) $(OBJ_COMMON) $(OBJ_CLIENT_SERVER) ${LIBS} -llog -o libiotivity-lite-jni.so
