[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/shm_test/Makefile b/ap/app/shm_test/Makefile
index 0e1093f..90a203f 100755
--- a/ap/app/shm_test/Makefile
+++ b/ap/app/shm_test/Makefile
@@ -3,8 +3,21 @@
 include $(COMMON_MK)
 
 ##############USER COMIZE BEGIN################
-EXEC = shm_test
-OBJS = shm_test.o
+EXEC1 = shm_read
+OBJS1 = shm_read.o
+
+EXEC2 = shm_write
+OBJS2 = shm_write.o
+EXEC3 = shm_test
+OBJS3 = shm_test.o
+EXEC4 = shm_posix_test
+OBJS4 = shm_posix_test.o
+
+EXEC5 = shm_posix_read
+OBJS5 = shm_posix_read.o
+
+EXEC6 = shm_posix_write
+OBJS6 = shm_posix_write.o
 
 CFLAGS += -I.
 CFLAGS += -I$(APP_DIR)/include
@@ -12,23 +25,45 @@
 
 CFLAGS += -g -Werror=implicit-function-declaration
 
-LDLIBS  += -lpthread 
+LDLIBS  += -lpthread  -lrt
 
 ##############USER COMIZE END##################
 
 #*******************************************************************************
 # targets
 #*******************************************************************************
-all: $(EXEC)
+all: $(EXEC1) $(EXEC2) $(EXEC3) $(EXEC4) $(EXEC5) $(EXEC6)
 
-$(EXEC): $(OBJS)
+$(EXEC1): $(OBJS1)
 	$(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group
 	@cp $@ $@.elf
 
+$(EXEC2): $(OBJS2)
+	$(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group
+	@cp $@ $@.elf
 
+$(EXEC3): $(OBJS3)
+	$(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group
+	@cp $@ $@.elf
+
+$(EXEC4): $(OBJS4)
+	$(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group
+	@cp $@ $@.elf
+
+$(EXEC5): $(OBJS5)
+	$(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group
+	@cp $@ $@.elf
+
+$(EXEC6): $(OBJS6)
+	$(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group
+	@cp $@ $@.elf
 romfs:
-	$(ROMFSINST) $(EXEC) /bin/$(EXEC)
-
+	$(ROMFSINST) $(EXEC1) /bin/$(EXEC1)
+	$(ROMFSINST) $(EXEC2) /bin/$(EXEC2)
+	$(ROMFSINST) $(EXEC3) /bin/$(EXEC3)
+	$(ROMFSINST) $(EXEC4) /bin/$(EXEC4)
+	$(ROMFSINST) $(EXEC5) /bin/$(EXEC5)
+	$(ROMFSINST) $(EXEC6) /bin/$(EXEC6)
+	
 clean:
-	-@rm -f $(EXEC) *.elf *.gdb *.o
-
+	-@rm -f $(EXEC1) $(EXEC2) $(EXEC3) $(EXEC4) $(EXEC5) $(EXEC6) *.elf *.gdb *.o
\ No newline at end of file