BarryServer : Git

All the code for all my projects
// BarryServer : Git / IRCWebHooks / blob / 86566f443eea9a096558ff39a8e00fb562534041 / Makefile

// Related

IRCWebHooks

Barry Adding files 3f04e22 (3 years, 3 months ago)
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)