# Makefile for project smc-milter-new
#
PRG_OPTIONS=
CFLAGS=-Wall -Werror -g -I. -O2 $(PRG_OPTIONS)


.c.o:
	${CC} ${CFLAGS} -c $*.c

all: smc-milter-new

smc-milter-new: smc-milter.o iptab.o utils.o virus.o ${OBJS}
	@rm -f smc-milter-new
	${CC} ${CFLAGS} smc-milter.o iptab.o utils.o virus.o -lmilter -lpthread -lmysqlclient -lspf2 -o smc-milter-new
	strip -R .note -R .comment smc-milter-new
	rm -f *.o


clean:
	rm -f *.o smc-milter-new
