zte's code,first commit
Change-Id: I9a04da59e459a9bc0d67f101f700d9d7dc8d681b
diff --git a/ap/hostapp/zlogtrace_ref/Makefile b/ap/hostapp/zlogtrace_ref/Makefile
new file mode 100755
index 0000000..ca07248
--- /dev/null
+++ b/ap/hostapp/zlogtrace_ref/Makefile
@@ -0,0 +1,20 @@
+EXEC = zlogtrace
+
+CFLAGS += -I./localfs_save/
+CFLAGS += -I./localfs_save/config
+CFLAGS += -I./netport_rserial
+CFLAGS += -g
+
+SRCS = $(wildcard *.c ./localfs_save/*.c ./netcom_rserial/*.c )
+OBJS = $(patsubst %.c,%.o, $(SRCS))
+LDLIBS += -lpthread
+LDLIBS += -lm
+
+all: $(EXEC)
+
+$(EXEC): $(OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group
+ @cp $@ $@.elf
+
+clean:
+ -rm -f $(EXEC) $(OBJS) *.elf *.gdb *.o
\ No newline at end of file