new template
[unix-history] / usr / src / lib / libc / net / SCCS / hosttable / Makefile
CommitLineData
1c68a737 1
3f442544
KM
2#
3# Copyright (c) 1983 Regents of the University of California.
4# All rights reserved. The Berkeley software License Agreement
5# specifies the terms and conditions for redistribution.
6#
e2d34627 7# @(#)Makefile 5.5 (Berkeley) %G%
3f442544
KM
8#
9
bef7c386
JB
10OBJS= gethostnamadr.o gethostent.o
11SRCS= gethostnamadr.c gethostent.c
3f442544
KM
12CFLAGS= -O ${DEFS}
13
bef7c386 14.c.o:
3f442544
KM
15 ${CC} -p -c ${CFLAGS} $*.c
16 -ld -X -r $*.o
bef7c386 17 mv a.out profiled/$*.o
3f442544
KM
18 ${CC} ${CFLAGS} -c $*.c
19 -ld -x -r $*.o
bef7c386 20 mv a.out $*.o
3f442544 21
bef7c386
JB
22hostlib hostlib_p: ${OBJS}
23 @echo "building profiled hostlib"
24 @cd profiled; ar cru ../hostlib_p ${OBJS}
1c68a737 25 @echo "building normal netlib"
bef7c386 26 @ar cru hostlib ${OBJS}
e2d34627 27
bef7c386
JB
28tags:
29 cwd=`pwd`; \
30 for i in ${SRCS}; do \
31 ctags -a -f ${TAGSFILE} $$cwd/$$i; \
32 done
33
3f442544 34clean:
e2d34627 35 rm -f *.o errs a.out core hostlib hostlib_p profiled/*.o tags
f0bb30cd
JB
36
37depend:
e2d34627 38 mkdep ${CFLAGS} ${SRCS}
f0bb30cd 39
e2d34627
KB
40# DO NOT DELETE THIS LINE -- mkdep uses it.
41# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
f0bb30cd
JB
42
43gethostnamadr.o: gethostnamadr.c /usr/include/stdio.h /usr/include/netdb.h
44gethostnamadr.o: /usr/include/sys/file.h /usr/include/ndbm.h
e2d34627 45gethostnamadr.o: /usr/include/ctype.h
f0bb30cd
JB
46gethostent.o: gethostent.c /usr/include/stdio.h /usr/include/sys/types.h
47gethostent.o: /usr/include/sys/socket.h /usr/include/netdb.h
48gethostent.o: /usr/include/ctype.h /usr/include/ndbm.h
e2d34627
KB
49
50# IF YOU PUT ANYTHING HERE IT WILL GO AWAY