Makefile revision 1.48
11.48Stron#	$NetBSD: Makefile,v 1.48 1999/02/05 22:19:47 tron Exp $
21.20Schristos#	@(#)Makefile	8.4 (Berkeley) 5/5/95
31.1Scgd
41.47SchristosYHEADER=1
51.1ScgdPROG=	sh
61.24SchristosSHSRCS=	alias.c cd.c echo.c error.c eval.c exec.c expand.c \
71.10Sjtc	histedit.c input.c jobs.c mail.c main.c memalloc.c miscbltin.c \
81.24Schristos	mystring.c options.c parser.c redir.c show.c trap.c output.c var.c
91.48StronGENSRCS=arith.c arith.h arith_lex.c builtins.c builtins.h init.c nodes.c \
101.48Stron	nodes.h syntax.c syntax.h token.h
111.29SmycroftSRCS=	${SHSRCS} ${GENSRCS}
121.24Schristos
131.13SjtcLDADD+=	-ll -ledit -ltermcap
141.21SmycroftDPADD+=	${LIBL} ${LIBEDIT} ${LIBTERMCAP}
151.24Schristos
161.10SjtcLFLAGS= -8	# 8-bit lex scanner for arithmetic
171.41StvYFLAGS=	-d
181.24Schristos
191.35SchristosCPPFLAGS+=-DSHELL -I. -I${.CURDIR}
201.24Schristos
211.28Sgwr.PATH:	${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf
221.1Scgd
231.29SmycroftCLEANFILES+= mkinit mknodes mksyntax
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.46Sross	${HOST_LINK.c} -o mkinit ${.IMPSRC}
431.44Swrstuden
441.44Swrstudenmknodes: mknodes.c
451.46Sross	${HOST_LINK.c} -o mknodes ${.IMPSRC}
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.46Sross	${HOST_LINK.c} ${TARGET_CHARFLAG} -o mksyntax ${.IMPSRC}
561.10Sjtc
571.43Scgd.include <bsd.prog.mk>
581.43Scgd
591.42Slukem${OBJS}: builtins.h nodes.h syntax.h token.h
60