IRCWebHooks
Barry Adding files 3f04e22 (3 years, 3 months ago)diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2dc44ad --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +PRODUCT=bot + +CC=gcc +CFLAGS=-lssl -lcrypto -lpthread +LFLAGS=-lssl -lcrypto -lpthread + +SOURCES := $(shell find src/ -name '*.c') +OBJS = $(sort $(subst src/,build/,$(subst .c,.o,$(SOURCES)))) + +install: $(PRODUCT) + @echo "DONE!" + +$(PRODUCT): $(OBJS) + @echo "LINKING $(PRODUCT)..." + @$(CC) -o $@ $^ $(LFLAGS) + +clean: + @echo "REMOVING OBJECT FILES..." + @touch $(OBJS) + @rm $(OBJS) + +build/%.o: src/%.c + @echo "COMPILING $<..." + @$(CC) -c $< -o $@ $(CFLAGS)