Home | History | Annotate | Line # | Download | only in sh
Makefile revision 1.102
      1  1.102  christos #	$NetBSD: Makefile,v 1.102 2016/02/27 18:34:12 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.78  christos 	test.c kill.c syntax.c
     12   1.77       dsl GENSRCS=arith.c arith_lex.c builtins.c init.c nodes.c
     13  1.102  christos GENHDRS=arith.h builtins.h nodes.h token.h nodenames.h
     14   1.29   mycroft SRCS=	${SHSRCS} ${GENSRCS}
     15   1.24  christos 
     16   1.69     lukem DPSRCS+=${GENHDRS}
     17   1.69     lukem 
     18   1.91        he LDADD+=	-ll -ledit -lterminfo
     19   1.91        he DPADD+=	${LIBL} ${LIBEDIT} ${LIBTERMINFO}
     20   1.24  christos 
     21   1.64     lukem LFLAGS=	-8	# 8-bit lex scanner for arithmetic
     22   1.64     lukem 
     23   1.82       apb # Environment for scripts executed during build.
     24   1.82       apb SCRIPT_ENV= \
     25   1.82       apb 	AWK=${TOOL_AWK:Q} \
     26   1.83       apb 	SED=${TOOL_SED:Q}
     27   1.82       apb 
     28   1.75       dsl # The .depend file can get references to these temporary files
     29   1.75       dsl .OPTIONAL: lex.yy.c y.tab.c
     30   1.75       dsl 
     31   1.64     lukem .ifdef CRUNCHEDPROG
     32   1.64     lukem LFLAGS+=-L
     33   1.64     lukem YFLAGS+=-l
     34   1.64     lukem .endif
     35   1.24  christos 
     36   1.86  christos CPPFLAGS+=-DSHELL -I. -I${.CURDIR}
     37   1.62  christos #XXX: For testing only.
     38   1.94  christos #CPPFLAGS+=-DDEBUG=2
     39   1.94  christos #COPTS+=-g
     40   1.62  christos #CFLAGS+=-funsigned-char
     41   1.62  christos #TARGET_CHARFLAG?= -DTARGET_CHAR="unsigned char" -funsigned-char
     42   1.54     lukem 
     43   1.54     lukem .ifdef SMALLPROG
     44   1.54     lukem CPPFLAGS+=-DSMALL
     45  1.101     joerg .endif
     46  1.101     joerg .ifdef TINYPROG
     47  1.101     joerg CPPFLAGS+=-DTINY
     48   1.78  christos .else
     49   1.78  christos SRCS+=printf.c
     50   1.54     lukem .endif
     51   1.24  christos 
     52   1.61  christos .PATH:	${.CURDIR}/bltin ${NETBSDSRCDIR}/bin/test \
     53   1.61  christos 	${NETBSDSRCDIR}/usr.bin/printf \
     54   1.61  christos 	${NETBSDSRCDIR}/bin/kill
     55    1.1       cgd 
     56   1.69     lukem CLEANFILES+= ${GENSRCS} ${GENHDRS} y.tab.h
     57   1.67      jmmv CLEANFILES+= trace
     58   1.24  christos 
     59   1.24  christos token.h: mktokens
     60   1.72     lukem 	${_MKTARGET_CREATE}
     61   1.82       apb 	${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC}
     62    1.1       cgd 
     63   1.89  christos .ORDER: builtins.h builtins.c
     64   1.89  christos builtins.h builtins.c: mkbuiltins shell.h builtins.def
     65   1.72     lukem 	${_MKTARGET_CREATE}
     66   1.89  christos 	${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} ${.OBJDIR}
     67   1.89  christos 	[ -f builtins.h ]
     68    1.1       cgd 
     69   1.75       dsl init.c: mkinit.sh ${SHSRCS}
     70   1.72     lukem 	${_MKTARGET_CREATE}
     71   1.82       apb 	${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC}
     72   1.10       jtc 
     73   1.89  christos .ORDER: nodes.h nodes.c
     74   1.88  uebayasi nodes.c nodes.h: mknodes.sh nodetypes nodes.c.pat
     75   1.88  uebayasi 	${_MKTARGET_CREATE}
     76   1.89  christos 	${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} ${.OBJDIR}
     77   1.89  christos 	[ -f nodes.h ]
     78   1.87  uebayasi 
     79  1.102  christos nodenames.h: mknodenames.sh nodes.h
     80  1.102  christos 	${_MKTARGET_CREATE}
     81  1.102  christos 	${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET}
     82  1.102  christos 
     83   1.68     lukem .if ${USETOOLS} == "yes"
     84   1.99       apb NBCOMPATLIB=   -L${TOOLDIR}/lib -lnbcompat
     85   1.68     lukem .endif
     86   1.68     lukem 
     87   1.92     perry SUBDIR+=USD.doc
     88   1.92     perry 
     89   1.97  christos COPTS.printf.c = -Wno-format-nonliteral
     90   1.98  christos COPTS.jobs.c = -Wno-format-nonliteral
     91   1.97  christos 
     92   1.43       cgd .include <bsd.prog.mk>
     93   1.93     perry .include <bsd.subdir.mk>
     94