# Copyright (c) 2003-2004 E. Will et al.
# Rights to this code are documented in doc/LICENSE.
#
# This file contains build instructions.
#
# $Id: Makefile.in 8375 2007-06-03 20:03:26Z pippijn $
#

MODULE = nickserv

include ../../extra.mk
include ../../buildsys.mk
include ../../buildsys.module.mk

BASE_SRCS =			\
	main.c	\
	access.c	\
	badmail.c	\
	cert.c	\
	$(CRACKLIB_C)	\
	drop.c	\
	enforce.c	\
	freeze.c	\
	ghost.c	\
	group.c	\
	help.c	\
	hold.c	\
	identify.c	\
	info.c	\
	list.c	\
	listchans.c	\
	listmail.c	\
	listownmail.c	\
	login.c		\
	logout.c	\
	mark.c	\
	register.c	\
	regnolimit.c	\
	resetpass.c	\
	return.c	\
	sendpass.c	\
	sendpass_user.c \
	set.c		\
	set_core.c	\
	set_accountname.c \
	set_email.c	\
	set_emailmemos.c  \
	set_enforcetime.c	\
	set_hidemail.c	\
	set_language.c	\
	set_neverop.c	\
	set_nogreet.c   \
	set_nomemo.c	\
	set_noop.c	\
	set_password.c	\
	set_privmsg.c	\
	set_private.c	\
	set_property.c	\
	set_quietchg.c	\
	setpass.c	\
	status.c	\
	subscribe.c	\
	taxonomy.c	\
	vacation.c	\
	verify.c	\
	vhost.c

SRCS = ${BASE_SRCS} ${EXTRA_SRCS}

CPPFLAGS	+= -I../../include

# Custom rule for cracklib.c which is the only module to ever need
# -lcrack.
cracklib$(PLUGIN_SUFFIX): cracklib.c
	${COMPILE_STATUS}
	if ${CC} -MMD -MP ${CFLAGS} ${PLUGIN_CFLAGS} ${CPPFLAGS} ${PLUGIN_LDFLAGS} ${LDFLAGS} -o $@ ${CRACKLIB_C} ${LIBS} ${CRACKLIB_LIBS}; then \
		${COMPILE_OK}; \
	else \
		${COMPILE_FAILED}; \
	fi
