/*
 * $Source: /afs/athena.mit.edu/astaff/project/olcdev/highlander/src/server/lumberjack/RCS/Imakefile,v $
 * $Id: Imakefile,v 1.8 1997/08/27 23:32:37 bert 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  tools.c
OBJS=	lumberjack.o  tools.o

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

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

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

InstallProgram(lumberjack,$(DESTDIR)/usr/athena/etc)

DependTarget()
LintTarget()

AllTarget(lumberjack)
