# Generated automatically from Makefile.in by configure.

#These definitions are from configure.  Best to rerun configure to
# modify, but if you lack should be doable manually

#yes or no to determine whether to compile in NIS, HESIOD support
WITH_NIS=no
WITH_HESIOD=no

#Where to find HESIOD stuff.  Do not prefix with -L or -I
HESIOD_ROOT=/usr/local/athena
HESIOD_INCDIR=/usr/local/athena/include
HESIOD_LIBDIR=/usr/local/athena/lib

#Where to find NIS stuff (not set by configure).  Do not prefix with -L or -I
NIS_LIBDIR=
NIS_INCDIR=

#Libraries needed.  Prefix with -l
HESIOD_LIB=
NIS_LIB=

#The rest of the file should not need to be modified to build the program.
#Modify at your own risk

#This should be a sym link to Make.Rules in top of PAM distribution
include ./Make.Rules

TITLE=pam_netgroups

#Add _BSD_SOURCE so get vsyslog function
DEFS=-D_BSD_SOURCE
INCDIRS=
LIBDIRS=
LIBS=

#Add HESIOD stuff
ifeq ($(WITH_HESIOD),yes)
DEFS+= -DUSE_HESIOD
ifdef HESIOD_LIBDIR
LIBDIRS+= -L$(HESIOD_LIBDIR)
endif
LIBS+= $(HESIOD_LIB)
ifdef HESIOD_INCDIR
INCDIRS+= -I$(HESIOD_INCDIR)
endif
endif

#Add NIS stuff
ifeq ($(WITH_NIS),yes)
DEFS+= -DUSE_NIS
ifdef NIS_LIBDIR
LIBDIRS+= -L$(NIS_LIBDIR)
endif
LIBS+= $(NIS_LIB)
ifdef NIS_INCDIR
INCDIRS+= -I$(NIS_INCDIR)
endif
endif

CFLAGS += $(DEFS) $(INCDIRS)
CPPFLAGS += $(CFLAGS)

MODULE_SIMPLE_EXTRALIBS=$(LIBDIRS) $(LIBS)

#This should be a sym link to Simple.Rules in modules dir  of PAM distribution
include ./Simple.Rules
