# greylisting-spp - A qmail-spp plugin implementing greylisting

#   Copyright (C) 2004,2011 Peter Conrad <conrad@tivano.de>

#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License (version 2) as
#   published by the Free Software Foundation.

#   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.

#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

#CFLAGS=-O6 -Wall
CFLAGS=-g -Wall
LDFLAGS=-g

DB_IMPL=file

ifeq ($(DB_IMPL),bdb)
LDLIBS=-ldb
endif
ifeq ($(DB_IMPL),sqlite)
LDLIBS=-lsqlite
endif
ifeq ($(DB_IMPL),sqlite3)
LDLIBS=-lsqlite3
endif

all: greylisting-spp

greylisting-spp: greylisting-spp.o db-$(DB_IMPL).o commonstuff.o

greylisting-spp.o: greylisting-spp.c db-api.h

clean:
	rm -f greylisting-spp *.o

# Do not change the following line:
# arch-tag: 1f29998d-0e10-412a-893e-ffcbc78e19da
