/*
 * $Source: /afs/athena.mit.edu/astaff/project/olcdev/src/server/polld/RCS/Imakefile,v $
 * $Id: Imakefile,v 1.10 91/05/07 22:26:01 lwvanels Exp $
 * Copyright (C) 1991 by the Massachusetts Institute of Technology.
 * For copying and distribution information, see the file "mit-copyright.h".
 */

/*#define Profiling*/

#ifdef Profiling
LIBSUFFIX=_p
EXTRA_LOAD_FLAGS=-pg
#endif

SRCS=comm.c get_list.c locate.c polld.c hosthash.c
OBJS=comm.o get_list.o locate.o polld.o hosthash.o

LOCAL_LIBRARIES=$(COMMONLIB) $(CLIENTLIB)

#ifdef Profiling
DEFINES= -DPROFILE
.c.o:
	$(CC) -pg -c $(CFLAGS) $*.c
#else
DEFINES=
#endif /* Profiling */

DEPLIBS=$(LOCAL_LIBRARIES)

#if HaveKerberos || HaveZephyr
SYS_LIBRARIES=	$(HesiodLib) $(ZephyrLib) $(KerberosLib) $(ComErrLib)
#else
SYS_LIBRARIES=	$(HesiodLib) $(ZephyrLib) $(KerberosLib)
#endif

NormalProgramTarget(polld,$(OBJS),$(LOCAL_LIBRARIES),$(LOCAL_LIBRARIES),$(SYS_LIBRARIES))

SaberProgramTarget(polld,$(SRCS),$(OBJS),$(LOCAL_LIBRARIES),$(SYS_LIBRARIES))

DependTarget()
LintTarget()

#ifdef InstallAltLoc
InstallProgram(polld,$(DESTDIR)/usr/athena/etc)
#else
InstallProgram(polld,$(DESTDIR)/usr/etc)
#endif

AllTarget(polld)
