diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-10-13 15:59:14 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-10-13 15:59:14 +0200 |
commit | 385b47211ea8674f97f014537d694bb2efbd6ab9 (patch) | |
tree | bad26f85d854ae55b4e97680de96e07e9ff7ea8d /shared/makefile | |
parent | 1032c63bae663d8ed8736020b60a4ba8744062ee (diff) |
WIP protocol implementation
Diffstat (limited to 'shared/makefile')
-rw-r--r-- | shared/makefile | 24 |
1 files changed, 24 insertions, 0 deletions
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 + |