Squashed 'LYNQ_PUBLIC/' content from commit 79d8f932f

git-subtree-dir: LYNQ_PUBLIC
git-subtree-split: 79d8f932fb4ebc4b5aec6c5ace97634912394272
Change-Id: If2527ba937f56fe989487bf71e996f7cfd9fbe61
diff --git a/IC_src/mtk/lib/liblynq-gnss/makefile b/IC_src/mtk/lib/liblynq-gnss/makefile
new file mode 100755
index 0000000..f1ca7fc
--- /dev/null
+++ b/IC_src/mtk/lib/liblynq-gnss/makefile
@@ -0,0 +1,62 @@
+SHELL = /bin/sh

+RM = rm -f

+

+

+LOCAL_CFLAGS := \

+	-Wall \

+    -g \

+    -Wall \

+    -fPIC \

+    -shared \

+    -D__COMPILE_OPTION__ \

+    -D__LINUX_OS__ \

+

+CPPFLAGS=\

+  -std=c++11 \

+

+LOCAL_PATH = .

+

+LOCAL_C_INCLUDES = \

+    -I$(LOCAL_PATH)/include \

+	-I$(ROOT)$(includedir)/gps_hal \

+	-I$(ROOT)$(includedir)/gps_hal/inc \

+	-I$(ROOT)$(includedir)/gps_hal/hardware \

+	-I$(ROOT)$(includedir)/liblog \

+	

+LOCAL_LIBS := \

+    -L. \

+	-ldl \

+    -lrt \

+	-llog \

+	-lutils \

+	-lcutils \

+	-lgnsshal \

+	-lpthread \

+#    -llynq-log \

+

+$(warning libs=$(LOCAL_LIBS))

+

+CXXSRC=\

+

+SOURCES = $(wildcard *.c wildcard src/*.c)

+

+EXECUTABLE = liblynq-gnss.so

+

+COBJS=$(SOURCES:.c=.o)

+$(warning test)

+all: $(EXECUTABLE)

+$(EXECUTABLE): $(COBJS)

+	$(CXX) -shared -Wl,--no-undefined $(COBJS) $(LOCAL_LIBS) $(LOCAL_CFLAGS) $(LOCAL_C_INCLUDES) -o $@

+

+%.o: %.c

+	$(warning ----->build $<)

+	$(CC) $(LOCAL_C_INCLUDES) $(LOCAL_CFLAGS) $(LOCAL_LIBS) -o $@ -c $<

+

+.PHONY: install clean

+install:

+	mkdir -p $(ROOT)$(base_libdir)/

+	install $(EXECUTABLE) $(ROOT)$(base_libdir)/

+

+clean:

+	rm -f $(EXECUTABLE) rm -rf *.o

+	find ./ -name *.o | xargs rm -rf