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