- CC = gcc
- CFLAGS = -O2 -Wall
- DIR = tcpproxy-1.1.4
- TAR = tcpproxy-1.1.4
- TCPPROXY = tcpproxy.o ip-lib.o lib.o
- TARGETS = tcpproxy
- all: $(TARGETS)
- -ctags *.[ch]
- install: all
- strip $(TARGETS)
- cp $(TARGETS) /usr/local/sbin
- cp *.1 /usr/local/man/man1
- tcpproxy: $(TCPPROXY)
- $(CC) -o $@ $(TCPPROXY)
- tar: clean
- cd ..; tar cvf $(TAR).tar $(DIR); gzip $(TAR).tar
- mv ../$(TAR).tar.gz .
- clean:
- rm -f *.o cut out $(TARGETS) $(TAR).tar.gz