aboutsummaryrefslogtreecommitdiff
path: root/testing/yup-comm/Makefile
diff options
context:
space:
mode:
authorJan Sucan <sucanjan@fit.cvut.cz>2019-06-04 14:34:27 +0200
committerJan Sucan <sucanjan@fit.cvut.cz>2019-06-04 14:34:27 +0200
commitdc8703206e3f0f69605c56d0e1127f7e17f3476a (patch)
tree166823a741dc420c10d54250cb53d1e3a6b74faf /testing/yup-comm/Makefile
Initial commit
Diffstat (limited to 'testing/yup-comm/Makefile')
-rw-r--r--testing/yup-comm/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/yup-comm/Makefile b/testing/yup-comm/Makefile
new file mode 100644
index 0000000..1d20ead
--- /dev/null
+++ b/testing/yup-comm/Makefile
@@ -0,0 +1,27 @@
+CC = gcc
+CFLAGS = -Wall
+
+SERVER_SRCS = yup-comm-server.c comm/serial_port.c comm/bt.c protocol/data.c protocol/frame.c
+SERVER_SRCS += utils/crc32q.c mailslot.c
+
+SERVER_HDRS = comm/bt.h comm/serial_port.h protocol/data.h protocol/frame.h
+SERVER_HDRS += protocol/return_codes.h utils/byte_buffer.h utils/crc32q.h
+SERVER_HDRS += mailslot.h
+
+CLIENT_SRCS = yup-comm-client.c mailslot.c
+
+CLIENT_HDRS = mailslot.h
+
+
+all: yup-comm-server yup-comm-client
+
+yup-comm-server: $(SERVER_SRCS) $(SERVER_HDRS)
+ $(CC) $(CFLAGS) $(SERVER_SRCS) -o yup-comm-server
+
+yup-comm-client: $(CLIENT_SRCS) $(CLIENT_HDRS)
+ $(CC) $(CFLAGS) $(CLIENT_SRCS) -o yup-comm-client
+
+.PHONY: clean
+
+clean:
+ rm -f *.o *~ */*.o */*~ yup-comm-server.exe yup-comm-client.exe