.PHONY:clean run CC=gcc CFLAGS=-Wall -g BIN=./bin/main INCLUDE=-I./include OBJS=./obj/epoll_t.o ./obj/server.o ./obj/network.o $(BIN):$(OBJS) $(CC) $(CFLAGS) $^ -o $@ $(INCLUDE) ./obj/%.o:./src/%.c $(CC) $(CFLAGS) -c $< -o $@ $(INCLUDE) clean: rm -f $(OBJS) $(BIN) run: $(BIN)