Commit | Line | Data |
---|---|---|
411b6713 | 1 | # |
b7d15ef8 | 2 | # Copyright (c) 1987 Regents of the University of California. |
411b6713 KM |
3 | # All rights reserved. The Berkeley software License Agreement |
4 | # specifies the terms and conditions for redistribution. | |
5 | # | |
b7d15ef8 | 6 | # @(#)Makefile 5.2 (Berkeley) %G% |
411b6713 | 7 | # |
b7d15ef8 KB |
8 | CFLAGS= -O |
9 | LIBC= /lib/libc.a | |
10 | SRCS= libmai.c libzer.c | |
11 | OBJS= libmai.o libzer.o | |
12 | ||
13 | all: liby.a | |
14 | ||
15 | liby.a: ${OBJS} | |
16 | ar cr $@ ${OBJS} | |
411b6713 | 17 | |
b7d15ef8 KB |
18 | clean: FRC |
19 | rm -f ${OBJS} core liby.a | |
411b6713 | 20 | |
b7d15ef8 KB |
21 | depend: FRC |
22 | mkdep ${CFLAGS} ${SRCS} | |
23 | ||
24 | install: FRC | |
25 | install -o bin -g bin -m 644 liby.a ${DESTDIR}/usr/lib/liby.a | |
411b6713 KM |
26 | ranlib ${DESTDIR}/usr/lib/liby.a |
27 | ||
b7d15ef8 KB |
28 | lint: FRC |
29 | lint ${CFLAGS} ${SRCS} | |
30 | ||
31 | tags: FRC | |
32 | ctags ${SRCS} | |
33 | ||
34 | FRC: | |
35 | ||
36 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
37 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
38 | ||
39 | libmai.o: libmai.c | |
40 | libzer.o: libzer.c /usr/include/stdio.h | |
41 | ||
42 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |