xbot/Makefile

20 lines
447 B
Makefile
Raw Normal View History

2015-03-24 10:12:35 +00:00
CC=gcc
2015-03-26 23:20:59 +00:00
CFLAGS=-g -std=gnu99 -c -lconfig -I./lib
BINFLAGS=-g -lconfig
2015-03-24 10:12:35 +00:00
SRC=./src
OBJ=./build
OBJECTS=$(OBJ)/*.o
EXEC=xbot
main:
@rm -rf build
@mkdir build
2015-03-24 17:48:11 +00:00
$(CC) $(CFLAGS) $(SRC)/main.c -o $(OBJ)/main.o
$(CC) $(CFLAGS) $(SRC)/irc.c -o $(OBJ)/irc.o
$(CC) $(CFLAGS) $(SRC)/util.c -o $(OBJ)/util.o
$(CC) $(CFLAGS) $(SRC)/events.c -o $(OBJ)/events.o
2015-03-24 10:12:35 +00:00
$(CC) -o $(EXEC) $(OBJECTS) $(BINFLAGS)
@echo "All Done!"
clean:
@rm -rf build $(EXEC)