Commit | Line | Data |
---|---|---|
22ffcab2 | 1 | Virgin BTL M4 as sent out in 4.1 |
8758800b KB |
2 | # |
3 | # Copyright (c) 1987 Regents of the University of California. | |
4 | # All rights reserved. The Berkeley software License Agreement | |
5 | # specifies the terms and conditions for redistribution. | |
6 | # | |
7 | # @(#)Makefile 5.3 (Berkeley) %G% | |
8 | # | |
9 | CFLAGS= -O | |
10 | LIBC= /lib/libc.a | |
11 | SRCS= m4.c m4y.c | |
12 | OBJS= m4.o m4y.o | |
22ffcab2 | 13 | |
8758800b | 14 | all: m4 |
22ffcab2 | 15 | |
8758800b KB |
16 | m4: ${OBJS} ${LIBC} |
17 | ${CC} -o $@ ${CFLAGS} ${OBJS} | |
22ffcab2 | 18 | |
8758800b KB |
19 | clean: FRC |
20 | rm -f ${OBJS} core m4 m4y.c | |
a8629c9c | 21 | |
8758800b KB |
22 | depend: ${SRCS} FRC |
23 | mkdep ${CFLAGS} ${SRCS} | |
24 | ||
25 | install: FRC | |
26 | install -s -o bin -g bin -m 755 m4 ${DESTDIR}/usr/bin/m4 | |
27 | ||
28 | lint: ${SRCS} FRC | |
29 | lint ${CFLAGS} ${SRCS} | |
30 | ||
31 | tags: ${SRCS} 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 | m4.o: m4.c /usr/include/stdio.h /usr/include/signal.h | |
40 | m4y.o: m4y.c | |
41 | ||
42 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |