#
# $Id: Imakefile,v 1.2 1995/01/26 05:09:54 ghudson Exp $
#

KLIBS=	-ldsk -lusp -lcom_err -lkrb -ldes
#ifdef SOLARIS
NKLIBS=	-lds -lusp -lcom_err -lbsd
#else
#ifdef __NetBSD__
NKLIBS= -lds -lusp -lcom_err -lcompat
#else
NKLIBS=	-lds -lusp -lcom_err 
#endif
#endif

#ifdef _AUX_SOURCE
DSMAILO=emul_re.o
DSLIB=-lPW -lc
#endif

#ifdef SOLARIS
DSLIB=-lbsd
#endif

SimpleProgram(create_mtg_dir,create_mtg_dir.o,,$(ATHBINDIR))
SimpleProgram(crmtgs,crmtgs.o ../ets/dsc_et.o,$(KLIBS),$(ATHBINDIR))
SimpleProgram(mkds,mkds.o ../ets/dsc_et.o ../client/edit.o,$(KLIBS),$(ATHBINDIR))
SimpleProgram(pmtg,pmtg.o ../ets/dsc_et.o,$(KLIBS),$(ATHBINDIR))
SimpleProgram(dsmail,dsmail.o ../ets/dsc_et.o $(DSMAILO),$(NKLIBS) $(DSLIB),$(ATHBINDIR))
SimpleProgram(dspipe,dspipe.o ../ets/dsc_et.o,$(KLIBS),$(ATHBINDIR))

install::
	-$(RM) $(DESTDIR)$(ATHBINDIR)/rmds
	-ln -s mkds $(DESTDIR)$(ATHBINDIR)/rmds

install_script(dsc_setup.sh,,$(ATHBINDIR)/dsc_setup)
