CC=gcc CFLAGS= -Wall -g -DREENTRANT -I../../sendmail-8.12.2/sendmail -I../../sendmail-8.12.2/include -I./ LDFLAGS=-L/opt/SendMail/lib -liconv -lmilter -lresolv -lnsl -lsocket -lpthread -lldap_r -llber NOTANGLE=notangle CPIF=cpif all: fromfilter fromfilter: main.o rfc822.o rfc2047.o filter.o directory.o valid.o aux.o $(CC) -o $@ $? $(LDFLAGS) sources: main.c rfc822.c rfc2047.c filter.c directory.c valid.c aux.c rfc822.h rfc2047.h filter.h directory.h valid.h aux.h clean: rm -f fromfilter *.o main.c filter.c directory.c valid.c aux.c : filter.h directory.h valid.h aux.h ../fromfilter.nw $(NOTANGLE) -L -R$@ ../fromfilter.nw > $@ filter.h directory.h valid.h aux.h : ../fromfilter.nw $(NOTANGLE) -L -R$@ ../fromfilter.nw | $(CPIF) $@