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