summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2021-01-29 16:29:47 +0100
committerxengineering <mail2xengineering@protonmail.com>2021-01-29 16:32:46 +0100
commit73dcb4a3b31bc5a0496a65b88074785ecaf3344a (patch)
treef73c983ef9db2ceb41d91111cf7a4a008b513f85 /Makefile
parente0bcf5c439c831b23fb924f53a39a61ae9363e2f (diff)
downloadxbot-73dcb4a3b31bc5a0496a65b88074785ecaf3344a.tar
xbot-73dcb4a3b31bc5a0496a65b88074785ecaf3344a.tar.zst
xbot-73dcb4a3b31bc5a0496a65b88074785ecaf3344a.zip
Add existing Files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
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
+