Home | History | Annotate | Line # | Download | only in sh
Makefile revision 1.31
      1  1.31     lukem #	$NetBSD: Makefile,v 1.31 1997/06/16 02:42:38 lukem 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.24  christos 
     17   1.1       cgd CFLAGS+=-DSHELL -I. -I${.CURDIR}
     18  1.24  christos 
     19  1.26   thorpej # XXX
     20  1.26   thorpej .if (${MACHINE_ARCH} == "powerpc")
     21  1.26   thorpej CFLAGS+= -w
     22  1.26   thorpej .endif
     23  1.26   thorpej 
     24  1.28       gwr .PATH:	${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf
     25   1.1       cgd 
     26  1.29   mycroft CLEANFILES+= mkinit mknodes mksyntax
     27  1.30     veego CLEANFILES+= mkinit.o mknodes.o mksyntax.o
     28  1.29   mycroft CLEANFILES+= ${GENSRCS} y.tab.h
     29  1.24  christos 
     30  1.24  christos token.h: mktokens
     31   1.1       cgd 	sh ${.CURDIR}/mktokens
     32   1.1       cgd 
     33  1.29   mycroft builtins.c builtins.h: mkbuiltins builtins.def
     34  1.14       cgd 	cd ${.CURDIR}; sh mkbuiltins ${.OBJDIR}
     35   1.1       cgd 
     36  1.24  christos init.c: mkinit ${SHSRCS}
     37  1.23   mycroft 	./mkinit ${.ALLSRC:S/^mkinit$//}
     38  1.10       jtc 
     39  1.24  christos nodes.c nodes.h: mknodes nodetypes nodes.c.pat
     40   1.1       cgd 	./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat
     41   1.1       cgd 
     42   1.1       cgd syntax.c syntax.h: mksyntax
     43   1.1       cgd 	./mksyntax
     44  1.26   thorpej 
     45  1.26   thorpej mkinit: mkinit.c
     46  1.26   thorpej 	${HOST_COMPILE.c} ${.CURDIR}/mkinit.c
     47  1.26   thorpej 	${HOST_LINK.c} -o ${.TARGET} mkinit.o
     48  1.26   thorpej 
     49  1.26   thorpej mknodes: mknodes.c
     50  1.26   thorpej 	${HOST_COMPILE.c} ${.CURDIR}/mknodes.c
     51  1.26   thorpej 	${HOST_LINK.c} -o ${.TARGET} mknodes.o
     52  1.26   thorpej 
     53  1.26   thorpej mksyntax: mksyntax.c
     54  1.26   thorpej 	${HOST_COMPILE.c} ${.CURDIR}/mksyntax.c
     55  1.26   thorpej 	${HOST_LINK.c} -o ${.TARGET} mksyntax.o
     56  1.10       jtc 
     57   1.8       cgd .include <bsd.prog.mk>
     58  1.24  christos 
     59  1.31     lukem ${OBJS}: builtins.h nodes.h syntax.h token.h
     60