Remove ${DESTDIR} from _PATH_TCSHELL, it is call path, not install path
Add gethost to build-tools to help cross-building
This commit is contained in:
parent
e667a2d992
commit
bdc45483d5
@ -11,7 +11,7 @@ TCSHDIR= ${.CURDIR}/../../contrib/tcsh
|
||||
|
||||
PROG= csh
|
||||
SUBDIR= nls
|
||||
DFLAGS= -D_PATH_TCSHELL='"${DESTDIR}/bin/${PROG}"'
|
||||
DFLAGS= -D_PATH_TCSHELL='"/bin/${PROG}"'
|
||||
CFLAGS+= -I${TCSHDIR} -I${.CURDIR} -I. ${DFLAGS}
|
||||
SRCS= sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \
|
||||
sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \
|
||||
@ -45,6 +45,8 @@ CLEANFILES= ${GENHDRS} gethost csh.1
|
||||
csh.1: tcsh.man
|
||||
ln -sf ${.ALLSRC} ${.TARGET}
|
||||
|
||||
build-tools: gethost
|
||||
|
||||
gethost: gethost.c sh.err.h tc.const.h sh.h
|
||||
@rm -f ${.TARGET}
|
||||
${CC} -o gethost ${LDFLAGS} ${CFLAGS} ${TCSHDIR}/gethost.c
|
||||
|
Loading…
x
Reference in New Issue
Block a user