Commit | Line | Data |
---|---|---|
e1ffbff4 | 1 | # |
31f01cfa KB |
2 | # Copyright (c) 1987 The Regents of the University of California. |
3 | # All rights reserved. | |
e1ffbff4 | 4 | # |
31f01cfa KB |
5 | # Redistribution and use in source and binary forms are permitted |
6 | # provided that the above copyright notice and this paragraph are | |
7 | # duplicated in all such forms and that any documentation, | |
8 | # advertising materials, and other materials related to such | |
9 | # distribution and use acknowledge that the software was developed | |
10 | # by the University of California, Berkeley. The name of the | |
11 | # University may not be used to endorse or promote products derived | |
12 | # from this software without specific prior written permission. | |
13 | # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
14 | # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
15 | # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
e1ffbff4 | 16 | # |
d285df17 | 17 | # @(#)Makefile 5.9 (Berkeley) %G% |
5535c7fc | 18 | # |
d285df17 | 19 | CFLAGS= -O |
d2748719 | 20 | LIBC= /lib/libc.a |
31f01cfa KB |
21 | SRCS= af.c if.c input.c main.c output.c startup.c tables.c timer.c trace.c |
22 | OBJS= af.o if.o input.o main.o output.o startup.o tables.o timer.o trace.o | |
23 | MAN= XNSrouted.0 | |
5535c7fc | 24 | |
d2748719 | 25 | all: XNSrouted |
5535c7fc | 26 | |
d2748719 KB |
27 | XNSrouted: ${OBJS} ${LIBC} |
28 | ${CC} -o $@ ${CFLAGS} ${OBJS} | |
5535c7fc | 29 | |
31f01cfa | 30 | clean: |
d2748719 | 31 | rm -f ${OBJS} core XNSrouted |
5535c7fc | 32 | |
31f01cfa KB |
33 | cleandir: clean |
34 | rm -f ${MAN} tags .depend | |
35 | ||
36 | depend: ${SRCS} | |
d2748719 | 37 | mkdep ${CFLAGS} ${SRCS} |
66da2b0f | 38 | |
31f01cfa | 39 | install: ${MAN} |
d2748719 | 40 | install -s -o bin -g bin -m 755 XNSrouted ${DESTDIR}/etc/XNSrouted |
31f01cfa | 41 | install -c -o bin -g bin -m 444 XNSrouted.0 ${DESTDIR}/usr/man/cat8 |
d2748719 | 42 | |
31f01cfa | 43 | lint: ${SRCS} |
d2748719 KB |
44 | lint ${CFLAGS} ${SRCS} |
45 | ||
31f01cfa | 46 | tags: ${SRCS} |
d2748719 | 47 | ctags ${SRCS} |