irclogbot/Makefile

21 lines
358 B
Makefile
Raw Normal View History

2007-04-11 19:36:53 +02:00
CFLAGS := -O2 -pipe -Wall
2007-07-07 17:24:03 +02:00
OBJS := configfile.o event.o ircsession.o linebuffer.o logging.o sockaddr.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)