about summary refs log tree commit diff
path: root/src/Makefile
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2021-10-09 11:07:32 +0100
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2021-10-09 11:07:32 +0100
commit7d7ef42995aee8c14cdc2b7c93e7f60c85e69f48 (patch)
tree3da6360fb34c2f33ee54cc10f880cd7e6caafab4 /src/Makefile
downloadOSCDRP-7d7ef42995aee8c14cdc2b7c93e7f60c85e69f48.tar.gz
OSCDRP-7d7ef42995aee8c14cdc2b7c93e7f60c85e69f48.tar.bz2
OSCDRP-7d7ef42995aee8c14cdc2b7c93e7f60c85e69f48.zip
Release HEAD master
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..5f5aa6a
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,17 @@
+CC=clang
+INC_DIRS="."
+CFLAGS=-std=c99 -g -Wall -Werror -O2 -I$(INC_DIRS)
+LDFLAGS=-lpthread
+OBJS=protocol.o \
+     utils.o 		
+
+all: oscdrp
+
+%.o: %.c
+	$(CC) $(CFLAGS) -c $^
+
+oscdrp: main.c $(OBJS)
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+clean:
+	rm $(OBJS) oscdrp