Makefile revision 1.44
11.44Swrstuden#	$NetBSD: Makefile,v 1.44 1998/09/12 18:55:07 wrstuden Exp $
21.20Schristos#	@(#)Makefile	8.4 (Berkeley) 5/5/95
31.1Scgd
41.1ScgdPROG=	sh
51.24SchristosSHSRCS=	alias.c cd.c echo.c error.c eval.c exec.c expand.c \
61.10Sjtc	histedit.c input.c jobs.c mail.c main.c memalloc.c miscbltin.c \
71.24Schristos	mystring.c options.c parser.c redir.c show.c trap.c output.c var.c
81.29SmycroftGENSRCS=arith.c arith_lex.c builtins.c builtins.h init.c nodes.c nodes.h \
91.29Smycroft	syntax.c syntax.h token.h
101.29SmycroftSRCS=	${SHSRCS} ${GENSRCS}
111.24Schristos
121.13SjtcLDADD+=	-ll -ledit -ltermcap
131.21SmycroftDPADD+=	${LIBL} ${LIBEDIT} ${LIBTERMCAP}
141.24Schristos
151.10SjtcLFLAGS= -8	# 8-bit lex scanner for arithmetic
161.41StvYFLAGS=	-d
171.24Schristos
181.35SchristosCPPFLAGS+=-DSHELL -I. -I${.CURDIR}
191.24Schristos
201.28Sgwr.PATH:	${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf
211.1Scgd
221.29SmycroftCLEANFILES+= mkinit mknodes mksyntax
231.30SveegoCLEANFILES+= mkinit.o mknodes.o mksyntax.o
241.29SmycroftCLEANFILES+= ${GENSRCS} y.tab.h
251.24Schristos
261.24Schristostoken.h: mktokens
271.38Schristos	sh ${.ALLSRC}
281.1Scgd
291.38Schristosbuiltins.c builtins.h: mkbuiltins shell.h builtins.def
301.38Schristos	sh ${.ALLSRC} ${.OBJDIR}
311.1Scgd
321.24Schristosinit.c: mkinit ${SHSRCS}
331.39Smrg	./${.ALLSRC}
341.10Sjtc
351.24Schristosnodes.c nodes.h: mknodes nodetypes nodes.c.pat
361.40Sveego	./${.ALLSRC}
371.1Scgd
381.1Scgdsyntax.c syntax.h: mksyntax
391.40Sveego	./${.ALLSRC}
401.44Swrstuden
411.44Swrstudenmkinit: mkinit.c
421.44Swrstuden	${HOST_LINK.c} -o mkinit ${.CURDIR}/mkinit.c
431.44Swrstuden
441.44Swrstudenmknodes: mknodes.c
451.44Swrstuden	${HOST_LINK.c} -o mknodes ${.CURDIR}/mknodes.c
461.44Swrstuden
471.44Swrstuden.if	(${MACHINE_ARCH} == "powerpc") || \
481.44Swrstuden	(${MACHINE_ARCH} == "arm32")
491.44SwrstudenTARGET_CHARFLAG= -DTARGET_CHAR="u_int8_t"
501.44Swrstuden.else
511.44SwrstudenTARGET_CHARFLAG= -DTARGET_CHAR="int8_t"
521.44Swrstuden.endif
531.44Swrstuden
541.44Swrstudenmksyntax: mksyntax.c
551.44Swrstuden	${HOST_LINK.c} ${TARGET_CHARFLAG} -o mksyntax ${.CURDIR}/mksyntax.c
561.10Sjtc
571.43Scgd.include <bsd.prog.mk>
581.43Scgd
591.42Slukem${OBJS}: builtins.h nodes.h syntax.h token.h
60