# # Makefile for xf-spf v0.1. # Please don't change it, unless you know what you are doing. # PREFIX?=/usr/local QMAIL_PREFIX?=/var/qmail CAT?=/bin/cat INSTALL?=/usr/bin/install RM?=rm # add -g for debug CFLAGS+=-Wall -pthread OBJS=xf-spf.o syslog.o all: xf-spf.o syslog.o xf-spf xf-spf.o: ${CC} -I${PREFIX}/include -c xf-spf.c -o xf-spf.o syslog.o: ${CC} -I${PREFIX}/include -c syslog.c -o syslog.o xf-spf: ${CC} ${PREFIX}/lib/libspf2.so ${OBJS} ${CFLAGS} -o xf-spf clean: ${RM} -f *.o *.core *.out xf-spf install: ${INSTALL} -m 510 -o qmailq -g qnofiles xf-spf ${QMAIL_PREFIX}/bin deinstall: ${RM} -f ${QMAIL_PREFIX}/bin/xf-spf