file reorg, pathnames.h, paths.h
[unix-history] / usr / src / old / make / Makefile
CommitLineData
782918e3 1#
25b428ad
KB
2# Copyright (c) 1987 The Regents of the University of California.
3# All rights reserved.
782918e3 4#
25b428ad
KB
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,
8# advertising materials, and other materials related to such
9# distribution and use acknowledge that the software was developed
10# by the University of California, Berkeley. The name of the
11# University may not be used to endorse or promote products derived
12# from this software without specific prior written permission.
13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16#
17# @(#)Makefile 4.7 (Berkeley) %G%
782918e3 18#
a10b24d4 19CFLAGS= -O -DASCARCH -I. -I/usr/src/bin/make
782918e3 20LIBC= /lib/libc.a
25b428ad
KB
21SRCS= main.c doname.c misc.c files.c dosys.c gram.c
22OBJS= main.o doname.o misc.o files.o dosys.o gram.o
23MAN= make.0
064c8100 24
25b428ad 25all: make
064c8100 26
25b428ad 27make: ${OBJS} ${LIBC}
782918e3 28 ${CC} -o $@ ${CFLAGS} ${OBJS}
064c8100 29
25b428ad 30clean:
782918e3 31 rm -f ${OBJS} core make gram.c
064c8100 32
25b428ad
KB
33cleandir: clean
34 rm -f ${MAN} tags .depend
35
36depend: ${SRCS}
782918e3 37 mkdep ${CFLAGS} ${SRCS}
064c8100 38
25b428ad 39install: ${MAN}
782918e3 40 install -s -o bin -g bin -m 755 make ${DESTDIR}/bin/make
25b428ad 41 install -o bin -g bin -m 444 make.0 ${DESTDIR}/usr/man/cat1/make.0
064c8100 42
25b428ad 43lint: ${SRCS}
782918e3 44 lint ${CFLAGS} ${SRCS}
bf2aeca2 45
25b428ad 46tags: ${SRCS}
782918e3 47 ctags ${SRCS}