telnetproxy/Makefile

21 lines
353 B
Makefile
Raw Normal View History

2007-04-17 18:31:59 +02:00
CFLAGS := -O2 -pipe -Wall
2006-11-25 14:31:52 +01:00
2007-04-17 18:31:59 +02:00
OBJS := configfile.o connection.o event.o logging.o tcpsocket.o sockaddr.o
2006-11-25 14:31:52 +01:00
all: telnetproxy
2007-04-17 18:31:59 +02:00
telnetproxy: $(OBJS) telnetproxy.o
2006-11-25 14:31:52 +01:00
$(CC) $(CFLAGS) $^ -o $@
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
%.d: %.c
$(CC) $(CFLAGS) -MM -c $< -o $@
clean:
rm -f telnetproxy *.d *.o *.log
DEPS := $(wildcard *.c)
-include $(DEPS:.c=.d)