48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
# $Header: /cvsroot/src/bin/sh/Makefile,v 1.4 1993/05/04 13:56:27 mycroft Exp $
|
|
|
|
PROG= sh
|
|
SRCS= builtins.c cd.c dirent.c echo.c error.c eval.c exec.c expand.c \
|
|
input.c jobs.c mail.c main.c memalloc.c miscbltin.c \
|
|
mystring.c nodes.c options.c parser.c redir.c show.c signames.c \
|
|
syntax.c trap.c output.c var.c
|
|
OBJS+= init.o
|
|
CFLAGS+=-DSHELL -I. -I${.CURDIR}
|
|
.PATH: ${.CURDIR}/bltin
|
|
CLEANFILES+=\
|
|
builtins.c builtins.h init.c mkinit mknodes mksignames mksyntax \
|
|
nodes.c nodes.h signames.c signames.h syntax.c syntax.h token.def
|
|
|
|
.depend parser.o: token.def
|
|
token.def: mktokens
|
|
sh ${.CURDIR}/mktokens
|
|
|
|
builtins.h builtins.c: ${.CURDIR}/mkbuiltins ${.CURDIR}/builtins
|
|
cd ${.CURDIR}; sh mkbuiltins
|
|
|
|
init.c: mkinit ${SRCS}
|
|
./mkinit '${CC} -c ${CFLAGS} init.c' ${.ALLSRC}
|
|
touch ${.TARGET}
|
|
|
|
mkinit: ${.CURDIR}/mkinit.c
|
|
${CC} ${CFLAGS} ${.CURDIR}/mkinit.c -o $@
|
|
|
|
nodes.c nodes.h: mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat
|
|
./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat
|
|
|
|
mknodes: ${.CURDIR}/mknodes.c
|
|
${CC} ${CFLAGS} ${.CURDIR}/mknodes.c -o $@
|
|
|
|
signames.c signames.h: mksignames
|
|
./mksignames
|
|
|
|
mksignames: ${.CURDIR}/mksignames.c
|
|
${CC} ${CFLAGS} ${.CURDIR}/mksignames.c -o $@
|
|
|
|
syntax.c syntax.h: mksyntax
|
|
./mksyntax
|
|
|
|
mksyntax: ${.CURDIR}/mksyntax.c ${.CURDIR}/parser.h
|
|
${CC} ${CFLAGS} ${.CURDIR}/mksyntax.c -o $@
|
|
|
|
.include <bsd.prog.mk>
|