[Feature][T106]ZXW P56U09 code

Only Configure: Yes
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: No
Doc Update: No

Change-Id: I3cbd8b420271eb20c2b40ebe5c78f83059cd42f3
diff --git a/ap/lib/libupi_ab/Makefile b/ap/lib/libupi_ab/Makefile
new file mode 100755
index 0000000..d74f63e
--- /dev/null
+++ b/ap/lib/libupi_ab/Makefile
@@ -0,0 +1,53 @@
+#*******************************************************************************
+# include ZTE library makefile
+#*******************************************************************************
+include $(COMMON_MK)
+
+LIB_STATIC = libupi_ab.a
+LIB_SHARED = libupi_ab.so
+
+SRCS=$(wildcard ./src/*.c)
+OBJS = $(patsubst %.c,%.o,$(SRCS))
+
+#定义宏和头文件目录,要用+=,不要用=,否则会覆盖COMMON_MK里的值
+CFLAGS += -g -O2 -marm -I./upi_ab/inc
+CFLAGS +=	-Wall -g
+
+CFLAGS += -Werror=implicit-int \
+		  -Werror=implicit-function-declaration \
+		  -Werror=float-equal \
+		  -Werror=return-type \
+		  -Werror=enum-compare \
+		  -Werror=init-self 
+
+CFLAGS +=	-O2
+CFLAGS +=	-I../../app/include
+CFLAGS +=	-I./inc	\
+			-I$(zte_lib_path)/libssl/install/include
+
+#下面不要修改
+CFLAGS += -fPIC
+LDFLAGS += -shared
+
+ifeq ($(MK_SDK_VERSION),yes)
+all:
+	echo "libupi_ab skip build in sdk version"
+else
+all: $(LIB_STATIC) $(LIB_SHARED)
+endif
+
+$(LIB_STATIC) : $(OBJS)
+	$(AR) rcs $(LIB_STATIC) $(OBJS)
+
+$(LIB_SHARED): $(OBJS)
+	$(CC) $(LDFLAGS) -o $@ $^
+
+romfs:
+	$(ROMFSINST) $(LIB_SHARED) /lib/$(LIB_SHARED)
+
+clean:
+ifeq ($(MK_SDK_VERSION),yes)
+	echo "libupi_ab skip clean in sdk version"
+else
+	-@rm *.a *.o *.so $(LIB_SHARED) $(LIB_STATIC) $(OBJS)
+endif