mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Allow config to be compiled from another source directory, such as one
for building tools. This boils down to replacing ${.CURDIR} with ${SRCDIR}, where the latter is the directory in which this makefile lives. Also allow overriding where file2c comes from using ${FILE2C}.
This commit is contained in:
parent
f1ee30ccd6
commit
5bdda834d5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=307967
@ -1,15 +1,20 @@
|
||||
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
||||
# $FreeBSD$
|
||||
|
||||
SRCDIR:=${.PARSEDIR:tA}
|
||||
|
||||
PROG= config
|
||||
MAN= config.5 config.8
|
||||
SRCS= config.y main.c lang.l mkmakefile.c mkheaders.c \
|
||||
mkoptions.c y.tab.h kernconf.c
|
||||
|
||||
kernconf.c: kernconf.tmpl
|
||||
file2c 'char kernconfstr[] = {' ',0};' < ${.CURDIR}/kernconf.tmpl > kernconf.c
|
||||
FILE2C?=file2c
|
||||
|
||||
CFLAGS+= -I. -I${.CURDIR}
|
||||
kernconf.c: kernconf.tmpl
|
||||
${FILE2C} 'char kernconfstr[] = {' ',0};' < \
|
||||
${SRCDIR}/kernconf.tmpl > kernconf.c
|
||||
|
||||
CFLAGS+= -I. -I${SRCDIR}
|
||||
|
||||
NO_WMISSING_VARIABLE_DECLARATIONS=
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user