You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
367 B

16 years ago
CFLAGS := -O2 -pipe -Wall
16 years ago
OBJS := configfile.o event.o ircsession.o linebuffer.o logging.o sockaddr.o syslog.o tcpsocket.o
16 years ago
all: irclogbot
irclogbot: $(OBJS) irclogbot.o
16 years ago
$(CC) $(CFLAGS) -o $@ $^
16 years ago
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
%.d: %.c
$(CC) $(CFLAGS) -MM -c $< -o $@
rm -f irclogbot *.d *.o *.log
DEPS := $(wildcard *.c)
-include $(DEPS:.c=.d)