head     1.5;
access   ;
symbols  DIST-1-1:1.5 DIST-1-0:1.4;
locks    ; strict;
comment  @# @;


1.5
date     88.08.07.23.17.35;  author treese;  state Exp;
branches ;
next     1.4;

1.4
date     88.08.07.21.51.55;  author treese;  state Exp;
branches ;
next     1.3;

1.3
date     88.08.07.21.47.04;  author treese;  state Exp;
branches ;
next     1.2;

1.2
date     88.06.05.19.51.02;  author treese;  state Dist;
branches ;
next     1.1;

1.1
date     88.06.05.17.50.55;  author treese;  state Exp;
branches ;
next     ;


desc
@ Athena version as of 6/5/88.
@


1.5
log
@Second-public-distribution
@
text
@# Makefile for the Project Athena Hesiod Nameserver library
#
#	$Source: /mit/hesioddev/distsrc/hesiod/RCS/Makefile,v $
#	$Author: treese $
#	$Header: Makefile,v 1.4 88/08/07 21:51:55 treese Locked $

DEFINES= -DHESIOD
INCPATH= -I../include
CFLAGS = -O ${INCPATH} ${DEFINES}

SRCS = hesiod.c hespwnam.c hesmailhost.c resolve.c cistrcmp.c 
OBJS = hesiod.o hespwnam.o hesmailhost.o resolve.o cistrcmp.o 
TOOLS = hesinfo
LIBDIR= /usr/athena/lib
INCDIR= /usr/include
BINDIR= /bin/athena
MANDIR= /usr/man
MAN1= man1
MAN3= man3

.c.o:
	cc -c -pg ${CFLAGS} $*.c
	mv $*.o profiled/$*.o
	cc -c ${CFLAGS} $*.c

all:	hesiod.a ${TOOLS}

install:	all
	install -m 644 hesiod.a ${DESTDIR}${LIBDIR}/libhesiod.a
	ranlib ${DESTDIR}${LIBDIR}/libhesiod.a
	install -m 644 hesiod_p.a ${DESTDIR}${LIBDIR}/libhesiod_p.a
	ranlib ${DESTDIR}${LIBDIR}/libhesiod_p.a
	install -m 644 hesiod.h ${DESTDIR}${INCDIR}/hesiod.h
	cp hesiod.3 ${DESTDIR}${MANDIR}${MAN3}
	cp hesinfo.1 ${DESTDIR}${MANDIR}${MAN3}
	install -m 755 hesinfo ${DESTDIR}${BINDIR}

hesiod.a:	${OBJS}
	ar rc $@@ ${OBJS}
	ranlib $@@
	cd profiled; ar rc ../hesiod_p.a ${OBJS}
	ranlib hesiod_p.a

hesinfo:	hesiod.a hesinfo.c
	cc ${CFLAGS} -o hesinfo hesinfo.c hesiod.a

saber:
	saber ${INCPATH} ${DEFINES} hesinfo.c ${SRCS}

clean:	
	-rm -f hesiod.a hesiod_p.a *.o ${TOOLS} *~ profiled/*.o
@


1.4
log
@First public distribution
@
text
@d5 1
a5 1
#	$Header: Makefile,v 1.3 88/08/07 21:47:04 treese Locked $
@


1.3
log
@Modified to include commands for using saber.
@
text
@d5 1
a5 1
#	$Header: Makefile,v 1.2 88/06/05 19:51:02 treese Locked $
@


1.2
log
@Cleaned up for public distribution
@
text
@d5 1
a5 1
#	$Header: Makefile,v 1.1 88/06/05 17:50:55 treese Locked $
d7 3
a9 1
CFLAGS = -O -I../include -DHESIOD
d11 1
d46 3
@


1.1
log
@Initial revision
@
text
@d3 1
a3 1
#	$Source: /paris/source/4.3/athena.lib/hesiod/RCS/Makefile,v $
d5 1
a5 1
#	$Header: Makefile,v 1.8 87/08/29 19:30:12 treese Locked $
d7 1
a7 1
CFLAGS = -O -I. -DHESIOD
d9 1
a9 2
OBJS = hesiod.o hespwnam.o hesservbyname.o hesmailhost.o resolve.o \
	cistrcmp.o 
d11 6
d23 1
a23 1
all:	hesiod.a tools hesinfo
d26 8
a33 10
	install -m 644 hesiod.a ${DESTDIR}/usr/athena/lib/libhesiod.a
	ranlib ${DESTDIR}/usr/athena/lib/libhesiod.a
	install -m 644 hesiod_p.a ${DESTDIR}/usr/athena/lib/libhesiod_p.a
	ranlib ${DESTDIR}/usr/athena/lib/libhesiod_p.a
	install -m 644 hesiod.h ${DESTDIR}/usr/include/hesiod.h
	cp hesiod.3 ${DESTDIR}/usr/man/man3
	cp hesinfo.1 ${DESTDIR}/usr/man/man1
	install -m 755 hesinfo ${DESTDIR}/bin/athena
	rm -f ${DESTDIR}/usr/athena/hesinfo
	ln -s /bin/athena/hesinfo ${DESTDIR}/usr/athena/hesinfo
a39 2

tools:	hesiod.a ${TOOLS}
@
