|
|
1.1 root 1: #
2: # Copyright (c) 1987 Regents of the University of California.
3: # All rights reserved.
4: #
5: # Redistribution and use in source and binary forms are permitted
6: # provided that this notice is preserved and that due credit is given
7: # to the University of California at Berkeley. The name of the University
8: # may not be used to endorse or promote products derived from this
9: # software without specific prior written permission. This software
10: # is provided ``as is'' without express or implied warranty.
11: #
12: # @(#)Makefile 4.7 (Berkeley) 4/6/88
13: #
14: CFLAGS= -O
15: RES=
16: LIBC= /lib/libc.a
17: SRCS= nsquery.c nstest.c
18: OBJS= nsquery.o nstest.o
19:
20: all: nsquery nstest nslookup
21:
22: nsquery: ${LIBC}
23: ${CC} -o $@ nsquery.c ${RES}
24:
25: # test programs and utilities
26: nstest: ${LIBC}
27: @echo "The resolver routines in libc must be compiled with the -DDEBUG"
28: @echo "option or nstest will not have any output."
29: ${CC} -o $@ nstest.c ${RES}
30:
31: nslookup: FRC
32: cd nslookup; make ${MFLAGS} RES=${RES}
33:
34: clean: FRC
35: cd nslookup; make ${MFLAGS} clean
36: rm -f ${OBJS} core nsquery nstest
37:
38: depend: FRC
39: cd nslookup; make ${MFLAGS} depend
40: mkdep -p ${CFLAGS} ${SRCS}
41:
42: install: FRC
43: cd nslookup; make ${MFLAGS} DESTDIR=${DESTDIR} install
44:
45: lint: FRC
46: cd nslookup; make ${MFLAGS} lint
47: lint ${CFLAGS} ${SRCS}
48:
49: tags: FRC
50: cd nslookup; make ${MFLAGS} tags
51: ctags ${SRCS}
52:
53: FRC:
54:
55: # DO NOT DELETE THIS LINE -- mkdep uses it.
56: # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
57:
58: nsquery: nsquery.c /usr/include/stdio.h /usr/include/sys/types.h
59: nsquery: /usr/include/arpa/nameser.h /usr/include/netdb.h
60: nsquery: /usr/include/sys/socket.h /usr/include/netinet/in.h
61: nsquery: /usr/include/resolv.h
62: nstest: nstest.c /usr/include/sys/types.h /usr/include/sys/socket.h
63: nstest: /usr/include/netinet/in.h /usr/include/stdio.h
64: nstest: /usr/include/arpa/nameser.h /usr/include/resolv.h
65:
66: # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.