21 lines
333 B
Makefile
21 lines
333 B
Makefile
CFLAGS := -O2 -pipe -Wall
|
|
|
|
OBJS := configfile.o logging.o
|
|
|
|
all: irclogbot
|
|
|
|
irclogbot: $(OBJS) irclogbot.o
|
|
$(CC) $(CFLAGS) -o $@ $^ libircclient/src/libircclient.a
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
%.d: %.c
|
|
$(CC) $(CFLAGS) -MM -c $< -o $@
|
|
|
|
clean:
|
|
rm -f irclogbot *.d *.o *.log
|
|
|
|
DEPS := $(wildcard *.c)
|
|
-include $(DEPS:.c=.d)
|