/*
 * $Source: /afs/sipb/project/sipb-athena/olc/clients/osend/RCS/Imakefile,v $
 * $Id: Imakefile,v 1.1 1994/10/30 04:09:53 svalente Exp svalente $
 * Copyright (C) 1992 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=	osend.c

OBJS=	osend.o

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


LOCAL_LIBRARIES= $(CLIENTLIB) $(COMMONLIB)
SYS_LIBRARIES= $(HesiodLib) $(KerberosLib)

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

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

depend: Makefile
	$(DEPEND) -s "# DO NOT DELETE" -- $(ALLDEFINES) $(SRCS)

LintTarget()

#ifdef InstallAltLoc
install::
	(cd $(DESTDIR)/usr/athena/bin; $(RM) oshow; $(LN) oreplay oshow; $(RM) olist; $(LN) oreplay olist)
#else
install::
	(cd $(DESTDIR)/usr/etc; $(RM) oshow; $(LN) oreplay oshow; $(RM) olist; $(LN) oreplay olist)
#endif

clean::
	$(RM) osend

LintTarget()

AllTarget(osend)
