#
# $Source: /afs/net.mit.edu/tools/src/hostinfo/RCS/Makefile,v $
# $Author: tom $
# $Header: /afs/net.mit.edu/tools/src/hostinfo/RCS/Makefile,v 1.1 90/10/27 18:39:56 tom Exp $
#
# Makefile for hostinfo.
#

DESTDIR    = 
BINDIR     =   ${DESTDIR}/${MACHTYPE}bin
MANDIR     =   ${DESTDIR}/man
TARGET     =   hostinfo
MAN_PAGES  =   hostinfo.1

CFLAGS     =   -g 
CC         =   cc
DEPEND     =   /usr/athena/makedepend -v 
INSTALL    =   /usr/bin/install
RM         =   /bin/rm

SRCS       =   hostinfo.c
OBJS       =   hostinfo.o
LIBS       =   

${TARGET}: ${OBJS}
	${CC} ${CFLAGS} -o ${TARGET} ${OBJS} ${LIBS}

all: ${TARGET}

install: ${TARGET} 
	${INSTALL} -m 775 -c -s ${TARGET} ${BINDIR}/${TARGET}
	${INSTALL} -m 644 -c ${MAN_PAGES} ${MANDIR}/man1

clean:
	${RM} -f *.o *~ *.bak ${TARGET} core a.out

depend:
	$(DEPEND) ${CFLAGS} $(SRCS)

# DO NOT DELETE THIS LINE -- make depend depends on it.
