1# @(#)Makefile 5.16 (Berkeley) 05/11/90 2# 3# C Shell with process control; VM/UNIX VAX Makefile 4# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria 5# 6# To profile, put -DPROF in DEFS and -pg in CFLAGS, and recompile. 7 8PROG= csh 9SHAREDSTRINGS=1 10CFLAGS+=-DTELL -DVFORK -DFILEC 11SRCS= alloc.c doprnt.c sh.c sh.char.c sh.dir.c sh.dol.c sh.err.c \ 12 sh.exec.c sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c \ 13 sh.init.c sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c \ 14 sh.sem.c sh.set.c sh.time.c 15MAN1= csh.0 16MLINKS= csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \ 17 csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \ 18 csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \ 19 csh.1 stop.1 csh.1 source.1 20 21.include <bsd.prog.mk> 22 23csh: strings.o 24OBJS+= strings.o 25 26# strings.o, sh.init.o, and sh.char.o are specially processed to be shared 27strings.o: ${OBJS:Nstrings.o} 28 xstr 29 ${CC} ${.INCLUDES} ${CFLAGS} -c -R xs.c -o ${.TARGET} 30 @rm -f xs.c 31 32sh.char.o sh.init.o: 33 ${CC} -E ${.INCLUDES} ${CFLAGS} ${.IMPSRC} | xstr -c - 34 @${CC} ${.INCLUDES} ${CFLAGS} -c -R x.c -o ${.TARGET} 35 @rm -f x.c 36