Home | History | Annotate | Line # | Download | only in csh
Makefile revision 1.33.2.1
      1  1.33.2.1      yamt #	$NetBSD: Makefile,v 1.33.2.1 2014/05/22 11:26:22 yamt Exp $
      2       1.9       cgd #	@(#)Makefile	8.1 (Berkeley) 5/31/93
      3       1.6   mycroft #
      4       1.1       cgd # C Shell with process control; VM/UNIX VAX Makefile
      5       1.1       cgd # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
      6       1.1       cgd #
      7      1.19     lukem # To profile, put -DPROF in DFLAGS and -pg in COPTS, and recompile.
      8       1.1       cgd 
      9      1.20     lukem .include <bsd.own.mk>
     10  1.33.2.1      yamt WARNS=6
     11      1.20     lukem 
     12       1.1       cgd PROG=	csh
     13       1.6   mycroft DFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS
     14  1.33.2.1      yamt # - Editor history not always aligned with shell history,
     15  1.33.2.1      yamt #   should implement internally
     16  1.33.2.1      yamt # - Does not handle escaped prompts.
     17  1.33.2.1      yamt # - Does not do completion
     18  1.33.2.1      yamt .ifndef SMALLPROG
     19  1.33.2.1      yamt DFLAGS+=-DEDIT
     20  1.33.2.1      yamt .endif
     21      1.15  christos CPPFLAGS+=-I${.CURDIR} -I. ${DFLAGS}
     22       1.1       cgd SRCS=	alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \
     23       1.6   mycroft 	func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \
     24      1.33  christos 	sem.c set.c str.c time.c
     25      1.20     lukem .PATH:	${NETBSDSRCDIR}/usr.bin/printf
     26       1.1       cgd 
     27       1.1       cgd MLINKS=	csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \
     28       1.1       cgd 	csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \
     29       1.1       cgd 	csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \
     30       1.1       cgd 	csh.1 stop.1 csh.1 source.1
     31       1.1       cgd 
     32      1.23     lukem DPSRCS+=	errnum.h const.h
     33      1.23     lukem CLEANFILES+=	errnum.h const.h
     34       1.1       cgd 
     35      1.13  christos errnum.h: err.c
     36      1.26     lukem 	${_MKTARGET_CREATE}
     37      1.24     lukem 	rm -f ${.TARGET}
     38      1.24     lukem 	(\
     39      1.24     lukem 	echo '/* Do not edit this file, make creates it. */' ;\
     40      1.24     lukem 	echo '#ifndef _h_sh_errnum' ;\
     41      1.24     lukem 	echo '#define _h_sh_errnum' ;\
     42      1.24     lukem 	egrep 'ERR_' ${.ALLSRC} | egrep '^#define' ;\
     43      1.24     lukem 	echo '#endif /* _h_sh_errnum */' ;\
     44      1.24     lukem 	) > ${.TARGET}
     45       1.1       cgd 
     46      1.24     lukem const.c: errnum.h
     47       1.1       cgd const.h: const.c
     48      1.26     lukem 	${_MKTARGET_CREATE}
     49      1.24     lukem 	rm -f ${.TARGET}
     50      1.24     lukem 	echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
     51      1.15  christos 	${CC} -E ${CPPFLAGS} ${.ALLSRC} | egrep 'Char STR' | \
     52      1.29       apb 	    ${TOOL_SED} -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
     53      1.13  christos 	    sort >> ${.TARGET}
     54       1.1       cgd 
     55       1.7       cgd .if make(install)
     56      1.16   mycroft SUBDIR+=USD.doc
     57       1.7       cgd .endif
     58       1.1       cgd 
     59      1.30       mrg # XXX Only GCC 4.1 problem
     60      1.28  gmcgarry .if defined(HAVE_GCC) && ${HAVE_GCC} == 4 && ${MACHINE_ARCH} == "vax"
     61      1.27       mrg COPTS.parse.c+=	-O0
     62      1.27       mrg .endif
     63      1.32     joerg COPTS.err.c = -Wno-format-nonliteral
     64      1.31  christos COPTS.printf.c = -Wno-format-nonliteral
     65      1.31  christos COPTS.proc.c = -Wno-format-nonliteral
     66      1.33  christos 
     67  1.33.2.1      yamt .if !empty(DFLAGS:M*EDIT)
     68  1.33.2.1      yamt LDADD+=-ledit -lterminfo -lutil
     69  1.33.2.1      yamt DPADD+=${LIBEDIT} ${LIBUTIL}
     70  1.33.2.1      yamt .else
     71      1.33  christos LDADD+=-lutil
     72      1.33  christos DPADD+=${LIBUTIL}
     73  1.33.2.1      yamt .endif
     74      1.27       mrg 
     75       1.1       cgd .include <bsd.prog.mk>
     76      1.16   mycroft .include <bsd.subdir.mk>
     77