/*
 * $Source: /afs/athena.mit.edu/astaff/project/olcdev/src/server/olcm/RCS/Imakefile,v $
 * $Id: Imakefile,v 1.5 91/09/22 11:43:37 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=	olcm.c
OBJS=	olcm.o
LOCAL_LIBRARIES= $(CLIENTLIB) $(COMMONLIB)

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

SYS_LIBRARIES=  $(HesiodLib) $(KerberosLib) 
DEPLIBS= $(LOCAL_LIBRARIES)

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

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

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

DependTarget()
LintTarget()

AllTarget(olcm)
