# disclaimermilter # # Changes Copyright (c) 2001, 2002 Andrew McGill and Leading Edge Business # Solutions (South Africa). # # Disclaimermilter is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free # Software Foundation; either version 2 of the License, or (at your option) any # later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. CFLAGS=-g -Wall -pthread CC = gcc LD=$(CC) $(CFLAGS) TARGETS = disclaimermilter MCFILE = /etc/mail/linux.mc SENDMAILCF= /etc/sendmail.cf # Since sendmail 8.12, you don't need -lsmutil for -lmilter LIBS = -lmilter -lmysqlclient # LIBS = -lmilter -lsmutil # For older versions of sendmail (pre 8.12?), you may need sfio linked in ... # LIBS = -lmilter -lsmutil -lsfio BINDIR = /usr/local/bin SGMLFILES = HTMLFILES = TXTFILES = MISCFILES = Makefile disclaimermilterrc README Changelog FAQ PSFILES = TARGETS = disclaimermilter VERSION = 0.7 DISTFILE = disclaimermilter-$(VERSION).tar.gz RCDIR = /etc/init.d BINFILES = disclaimermilter SCRIPTS = ETCFILES = disclaimer MSSOURCE = disclaimermilter.c MSOBJECTS = disclaimermilter.o all: $(TARGETS) disclaimermilter: $(MSOBJECTS) $(LD) -o disclaimermilter $(MSOBJECTS) $(LIBS) clean: rm -f $(TARGETS) disclaimermilter-$(VERSION).tar.gz $(PSFILES) $(TXTFILES) $(MSOBJECTS) # Wow! You want to install it? install: $(TARGETS) install $(SCRIPTS) $(BINFILES) $(DESTDIR)$(BINDIR) install -b $(ETCFILES) $(DESTDIR)/etc install -b -m 0755 disclaimermilterrc $(DESTDIR)$(RCDIR) @echo "# Now you can 'chkconfig disclaimermilterrc on' if you please"