BarryServer : Git

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

// Related

IRCWebHooks

Barry Adding HTTP authentication to webserver c7c09b0 (3 years, 3 months ago)
PRODUCT=bot

CC=gcc
CFLAGS=-lb64
LFLAGS=-lssl -lcrypto -lpthread -lb64

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)