diff options
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 17 |
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 |