21 lines
353 B
Makefile
21 lines
353 B
Makefile
CFLAGS := -O2 -pipe -Wall
|
|
|
|
OBJS := configfile.o connection.o event.o logging.o tcpsocket.o sockaddr.o
|
|
|
|
all: telnetproxy
|
|
|
|
telnetproxy: $(OBJS) telnetproxy.o
|
|
$(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)
|