Home | History | Annotate | Line # | Download | only in sh
Makefile revision 1.72
      1  1.72     lukem #	$NetBSD: Makefile,v 1.72 2003/10/21 10:01:19 lukem 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.61  christos 	test.c printf.c kill.c
     12  1.69     lukem GENSRCS=arith.c arith_lex.c builtins.c init.c nodes.c syntax.c
     13  1.69     lukem GENHDRS=arith.h builtins.h nodes.h syntax.h token.h
     14  1.29   mycroft SRCS=	${SHSRCS} ${GENSRCS}
     15  1.24  christos 
     16  1.69     lukem DPSRCS+=${GENHDRS}
     17  1.69     lukem 
     18  1.13       jtc LDADD+=	-ll -ledit -ltermcap
     19  1.21   mycroft DPADD+=	${LIBL} ${LIBEDIT} ${LIBTERMCAP}
     20  1.24  christos 
     21  1.64     lukem LFLAGS=	-8	# 8-bit lex scanner for arithmetic
     22  1.41        tv YFLAGS=	-d
     23  1.64     lukem 
     24  1.64     lukem .ifdef CRUNCHEDPROG
     25  1.64     lukem LFLAGS+=-L
     26  1.64     lukem YFLAGS+=-l
     27  1.64     lukem .endif
     28  1.24  christos 
     29  1.56      ross CPPFLAGS+=-DSHELL -I. -I${.CURDIR}
     30  1.62  christos #XXX: For testing only.
     31  1.63       dsl #CPPFLAGS+=-DDEBUG=1
     32  1.62  christos #CFLAGS+=-funsigned-char
     33  1.62  christos #TARGET_CHARFLAG?= -DTARGET_CHAR="unsigned char" -funsigned-char
     34  1.54     lukem 
     35  1.54     lukem .ifdef SMALLPROG
     36  1.54     lukem CPPFLAGS+=-DSMALL
     37  1.54     lukem .endif
     38  1.24  christos 
     39  1.61  christos .PATH:	${.CURDIR}/bltin ${NETBSDSRCDIR}/bin/test \
     40  1.61  christos 	${NETBSDSRCDIR}/usr.bin/printf \
     41  1.61  christos 	${NETBSDSRCDIR}/bin/kill
     42   1.1       cgd 
     43  1.29   mycroft CLEANFILES+= mkinit mknodes mksyntax
     44  1.69     lukem CLEANFILES+= ${GENSRCS} ${GENHDRS} y.tab.h
     45  1.67      jmmv CLEANFILES+= trace
     46  1.24  christos 
     47  1.24  christos token.h: mktokens
     48  1.72     lukem 	${_MKTARGET_CREATE}
     49  1.65  christos 	${HOST_SH} ${.ALLSRC}
     50   1.1       cgd 
     51  1.66       dsl builtins.h: builtins.c
     52  1.72     lukem 	${_MKTARGET_CREATE}
     53  1.66       dsl 
     54  1.66       dsl builtins.c: mkbuiltins shell.h builtins.def
     55  1.72     lukem 	${_MKTARGET_CREATE}
     56  1.65  christos 	${HOST_SH} ${.ALLSRC} ${.OBJDIR}
     57  1.66       dsl 	[ -f builtins.h ]
     58   1.1       cgd 
     59  1.24  christos init.c: mkinit ${SHSRCS}
     60  1.72     lukem 	${_MKTARGET_CREATE}
     61  1.39       mrg 	./${.ALLSRC}
     62  1.10       jtc 
     63  1.66       dsl nodes.h: nodes.c
     64  1.66       dsl 
     65  1.66       dsl nodes.c: mknodes nodetypes nodes.c.pat
     66  1.72     lukem 	${_MKTARGET_CREATE}
     67  1.40     veego 	./${.ALLSRC}
     68  1.66       dsl 	[ -f nodes.h ]
     69  1.66       dsl 
     70  1.66       dsl syntax.h: syntax.c
     71   1.1       cgd 
     72  1.66       dsl syntax.c: mksyntax
     73  1.72     lukem 	${_MKTARGET_CREATE}
     74  1.40     veego 	./${.ALLSRC}
     75  1.66       dsl 	[ -f syntax.h ]
     76  1.44  wrstuden 
     77  1.68     lukem .if ${USETOOLS} == "yes"
     78  1.68     lukem COMPATOBJDIR!=	cd ${NETBSDSRCDIR}/tools/compat && ${PRINTOBJDIR}
     79  1.68     lukem NBCOMPATLIB=	-L${COMPATOBJDIR} -lnbcompat
     80  1.68     lukem .endif
     81  1.68     lukem 
     82  1.44  wrstuden mkinit: mkinit.c
     83  1.72     lukem 	${_MKTARGET_LINK}
     84  1.68     lukem 	${HOST_LINK.c} -o mkinit ${.IMPSRC} ${NBCOMPATLIB}
     85  1.44  wrstuden 
     86  1.44  wrstuden mknodes: mknodes.c
     87  1.72     lukem 	${_MKTARGET_LINK}
     88  1.68     lukem 	${HOST_LINK.c} -o mknodes ${.IMPSRC} ${NBCOMPATLIB}
     89  1.44  wrstuden 
     90  1.44  wrstuden .if	(${MACHINE_ARCH} == "powerpc") || \
     91  1.52     bjh21 	(${MACHINE_CPU} == "arm")
     92  1.62  christos TARGET_CHARFLAG?= -DTARGET_CHAR="unsigned char"
     93  1.44  wrstuden .else
     94  1.62  christos TARGET_CHARFLAG?= -DTARGET_CHAR="signed char"
     95  1.44  wrstuden .endif
     96  1.44  wrstuden 
     97  1.44  wrstuden mksyntax: mksyntax.c
     98  1.72     lukem 	${_MKTARGET_LINK}
     99  1.68     lukem 	${HOST_LINK.c} ${TARGET_CHARFLAG} -o mksyntax ${.IMPSRC} ${NBCOMPATLIB}
    100  1.10       jtc 
    101  1.43       cgd .include <bsd.prog.mk>
    102