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