/*
 * $Source: /mit/olcdev/highlander/src/server/olcm/RCS/Imakefile,v $
 * $Id: Imakefile,v 1.7 1997/03/29 03:29:31 bert Exp bert $
 * 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) $(CONFIGLIB) $(COMMONLIB)

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

SYS_LIBRARIES=  $(HesiodLib) $(KerberosLib) $(EXTRA_LIBRARIES)
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)
