aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..34b4d4f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+SOURCES = $(wildcard *.c) \
+ drivers/serial/pcserialport.c \
+ drivers/tcpip/tcpclient.c
+
+OBJECTS = $(SOURCES:%.c=%.o)
+
+CPPFLAGS = -I.
+CFLAGS = -Wall -Wextra
+
+libsimplemotionv2.a: $(OBJECTS)
+ ar rcs $@ $^
+
+.PHONY: clean
+clean:
+ rm -f $(OBJECTS)