1 # $NetBSD: Makefile,v 1.41 2014/07/05 23:12:33 dholland Exp $
2 # @(#)Makefile 8.1 (Berkeley) 5/31/93
4 # C Shell with process control; VM/UNIX VAX Makefile
5 # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
7 # To profile, put -DPROF in DFLAGS and -pg in COPTS, and recompile.
13 DFLAGS
=-DBUILTIN
-DFILEC
-DNLS
-DSHORT_STRINGS
14 # - Editor history not always aligned with shell history,
15 # should implement internally
16 # - Does not handle escaped prompts.
17 # - Does not do completion
21 CPPFLAGS
+=-I
${.CURDIR
} -I.
${DFLAGS}
22 SRCS
= alloc.c char.c const.c csh.c
dir.c dol.c err.c exec.c exp.c file.c \
23 func.c glob.c hist.c init.c
lex.c misc.c parse.c printf.c proc.c \
24 sem.c set.c str.c time.c
25 .PATH
: ${NETBSDSRCDIR}/usr.bin
/printf
27 MLINKS
= csh
.1 limit
.1 csh
.1 alias
.1 csh
.1 bg
.1 csh
.1 dirs
.1 csh
.1 fg
.1 \
28 csh
.1 foreach.1 csh
.1 history
.1 csh
.1 jobs
.1 csh
.1 popd
.1 \
29 csh
.1 pushd
.1 csh
.1 rehash
.1 csh
.1 repeat
.1 csh
.1 suspend
.1 \
30 csh
.1 stop
.1 csh
.1 source
.1
32 DPSRCS
+= errnum.h const.h
33 CLEANFILES
+= errnum.h const.h
39 echo
'/* Do not edit this file, make creates it. */' ;\
40 echo
'#ifndef _h_sh_errnum' ;\
41 echo
'#define _h_sh_errnum' ;\
42 egrep
'ERR_' ${.ALLSRC
} | egrep
'^#define' ;\
43 echo
'#endif /* _h_sh_errnum */' ;\
50 echo
'/* Do not edit this file, make creates it. */' > ${.TARGET
}
51 ${CC} -E
${CPPFLAGS} ${.ALLSRC
} | egrep
'Char STR' | \
52 ${TOOL_SED} -e
's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
57 .
endif # !defined(__MINIX)
59 COPTS.err.c
= -Wno-format-nonliteral
60 COPTS.printf.c
= -Wno-format-nonliteral
61 COPTS.proc.c
= -Wno-format-nonliteral
63 .if
!empty
(DFLAGS
:M
*EDIT
)
64 LDADD
+=-ledit
-lterminfo
-lutil
65 DPADD
+=${LIBEDIT} ${LIBUTIL}
71 .
include <bsd.prog.mk
>
72 .
include <bsd.subdir.mk
>