From 385b47211ea8674f97f014537d694bb2efbd6ab9 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 13 Oct 2022 15:59:14 +0200 Subject: WIP protocol implementation --- shared/makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 shared/makefile (limited to 'shared/makefile') diff --git a/shared/makefile b/shared/makefile new file mode 100644 index 0000000..4d538da --- /dev/null +++ b/shared/makefile @@ -0,0 +1,24 @@ +CC = gcc +LD = gcc +RM = rm -f +CFLAGS = +LFLAGS = +TARGET = main + +SRCS := $(wildcard *.c) +OBJS := $(patsubst %.c,%.o, $(SRCS)) + +all: main + +%.o: %.c + $(CC) -c $(CFLAGS) $< -o $@ + +$(TARGET): $(OBJS) + $(LD) $^ $(LFLAGS) -o $@ + +clean: + $(RM) $(TARGET) $(OBJS) + +compile_commands: clean + compiledb make + -- cgit v1.2.3