[Feature][ZXW-88]merge P50 version
Only Configure: No
Affected branch: master
Affected module: unknown
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I34667719d9e0e7e29e8e4368848601cde0a48408
diff --git a/ap/app/servicemanager/Makefile b/ap/app/servicemanager/Makefile
new file mode 100755
index 0000000..6d25be6
--- /dev/null
+++ b/ap/app/servicemanager/Makefile
@@ -0,0 +1,47 @@
+#*******************************************************************************
+# include ZTE application makefile
+#*******************************************************************************
+include $(COMMON_MK)
+
+#*******************************************************************************
+# execute
+#*******************************************************************************
+EXEC = servicemanager
+
+#*******************************************************************************
+# objects
+#*******************************************************************************
+OBJS = binder.o service_manager.o
+
+#*******************************************************************************
+# include path
+#*******************************************************************************
+CFLAGS += -I.
+CFLAGS += -I$(zte_lib_path)/binder/include
+CFLAGS += -I$(zte_lib_path)/binder/include/utils
+CFLAGS += -I$(zte_lib_path)/binder/include/cutils
+CFLAGS += -I$(zte_lib_path)/binder/include/log
+
+CFLAGS += -g -O0 -Werror=implicit-function-declaration -DBINDER_IPC_32BIT=1 -DHAVE_ENDIAN_H -DHAVE_PTHREADS -DHAVE_SYS_UIO_H -DHAVE_POSIX_FILEMAP -DHAVE_STRLCPY -DHAVE_PRCTL -DHAVE_MEMSET16 -DHAVE_MEMSET32 -DANDROID_SMP=0
+
+LDLIBS += -lpthread -lstdc++
+LDLIBS += -lbinder -L$(zte_lib_path)/binder
+LDLIBS += -lutils -L$(zte_lib_path)/binder/libutils
+LDLIBS += -lcutils -L$(zte_lib_path)/binder/libcutils
+LDLIBS += -llog -L$(zte_lib_path)/binder/liblog
+
+#*******************************************************************************
+# targets
+#*******************************************************************************
+all: $(EXEC)
+
+#$(EXEC): $(OBJS)
+# $(CC) $(LDFLAGS) -o $@ $(OBJS) -Wl,--start-group $(LDLIBS) -Wl,--end-group
+# @cp $@ $@.elf
+
+romfs:
+ $(ROMFSINST) $(EXEC) /bin/$(EXEC)
+
+#clean:
+# -rm -f $(EXEC) *.elf *.gdb *.o
+