# Makefile autoconfigured for ...
# Ultrix 4.0 system on Fri Dec 13 15:45:35 EST 1991



MFLAGS=
LFLAGS=-L/mit/cap/lib -L/usr/athena/lib
CC=cc
LD=ld
SHELL=/bin/sh
INSTALLER=cp


CFLAGS= -DBYTESWAPPED -DPHASE2 -O -I/mit/cap/cap60/src -I/usr/athena/"inc"lude   -DULT42PFBUG -DMIT
SDESTDIR=/mit/cap/bin
UDESTDIR=/mit/cap/bin
ETCDIR=/etc
CAPLIB=-lcap
I=/mit/cap/cap60/src
# for other libraries (like BSD on hpux)
SLIB=-lkrb -ldes -lhesiod -lauth

PROGS=atis 

# aufs.c definitions: USEVPRINTF - use vprintf in logging
ATISDEFS=-DUSEVPRINTF

# Make sure to define needgetopt if your system doesnt have it or
# just set GETOPT=att_getopt.o (or to a getopt of your own liking)
GETOPT=

all:	${PROGS}

atis:	atis.o nisaux.o ${GETOPT}
	${CC} ${LFLAGS} -o atis atis.o nisaux.o ${GETOPT} ${CAPLIB} ${SLIB}

atis.o:	$I/netat/abnbp.h
	${CC} ${CFLAGS} ${ATISDEFS} -DETCDIR=\"${ETCDIR}\" -c atis.c

nisaux.o: $I/netat/abnbp.h

att_getopt.c:
	ln -s ../extras/att_getopt.c

install: ${PROGS}
	-strip ${PROGS}
	-mkdir ${SDESTDIR} ${UDESTDIR}
	${INSTALLER} ${PROGS} ${SDESTDIR}

clean:
	-rm -f atis *.o core att_getopt.c *~

spotless:
	-rm -f atis *.o *.orig core att_getopt.c *~

dist:
	@cat todist

