Debian Codegraph @

Makefile

raw symbols ◀ ▶ SCIP
3 Debian patches touch this file
1 # $OpenBSD: Makefile,v 1.16 2017/07/10 21:30:37 espie Exp $
2 #
3 # C Shell with process control; VM/UNIX VAX Makefile
4 # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
5
6 PROG= csh
•7 CFLAGS+=-I${.CURDIR} -I. -D_GNU_SOURCE
8 SRCS= alloc.c char.c const.c csh.c dir.c dol.c error.c exec.c exp.c file.c \
9 func.c glob.c hist.c init.c lex.c misc.c parse.c proc.c \
10 sem.c set.c str.c time.c
•11 LDADD+= -lbsd -lpub
12
13 CLEANFILES+=error.h const.h
14
15 const.h: error.h
16
17 error.h: error.c
18 @rm -f $@
19 @echo '/* Do not edit this file, make creates it. */' > $@
20 @echo '#ifndef _h_sh_err' >> $@
21 @echo '#define _h_sh_err' >> $@
22 egrep 'ERR_' ${.CURDIR}/$*.c | egrep '^#define' >> $@
23 @echo '#endif /* _h_sh_err */' >> $@
24
25 const.h: const.c
26 @rm -f $@
27 @echo '/* Do not edit this file, make creates it. */' > $@
28 ${CC} -E ${CFLAGS} ${.CURDIR}/$*.c | egrep 'Char STR' | \
29 sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
30 sort >> $@
31
•32 .depend alloc.o: const.h error.h
33
34 BUILDFIRST = const.h error.h
35
36 .include <bsd.prog.mk>