--- Makefile.orig Thu Jun 12 19:19:59 2003 +++ Makefile Mon Jul 7 06:57:24 2003 @@ -38,11 +38,11 @@ VARDIR=/var PIDDIR=$(VARDIR)/run -LIBS=-lmilter -lgnugetopt -lconf +LIBS=-lmilter -lconf DEFS=-DCONFIG="\"$(PREFIX)/etc/kavmilter.conf\"" -CFLAGS += -Wall -pipe $(INCDIRS) -LDFLAGS += -pthread +CFLAGS += -Wall -pipe $(INCDIRS) $(CPPFLAGS) +#LDFLAGS += ${PTHREAD_LIBS} # # Remove command RMF = -/bin/rm -f @@ -51,13 +51,16 @@ echo $(CFLAGS) $(CC) -c $(DEFS) $(CFLAGS) $< -CC=gcc - all: $(BINS) $(OBJS): $(HEADERS) install: kavmilter stop + install -d -m 755 $(INSTDIR) + install -d -m 755 $(RCDDIR) + install -d -m 755 $(ETCDIR) + install -d -m 755 $(MANDIR)/man5 + install -d -m 755 $(MANDIR)/man8 install -m 755 kavmilter $(INSTDIR)/kavmilter install -m 755 kavmilter.sh.sample $(RCDDIR)/kavmilter.sh.sample install -m 644 kavmilter.8 $(MANDIR)/man8/kavmilter.8