diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
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 + |