irclogbot/Makefile

21 lines
367 B
Makefile
Raw Permalink Normal View History

2007-04-11 19:36:53 +02:00
CFLAGS := -O2 -pipe -Wall
2007-12-04 17:26:30 +01:00
OBJS := configfile.o event.o ircsession.o linebuffer.o logging.o sockaddr.o syslog.o tcpsocket.o
2007-04-11 19:36:53 +02:00
all: irclogbot
irclogbot: $(OBJS) irclogbot.o
2007-07-07 17:24:03 +02:00
$(CC) $(CFLAGS) -o $@ $^
2007-04-11 19:36:53 +02:00
%.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)