/*
 * $Source: /afs/athena.mit.edu/astaff/project/olcdev/src/server/lumberjack/RCS/Imakefile,v $
 * $Id: Imakefile,v 1.5 91/05/07 22:23:44 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=	lumberjack.c
OBJS=	lumberjack.o

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

NormalProgramTarget(lumberjack,$(OBJS),,,)

SaberProgramTarget(lumberjack,$(SRCS),$(OBJS),,)

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

DependTarget()
LintTarget()

AllTarget(lumberjack)
