aboutsummaryrefslogtreecommitdiffstats
path: root/mail/sendmail811/files/Makefile.milter
blob: ef6db8984ef84dbb0d82cc95379c5584b8cef407 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Generic Makefile for libmilter filters
CC = gcc -Wall

# point this at your sendmail source tree
# SENDMAIL_SOURCE = /usr/local/src/sendmail-8.11.1

IFLAGS+=    -I$(SENDMAIL_SOURCE)/sendmail -I$(SENDMAIL_SOURCE)/include
FLAGS+=     -pthread
LDFLAGS+=   -L$(SENDMAIL_OBJECT)/libmilter -L$(SENDMAIL_OBJECT)/libsmutil
LIBS+=      -lmilter -lsmutil

TARGETS?=   sample vbsfilter-1.3

all: $(TARGETS)

.for i in ${TARGETS}
${i}:
    $(CC) $(IFLAGS) $(LDFLAGS) -o ${i} ${i}.c $(LIBS) $(FLAGS)

.endfor

clean:
    rm -f $(TARGETS)

install:
    $(INSTALL) -c $(TARGETS) $(DEST)