Makefile revision 97121
1# @(#)Makefile 5.2 (Berkeley) 12/28/90 2# $Id: Makefile,v 1.6 1994/06/30 05:33:39 cgd Exp $ 3# $FreeBSD: head/usr.bin/make/Makefile 97121 2002-05-22 14:35:47Z ru $ 4 5PROG= make 6CFLAGS+=-I${.CURDIR} 7SRCS= 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 9SRCS+= 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 16NOSHARED?= YES 17 18CFLAGS+=-DMAKE_VERSION=\"5200205220\" 19 20main.o: ${MAKEFILE} 21 22# Set the shell which make(1) uses. Bourne is the default, but a decent 23# Korn shell works fine, and much faster. Using the C shell for this 24# will almost certainly break everything, but it's Unix tradition to 25# allow you to shoot yourself in the foot if you want to :-) 26 27MAKE_SHELL?= sh 28.if ${MAKE_SHELL} == "csh" 29CFLAGS+= -DDEFSHELL=0 30.elif ${MAKE_SHELL} == "sh" 31CFLAGS+= -DDEFSHELL=1 32.elif ${MAKE_SHELL} == "ksh" 33CFLAGS+= -DDEFSHELL=2 34.else 35.error "MAKE_SHELL must be set to one of \"csh\", \"sh\" or \"ksh\"." 36.endif 37 38.include <bsd.prog.mk> 39