Add Makefile so it can be built without NDK
authorSam Anderson <sam@lime-lab.com>
Thu, 16 Mar 2017 22:26:30 +0000 (15:26 -0700)
committerSam Anderson <sam@lime-lab.com>
Thu, 16 Mar 2017 22:26:30 +0000 (15:26 -0700)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..d27b34a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+LOCAL_SRC_FILES:= main.c expression-parser.c gauge.c interface-linux-i2c.c gauge-simulator.c
+LOCAL_CFLAGS += -Wno-error=sign-compare
+#LOCAL_LDFLAGS := --gc-sections
+LOCAL_MODULE := bqtool
+LOCAL_STATIC_LIBRARIES :=  -lc -lm
+
+all:
+       $(CC) $(LOCAL_SRC_FILES) $(LOCAL_CFLAGS) -o $(LOCAL_MODULE) $(LOCAL_STATIC_LIBRARIES)
+
+clean:
+       rm -f $(LOCAL_MODULE) 
\ No newline at end of file