23 lines
383 B
Makefile
23 lines
383 B
Makefile
VERSION := v0.01
|
|
|
|
CFLAGS := -O2 -pipe -Wall -DVERSION='"$(VERSION)"'
|
|
|
|
OBJS := configfile.o connection.o event.o logging.o network.o telnetproxy.o
|
|
|
|
all: telnetproxy
|
|
|
|
telnetproxy: $(OBJS)
|
|
$(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)
|