Home | History | Annotate | Line # | Download | only in sh
Makefile revision 1.102.4.1
      1  1.102.4.1    bouyer #	$NetBSD: Makefile,v 1.102.4.1 2017/04/21 16:50:42 bouyer 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.1       cgd PROG=	sh
      7  1.102.4.1    bouyer SHSRCS=	alias.c arith_token.c arithmetic.c cd.c echo.c error.c eval.c exec.c \
      8  1.102.4.1    bouyer 	expand.c histedit.c input.c jobs.c mail.c main.c memalloc.c \
      9  1.102.4.1    bouyer 	miscbltin.c mystring.c options.c parser.c redir.c show.c trap.c \
     10  1.102.4.1    bouyer 	output.c var.c test.c kill.c syntax.c
     11  1.102.4.1    bouyer GENSRCS=builtins.c init.c nodes.c
     12  1.102.4.1    bouyer GENHDRS=builtins.h nodes.h token.h nodenames.h
     13       1.29   mycroft SRCS=	${SHSRCS} ${GENSRCS}
     14       1.24  christos 
     15       1.69     lukem DPSRCS+=${GENHDRS}
     16       1.69     lukem 
     17       1.91        he LDADD+=	-ll -ledit -lterminfo
     18       1.91        he DPADD+=	${LIBL} ${LIBEDIT} ${LIBTERMINFO}
     19       1.24  christos 
     20       1.82       apb # Environment for scripts executed during build.
     21       1.82       apb SCRIPT_ENV= \
     22       1.82       apb 	AWK=${TOOL_AWK:Q} \
     23       1.83       apb 	SED=${TOOL_SED:Q}
     24       1.82       apb 
     25       1.86  christos CPPFLAGS+=-DSHELL -I. -I${.CURDIR}
     26       1.62  christos #XXX: For testing only.
     27       1.94  christos #CPPFLAGS+=-DDEBUG=2
     28       1.94  christos #COPTS+=-g
     29       1.62  christos #CFLAGS+=-funsigned-char
     30       1.62  christos #TARGET_CHARFLAG?= -DTARGET_CHAR="unsigned char" -funsigned-char
     31       1.54     lukem 
     32       1.54     lukem .ifdef SMALLPROG
     33       1.54     lukem CPPFLAGS+=-DSMALL
     34      1.101     joerg .endif
     35      1.101     joerg .ifdef TINYPROG
     36      1.101     joerg CPPFLAGS+=-DTINY
     37       1.78  christos .else
     38       1.78  christos SRCS+=printf.c
     39       1.54     lukem .endif
     40       1.24  christos 
     41       1.61  christos .PATH:	${.CURDIR}/bltin ${NETBSDSRCDIR}/bin/test \
     42       1.61  christos 	${NETBSDSRCDIR}/usr.bin/printf \
     43       1.61  christos 	${NETBSDSRCDIR}/bin/kill
     44        1.1       cgd 
     45  1.102.4.1    bouyer CLEANFILES+= ${GENSRCS} ${GENHDRS} sh.html1
     46  1.102.4.1    bouyer CLEANFILES+= trace.*
     47       1.24  christos 
     48       1.24  christos token.h: mktokens
     49       1.72     lukem 	${_MKTARGET_CREATE}
     50       1.82       apb 	${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC}
     51        1.1       cgd 
     52       1.89  christos .ORDER: builtins.h builtins.c
     53       1.89  christos builtins.h builtins.c: mkbuiltins shell.h builtins.def
     54       1.72     lukem 	${_MKTARGET_CREATE}
     55       1.89  christos 	${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} ${.OBJDIR}
     56       1.89  christos 	[ -f builtins.h ]
     57        1.1       cgd 
     58       1.75       dsl init.c: mkinit.sh ${SHSRCS}
     59       1.72     lukem 	${_MKTARGET_CREATE}
     60       1.82       apb 	${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC}
     61       1.10       jtc 
     62       1.89  christos .ORDER: nodes.h nodes.c
     63       1.88  uebayasi nodes.c nodes.h: mknodes.sh nodetypes nodes.c.pat
     64       1.88  uebayasi 	${_MKTARGET_CREATE}
     65       1.89  christos 	${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} ${.OBJDIR}
     66       1.89  christos 	[ -f nodes.h ]
     67       1.87  uebayasi 
     68      1.102  christos nodenames.h: mknodenames.sh nodes.h
     69      1.102  christos 	${_MKTARGET_CREATE}
     70      1.102  christos 	${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET}
     71      1.102  christos 
     72       1.68     lukem .if ${USETOOLS} == "yes"
     73       1.99       apb NBCOMPATLIB=   -L${TOOLDIR}/lib -lnbcompat
     74       1.68     lukem .endif
     75       1.68     lukem 
     76       1.92     perry SUBDIR+=USD.doc
     77       1.92     perry 
     78       1.97  christos COPTS.printf.c = -Wno-format-nonliteral
     79       1.98  christos COPTS.jobs.c = -Wno-format-nonliteral
     80       1.97  christos 
     81       1.43       cgd .include <bsd.prog.mk>
     82       1.93     perry .include <bsd.subdir.mk>
     83