From 73dcb4a3b31bc5a0496a65b88074785ecaf3344a Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 29 Jan 2021 16:29:47 +0100 Subject: Add existing Files --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f1f8622 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ + + +TARGET_EXEC := build/xbot + +SRCS := $(wildcard src/*.c) +OBJS := $(patsubst src/%.c, build/%.o, $(SRCS)) +LDFLAGS := -lstrophe -liniparser + +all: $(TARGET_EXEC) + +$(TARGET_EXEC): build/xbot.o + mkdir -p build + $(CC) $(LDFLAGS) -o $@ $< + +build/%.o: src/%.c + mkdir -p build + $(CC) -c $< -o $@ + +.PHONY: clean +clean: + rm -r build + -- cgit v1.2.3-70-g09d2