need param.h for mbuf.h now
[unix-history] / usr / src / usr.bin / ar / Makefile
CommitLineData
70b786af
KB
1#
2# Copyright (c) 1988 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 the above copyright notice and this paragraph are
7# duplicated in all such forms and that any documentation, advertising
8# materials, and other materials related to such redistribution and
9# use acknowledge that the software was developed by the University
10# of California, Berkeley. The name of the University may not be
11# used to endorse or promote products derived from this software
12# without specific prior written permission. THIS SOFTWARE IS PROVIDED
13# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
14# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
15# FITNESS FOR A PARTICULAR PURPOSE.
16#
5256e64e 17# @(#)Makefile 5.3 (Berkeley) %G%
70b786af
KB
18#
19
20CFLAGS= -O
21LIBC= /lib/libc.a
22SRCS= ar.c
23OBJS=
53eb5063 24MAN= ar.0 ar5.0
70b786af
KB
25
26all: ar
27
28ar: ${LIBC}
29 ${CC} -o $@ ${CFLAGS} $@.c
30
31clean:
32 rm -f ${OBJS} core ar
33
34cleandir: clean
35 rm -f ${MAN} tags .depend
36
37depend: ${SRCS}
38 mkdep -p ${CFLAGS} ${SRCS}
39
40install: ${MAN}
5256e64e 41 install -s -o bin -g bin -m 755 ar ${DESTDIR}/usr/bin
53eb5063
KB
42 install -c -o bin -g bin -m 444 ar.0 ${DESTDIR}/usr/man/cat1
43 install -c -o bin -g bin -m 444 ar5.0 ${DESTDIR}/usr/man/cat5/ar.0
70b786af
KB
44
45lint: ${SRCS}
46 lint ${CFLAGS} ${SRCS}
47
48tags: ${SRCS}
49 ctags ${SRCS}