Bug #3248 » 0007-sh-1-Fix-compilation.patch
bin/kill/kill.c | ||
---|---|---|
#ifdef SHELL
|
||
#define main killcmd
|
||
#include "bltin/bltin.h"
|
||
#include "error.h"
|
||
#endif
|
||
static void nosig(const char *);
|
bin/sh/Makefile | ||
---|---|---|
# @(#)Makefile 8.4 (Berkeley) 5/5/95
|
||
# $FreeBSD$
|
||
.include <src.opts.mk>
|
||
CONFGROUPS= ETC ROOT
|
||
ETC= profile
|
||
ROOT= dot.shrc dot.profile
|
||
ROOTDIR= /root
|
||
ROOTNAME_dot.shrc= .shrc
|
||
ROOTNAME_dot.profile= .profile
|
||
PACKAGE=runtime
|
||
PROG= sh
|
||
INSTALLFLAGS= -S
|
||
SHSRCS= alias.c arith_yacc.c arith_yylex.c cd.c echo.c error.c eval.c \
|
||
... | ... | |
GENHDRS= builtins.h nodes.h syntax.h token.h
|
||
SRCS= ${SHSRCS} ${GENSRCS} ${GENHDRS}
|
||
# would be needed if WARNS upgraded to 3, but lets keep the stderr output
|
||
# clean, so WARNS has been lowered to 2.
|
||
#
|
||
WARNS?= 2
|
||
# MLINKS for Shell built in commands for which there are no userland
|
||
# utilities of the same name are handled with the associated manpage,
|
||
# builtin.1 in share/man/man1/.
|
||
LIBADD= edit
|
||
CFLAGS+=-DSHELL -I. -I${.CURDIR}
|
||
CFLAGS+=-DSHELL -I. -I${.CURDIR} -I${.CURDIR}/../../contrib/libedit/src
|
||
# for debug:
|
||
# DEBUG_FLAGS+= -g -DDEBUG=2 -fno-inline
|
||
# SHSRCS+=show.c
|
||
.if defined(BOOTSTRAPPING)
|
||
CFLAGS+= -DNO_HISTORY
|
||
# LIBEDIT is not needed here
|
||
.else
|
||
CFLAGS+= ${PRIVATELIB_CFLAGS}
|
||
DPADD= ${LIBEDIT} ${LIBNCURSES}
|
||
LDADD= ${LIBEDIT} ${LIBNCURSES}
|
||
.endif
|
||
.PATH: ${.CURDIR}/bltin \
|
||
${.CURDIR:H}/kill \
|
||
${.CURDIR:H}/test \
|
||
${SRCTOP}/usr.bin/printf
|
||
${.CURDIR}/../kill \
|
||
${.CURDIR}/../test \
|
||
${.CURDIR}/../../usr.bin/printf
|
||
CLEANFILES+= mknodes mksyntax
|
||
CLEANFILES+= ${GENSRCS} ${GENHDRS}
|
||
... | ... | |
build-tools: mknodes mksyntax
|
||
.ORDER: builtins.c builtins.h
|
||
builtins.h: .NOMETA
|
||
builtins.c builtins.h: mkbuiltins builtins.def
|
||
sh ${.CURDIR}/mkbuiltins ${.CURDIR}
|
||
... | ... | |
mknodes mksyntax: ${BUILD_TOOLS_META}
|
||
.ORDER: nodes.c nodes.h
|
||
nodes.h: .NOMETA
|
||
nodes.c nodes.h: mknodes nodetypes nodes.c.pat
|
||
${BTOOLSPATH:U.}/mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat
|
||
.ORDER: syntax.c syntax.h
|
||
syntax.h: .NOMETA
|
||
syntax.c syntax.h: mksyntax
|
||
${BTOOLSPATH:U.}/mksyntax
|
||
... | ... | |
HAS_TESTS=
|
||
SUBDIR.${MK_TESTS}+= tests
|
||
beforeinstallconfig:
|
||
rm -f ${DESTDIR}/.profile
|
||
afterinstallconfig:
|
||
${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}/root/.profile ${DESTDIR}/.profile
|
||
regress: sh
|
||
cd ${.CURDIR}/../../tools/regression/bin/sh && ${MAKE} SH=${.OBJDIR}/sh
|
||
.include <bsd.prog.mk>
|
bin/sh/Makefile.depend | ||
---|---|---|
# $FreeBSD$
|
||
# Autogenerated - do NOT edit!
|
||
DIRDEPS = \
|
||
gnu/lib/csu \
|
||
include \
|
||
include/xlocale \
|
||
lib/${CSU_DIR} \
|
||
lib/libc \
|
||
lib/libcompiler_rt \
|
||
lib/libedit \
|
||
lib/ncurses/ncursesw \
|
||
.include <dirdeps.mk>
|
||
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
|
||
# local dependencies - needed for -jN in clean tree
|
||
.endif
|
bin/sh/main.c | ||
---|---|---|
* SUCH DAMAGE.
|
||
*/
|
||
#ifndef lint
|
||
static char const copyright[] =
|
||
"@(#) Copyright (c) 1991, 1993\n\
|
||
The Regents of the University of California. All rights reserved.\n";
|
||
#endif /* not lint */
|
||
#ifndef lint
|
||
#if 0
|
||
static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/28/95";
|
bin/test/test.c | ||
---|---|---|
#ifdef SHELL
|
||
#define main testcmd
|
||
#include "bltin/bltin.h"
|
||
#include "error.h"
|
||
#else
|
||
#include <locale.h>
|
||