file reorg, pathnames.h, paths.h
[unix-history] / usr / src / usr.bin / m4 / Makefile
CommitLineData
22ffcab2 1Virgin 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#
dc0e9d50 18# @(#)Makefile 5.5 (Berkeley) %G%
8758800b
KB
19#
20CFLAGS= -O
21LIBC= /lib/libc.a
22SRCS= m4.c m4y.c
23OBJS= m4.o m4y.o
d4e49838 24MAN= m4.0
22ffcab2 25
8758800b 26all: m4
22ffcab2 27
8758800b
KB
28m4: ${OBJS} ${LIBC}
29 ${CC} -o $@ ${CFLAGS} ${OBJS}
22ffcab2 30
d4e49838 31clean:
8758800b 32 rm -f ${OBJS} core m4 m4y.c
a8629c9c 33
d4e49838
KB
34cleandir: clean
35 rm -f ${MAN} tags .depend
36
37depend: ${SRCS}
8758800b
KB
38 mkdep ${CFLAGS} ${SRCS}
39
d4e49838 40install: ${MAN}
dc0e9d50 41 install -s -o bin -g bin -m 755 m4 ${DESTDIR}/usr/bin
d4e49838 42 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
8758800b 43
d4e49838 44lint: ${SRCS}
8758800b
KB
45 lint ${CFLAGS} ${SRCS}
46
d4e49838 47tags: ${SRCS}
8758800b 48 ctags ${SRCS}