summaryrefslogtreecommitdiffstats
path: root/bin/csh/Makefile
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1994-05-26 06:18:55 +0000
committerrgrimes <rgrimes@FreeBSD.org>1994-05-26 06:18:55 +0000
commite3cfc8ce61f788739c66445d903f8beacb40c93d (patch)
treeba7beef9ee9289c4383bad976f88710e44c98b4d /bin/csh/Makefile
parent862fdf11a2ede45dec0da01ed575525d79468981 (diff)
downloadFreeBSD-src-e3cfc8ce61f788739c66445d903f8beacb40c93d.zip
FreeBSD-src-e3cfc8ce61f788739c66445d903f8beacb40c93d.tar.gz
BSD 4.4 Lite bin Sources
Diffstat (limited to 'bin/csh/Makefile')
-rw-r--r--bin/csh/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/bin/csh/Makefile b/bin/csh/Makefile
new file mode 100644
index 0000000..e29f549
--- /dev/null
+++ b/bin/csh/Makefile
@@ -0,0 +1,44 @@
+# @(#)Makefile 8.1 (Berkeley) 5/31/93
+#
+# C Shell with process control; VM/UNIX VAX Makefile
+# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
+#
+# To profile, put -DPROF in DEFS and -pg in CFLAGS, and recompile.
+
+PROG= csh
+DFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS
+#CFLAGS+=-g
+#CFLAGS+=-Wall -ansi -pedantic
+CFLAGS+=-I${.CURDIR} -I. ${DFLAGS}
+SRCS= alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \
+ func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \
+ sem.c set.c str.c time.c
+.PATH: ${.CURDIR}/../../usr.bin/printf
+
+MAN1= csh.0
+MLINKS= csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \
+ csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \
+ csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \
+ csh.1 stop.1 csh.1 source.1
+CLEANFILES+=err.h const.h
+
+const.h: err.h
+
+err.h: err.c
+ @rm -f $@
+ @echo '/* Do not edit this file, make creates it. */' > $@
+ @echo '#ifndef _h_sh_err' >> $@
+ @echo '#define _h_sh_err' >> $@
+ egrep 'ERR_' ${.CURDIR}/$*.c | egrep '^#define' >> $@
+ @echo '#endif /* _h_sh_err */' >> $@
+
+const.h: const.c
+ @rm -f $@
+ @echo '/* Do not edit this file, make creates it. */' > $@
+ ${CC} -E ${CFLAGS} ${.CURDIR}/$*.c | egrep 'Char STR' | \
+ sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
+ sort >> $@
+
+.depend: const.h err.h
+
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud