1996-10-06 02:35:38 +00:00
|
|
|
# @(#)Makefile 5.2 (Berkeley) 12/28/90
|
2002-04-13 10:57:56 +00:00
|
|
|
# $Id: Makefile,v 1.6 1994/06/30 05:33:39 cgd Exp $
|
1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1994-05-27 12:33:43 +00:00
|
|
|
|
|
|
|
PROG= make
|
2001-04-26 04:40:57 +00:00
|
|
|
CFLAGS+=-I${.CURDIR}
|
1994-05-27 12:33:43 +00:00
|
|
|
SRCS= arch.c buf.c compat.c cond.c dir.c for.c hash.c job.c main.c \
|
2002-10-28 23:33:57 +00:00
|
|
|
make.c parse.c str.c suff.c targ.c util.c var.c var_modify.c
|
1994-05-27 12:33:43 +00:00
|
|
|
SRCS+= lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \
|
|
|
|
lstDatum.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \
|
|
|
|
lstFind.c lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \
|
|
|
|
lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c lstLast.c \
|
|
|
|
lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.c
|
|
|
|
.PATH: ${.CURDIR}/lst.lib
|
|
|
|
|
2001-05-18 09:05:56 +00:00
|
|
|
NOSHARED?= YES
|
|
|
|
|
2004-08-12 11:49:55 +00:00
|
|
|
CFLAGS+=-DMAKE_VERSION=\"5200408120\"
|
2002-08-31 07:18:40 +00:00
|
|
|
.if defined(_UPGRADING)
|
|
|
|
CFLAGS+=-D__FBSDID=__RCSID
|
|
|
|
.endif
|
2002-05-22 14:35:47 +00:00
|
|
|
|
2004-09-06 15:25:07 +00:00
|
|
|
# There is no obvious performance improvement currently.
|
2002-10-04 20:30:03 +00:00
|
|
|
# CFLAGS+=-DUSE_KQUEUE
|
|
|
|
|
2002-05-22 14:35:47 +00:00
|
|
|
main.o: ${MAKEFILE}
|
|
|
|
|
2000-08-16 23:31:43 +00:00
|
|
|
# Set the shell which make(1) uses. Bourne is the default, but a decent
|
|
|
|
# Korn shell works fine, and much faster. Using the C shell for this
|
|
|
|
# will almost certainly break everything, but it's Unix tradition to
|
|
|
|
# allow you to shoot yourself in the foot if you want to :-)
|
|
|
|
|
|
|
|
MAKE_SHELL?= sh
|
|
|
|
.if ${MAKE_SHELL} == "csh"
|
|
|
|
CFLAGS+= -DDEFSHELL=0
|
|
|
|
.elif ${MAKE_SHELL} == "sh"
|
|
|
|
CFLAGS+= -DDEFSHELL=1
|
|
|
|
.elif ${MAKE_SHELL} == "ksh"
|
|
|
|
CFLAGS+= -DDEFSHELL=2
|
|
|
|
.else
|
|
|
|
.error "MAKE_SHELL must be set to one of \"csh\", \"sh\" or \"ksh\"."
|
|
|
|
.endif
|
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
.include <bsd.prog.mk>
|