]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/make/Makefile
Remove _PATH_CP now that it is defined in paths.h
[FreeBSD/FreeBSD.git] / usr.bin / make / Makefile
1 #       @(#)Makefile    5.2 (Berkeley) 12/28/90
2 #       $Id: Makefile,v 1.6 1994/06/30 05:33:39 cgd Exp $
3 # $FreeBSD$
4
5 PROG=   make
6 CFLAGS+=-I${.CURDIR}
7 SRCS=   arch.c buf.c compat.c cond.c dir.c for.c hash.c job.c main.c \
8         make.c parse.c str.c suff.c targ.c var.c
9 SRCS+=  lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \
10         lstDatum.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \
11         lstFind.c lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \
12         lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c lstLast.c \
13         lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.c
14 .PATH:  ${.CURDIR}/lst.lib
15
16 NOSHARED?=      YES
17
18 # Set the shell which make(1) uses.  Bourne is the default, but a decent
19 # Korn shell works fine, and much faster.  Using the C shell for this
20 # will almost certainly break everything, but it's Unix tradition to
21 # allow you to shoot yourself in the foot if you want to :-)
22
23 MAKE_SHELL?=    sh
24 .if ${MAKE_SHELL} == "csh"
25 CFLAGS+=        -DDEFSHELL=0
26 .elif ${MAKE_SHELL} == "sh"
27 CFLAGS+=        -DDEFSHELL=1
28 .elif ${MAKE_SHELL} == "ksh"
29 CFLAGS+=        -DDEFSHELL=2
30 .else
31 .error "MAKE_SHELL must be set to one of \"csh\", \"sh\" or \"ksh\"."
32 .endif
33
34 .include <bsd.prog.mk>