Home | History | Annotate | Line # | Download | only in sh
Makefile revision 1.27
      1  1.27       gwr #	$NetBSD: Makefile,v 1.27 1997/05/06 20:44:59 gwr 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.24  christos GENSRCS= arith.c arith_lex.c builtins.c init.c nodes.c syntax.c
      9  1.24  christos SRCS= ${SHSRCS} ${GENSRCS}
     10  1.24  christos 
     11  1.13       jtc LDADD+=	-ll -ledit -ltermcap
     12  1.21   mycroft DPADD+=	${LIBL} ${LIBEDIT} ${LIBTERMCAP}
     13  1.24  christos 
     14  1.10       jtc LFLAGS= -8	# 8-bit lex scanner for arithmetic
     15  1.24  christos 
     16   1.1       cgd CFLAGS+=-DSHELL -I. -I${.CURDIR}
     17  1.24  christos 
     18  1.26   thorpej # XXX
     19  1.26   thorpej .if (${MACHINE_ARCH} == "powerpc")
     20  1.26   thorpej CFLAGS+= -w
     21  1.26   thorpej .endif
     22  1.26   thorpej 
     23  1.27       gwr # echo.c
     24  1.27       gwr .PATH.c: ${.CURDIR}/bltin
     25  1.27       gwr # printf.c
     26  1.27       gwr .PATH.c: ${.CURDIR}/../../usr.bin/printf
     27   1.1       cgd 
     28  1.24  christos CLEANFILES+= builtins.h mkinit mknodes mksyntax \
     29  1.24  christos 	nodes.h syntax.h token.h y.tab.h
     30  1.24  christos CLEANFILES+= ${GENSRCS}
     31  1.22  christos 
     32  1.24  christos beforedepend: token.h
     33  1.24  christos 
     34  1.24  christos token.h: mktokens
     35   1.1       cgd 	sh ${.CURDIR}/mktokens
     36   1.1       cgd 
     37  1.24  christos builtins.h builtins.c: mkbuiltins builtins.def
     38  1.14       cgd 	cd ${.CURDIR}; sh mkbuiltins ${.OBJDIR}
     39   1.1       cgd 
     40  1.24  christos init.c: mkinit ${SHSRCS}
     41  1.23   mycroft 	./mkinit ${.ALLSRC:S/^mkinit$//}
     42  1.10       jtc 
     43  1.24  christos nodes.c nodes.h: mknodes nodetypes nodes.c.pat
     44   1.1       cgd 	./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat
     45   1.1       cgd 
     46   1.1       cgd syntax.c syntax.h: mksyntax
     47   1.1       cgd 	./mksyntax
     48   1.1       cgd 
     49  1.24  christos parser.o: token.h
     50  1.26   thorpej 
     51  1.26   thorpej mkinit: mkinit.c
     52  1.26   thorpej 	${HOST_COMPILE.c} ${.CURDIR}/mkinit.c
     53  1.26   thorpej 	${HOST_LINK.c} -o ${.TARGET} mkinit.o
     54  1.26   thorpej 
     55  1.26   thorpej mknodes: mknodes.c
     56  1.26   thorpej 	${HOST_COMPILE.c} ${.CURDIR}/mknodes.c
     57  1.26   thorpej 	${HOST_LINK.c} -o ${.TARGET} mknodes.o
     58  1.26   thorpej 
     59  1.26   thorpej mksyntax: mksyntax.c
     60  1.26   thorpej 	${HOST_COMPILE.c} ${.CURDIR}/mksyntax.c
     61  1.26   thorpej 	${HOST_LINK.c} -o ${.TARGET} mksyntax.o
     62  1.10       jtc 
     63   1.8       cgd .include <bsd.prog.mk>
     64  1.24  christos 
     65  1.25       cgd ${OBJS}: builtins.h nodes.h syntax.h
     66