1 1.50 christos # $NetBSD: Makefile,v 1.50 2000/04/09 23:27:03 christos Exp $ 2 1.20 christos # @(#)Makefile 8.4 (Berkeley) 5/5/95 3 1.1 cgd 4 1.49 christos WARNS=2 5 1.47 christos YHEADER=1 6 1.1 cgd PROG= sh 7 1.24 christos SHSRCS= alias.c cd.c echo.c error.c eval.c exec.c expand.c \ 8 1.10 jtc histedit.c input.c jobs.c mail.c main.c memalloc.c miscbltin.c \ 9 1.50 christos mystring.c options.c parser.c redir.c show.c trap.c output.c var.c \ 10 1.50 christos test.c 11 1.48 tron GENSRCS=arith.c arith.h arith_lex.c builtins.c builtins.h init.c nodes.c \ 12 1.48 tron nodes.h syntax.c syntax.h token.h 13 1.29 mycroft SRCS= ${SHSRCS} ${GENSRCS} 14 1.24 christos 15 1.13 jtc LDADD+= -ll -ledit -ltermcap 16 1.21 mycroft DPADD+= ${LIBL} ${LIBEDIT} ${LIBTERMCAP} 17 1.24 christos 18 1.10 jtc LFLAGS= -8 # 8-bit lex scanner for arithmetic 19 1.41 tv YFLAGS= -d 20 1.24 christos 21 1.35 christos CPPFLAGS+=-DSHELL -I. -I${.CURDIR} 22 1.24 christos 23 1.50 christos .PATH: ${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf ${.CURDIR}/../test 24 1.1 cgd 25 1.29 mycroft CLEANFILES+= mkinit mknodes mksyntax 26 1.29 mycroft CLEANFILES+= ${GENSRCS} y.tab.h 27 1.24 christos 28 1.24 christos token.h: mktokens 29 1.38 christos sh ${.ALLSRC} 30 1.1 cgd 31 1.38 christos builtins.c builtins.h: mkbuiltins shell.h builtins.def 32 1.38 christos sh ${.ALLSRC} ${.OBJDIR} 33 1.1 cgd 34 1.24 christos init.c: mkinit ${SHSRCS} 35 1.39 mrg ./${.ALLSRC} 36 1.10 jtc 37 1.24 christos nodes.c nodes.h: mknodes nodetypes nodes.c.pat 38 1.40 veego ./${.ALLSRC} 39 1.1 cgd 40 1.1 cgd syntax.c syntax.h: mksyntax 41 1.40 veego ./${.ALLSRC} 42 1.44 wrstuden 43 1.44 wrstuden mkinit: mkinit.c 44 1.46 ross ${HOST_LINK.c} -o mkinit ${.IMPSRC} 45 1.44 wrstuden 46 1.44 wrstuden mknodes: mknodes.c 47 1.46 ross ${HOST_LINK.c} -o mknodes ${.IMPSRC} 48 1.44 wrstuden 49 1.44 wrstuden .if (${MACHINE_ARCH} == "powerpc") || \ 50 1.44 wrstuden (${MACHINE_ARCH} == "arm32") 51 1.44 wrstuden TARGET_CHARFLAG= -DTARGET_CHAR="u_int8_t" 52 1.44 wrstuden .else 53 1.44 wrstuden TARGET_CHARFLAG= -DTARGET_CHAR="int8_t" 54 1.44 wrstuden .endif 55 1.44 wrstuden 56 1.44 wrstuden mksyntax: mksyntax.c 57 1.46 ross ${HOST_LINK.c} ${TARGET_CHARFLAG} -o mksyntax ${.IMPSRC} 58 1.10 jtc 59 1.43 cgd .include <bsd.prog.mk> 60 1.43 cgd 61 1.42 lukem ${OBJS}: builtins.h nodes.h syntax.h token.h 62