telnetproxy/Makefile
2006-11-25 14:31:52 +01:00

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)