loperIRCLogBot/Makefile

25 lines
745 B
Makefile
Raw Normal View History

2017-03-27 11:15:34 +03:00
# Compiler
CC=gcc
# Flags
#CFLAGS=-lircclient
#CFLAGS=-static libircclient.a
MKDIR_P = mkdir -p
all: lib loperIRCLogBot
lib:
cp ./files/* ./libircclient-1.9/src/
2017-11-20 15:09:35 +03:00
# patch -p0 -i ./files/patchFile
2017-03-27 11:15:34 +03:00
$(MAKE) -C ./libircclient-1.9/src/ || exit 1;
cp -r ./libircclient-1.9/include/ ./libircclient
cp ./libircclient-1.9/src/libircclient.a .
loperIRCLogBot: loperIRCLogBot.c
$(MKDIR_P) ./bin
# $(CC) $(CFLAGS) loperIRCLogBot.c -o ./bin/loperIRCLogBot
2017-11-20 15:09:35 +03:00
$(CC) -std=gnu89 loperIRCLogBot.c libircclient.a -o ./bin/loperIRCLogBot
2017-03-27 11:15:34 +03:00
clean:
2017-11-20 15:09:35 +03:00
rm -rf ./bin/*.o ./bin/loperIRCLogBot ./libircclient libircclient.a ./libircclient-1.9/src/libircclient.o ./libircclient-1.9/src/libircclient.a ./libircclient-1.9/src/config.h ./libircclient-1.9/src/Makefile