# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $

#
# This makefile is automatically generated by imake... do not modify
# or you may lose your changes when imake generates makefiles again.
# Ignore this message if you are not using imake.
#
#	$Source: /afs/athena.mit.edu/astaff/project/moiradev/src/util/imake.includes/RCS/Imake.template,v $
#

NEWTOP=../../.
BUILDTOP=../../.

DEPEND=$(BUILDTOP)/util/makedepend/makedepend

IMAKE=$(BUILDTOP)/util/imake/imake -I$(BUILDTOP)/util/imake.includes

INCLUDE= -I$(BUILDTOP)/include -I$(BUILDTOP)/lib -I/usr/athena/include
CFLAGS=$(DBG) $(INCLUDE) $(DEFINES) $(GLOBAL_CDEFS) -L/usr/athena/lib
LINTFLAGS=$(INCLUDE) $(DEFINES) $(GLOBAL_CDEFS)

#	$Source: /afs/athena.mit.edu/astaff/project/moiradev/src/util/imake.includes/RCS/config.Imakefile,v $
#

GLOBAL_CDEFS= -DHESIOD -DZEPHYR -DATHENA -DDBMS=INGRES

SRCTOP=/mit/moiradev/src

DESTDIR=

USRDIR= /usr
ETCDIR= /usr/etc
PROGDIR=/usr/athena
LIBDIR= /usr/athena/lib
LINTLIBDIR = /usr/lib/lint
INCLDIR= /usr/include
MANDIR= /usr/man

LINTLIBFLAG=-C

MR_LIB=-lmoira
#MR_LIBDEP=$(MR_LIB)
MR_LINTLIB=$(BUILDTOP)/lib/llib-lmoira.ln
GDB_LIB=-lmrgdb
#GDB_LIBDEP=$(GDB_LIB)
GDB_LINTLIB=$(BUIDTOP)/gdb/llib-lmrgdb.ln

COMPILE_ET= $(BUILDTOP)/util/et/compile_et

COM_ERR = -lcom_err

#COM_ERR_DEP = $(COM_ERR)

MAKE_COMMANDS= $(BUILDTOP)/util/ss/make_commands

SS_LIB = $(BUILDTOP)/util/ss/libss.a

SS_LIBDEP = $(SS_LIB)

CLIBS=$(MR_LIB) $(GDB_LIB) -lkrb -ldes -lhesiod  $(COM_ERR)

SQL_LIB= /usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib

ARCHIVE= ar cru

RANLIB= ranlib

INSTALLFILE= install -c -m 444

INSTALLLIB= install -c -m 444

INSTALLPROG= install -c -m 555

INSTALLRAW= install

LD=ld

AS=as

LINT=lint

CC=cc

CCRO=cc -R

HCC=$(CC)

CPP=$(CC) -E

DBG=-O

HCFLAGS=$(CFLAGS)

TAGGER=etags

MAKE=make
RM=rm -f
MV=mv
CP=cp
LN=ln -s
LPR=lpr -p
CHMOD=chmod
AWK=awk

#	$Source: /afs/athena.mit.edu/astaff/project/moiradev/src/util/imake.includes/RCS/Imake.rules,v $
#

# $Header: /afs/athena.mit.edu/astaff/project/moiradev/src/clients/userreg/RCS/Imakefile,v 1.1 90/08/27 14:59:12 mar Exp Locker: mar $
#
# Copyright 1990 by the Massachusetts Institute of Technology.
#
# For copying and distribution information,
# please see the file <mit-copyright.h>.
#
# Imakefile for userreg.
#

SRCS=	disable.c display.c reg_stubs.c userreg.c
SRCDIR=${SRCTOP}/clients/userreg
TEXT= welcome network_down username_blurb password_blurb improper_reg \
	deleted_acct not_allowed
CODE=${SRCS} ${TEXT} Imakefile files.h userreg.h
OBJS=	userreg.o display.o reg_stubs.o disable.o

all:: userreg

userreg: ${MR_LIBDEP} ${GDB_LIBDEP}  ${OBJS}
	$(CC) $(CFLAGS) -o $@  ${OBJS} -lkadm ${CLIBS} -lcurses -ltermcap 

install::
	$(INSTALLPROG) userreg ${DESTDIR} ${PROGDIR}/userreg

clean::
	$(RM) userreg  ${OBJS}

depend:: ${CODE}

depend:: $(SRCS)
	@echo "### Now computing dependencies"
	@$(DEPEND) -s "# DO NOT DELETE" -- $(CFLAGS) -- $(SRCS)

clean::
	$(RM) *~ \#* *.bak $(TAGSFILE)

tags::
	$(TAGGER) *.c *.h

Makefile::
	-$(RM) Makefile.bak; $(MV) Makefile Makefile.bak
	$(IMAKE) -DNEW_TOP=$(NEWTOP) -s Makefile

print:: ${CODE}
	${LPR} ${CODE}

src:: ${CODE}

${CODE}:
	$(RM) $@
	-$(LN) ${SRCDIR}/$@ $@

install::

Makefiles::

# DO NOT DELETE THIS LINE
