- CC = gcc
- CFLAGS = -ggdb -Wall
- TAR = smtpproxy-1.1.1
- DIR = smtpproxy-1.1.1
- SMTPPROXY = main.o smtp.o ip-lib.o lib.o
- TARGETS = smtp.proxy
- all: $(TARGETS)
- -ctags *.[ch]
- install: all
- strip $(TARGETS)
- cp $(TARGETS) /usr/local/sbin
- cp *.1 /usr/local/man/man1
- smtp.proxy: $(SMTPPROXY)
- $(CC) -o $@ $(SMTPPROXY)
- 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