Home | History | Annotate | Line # | Download | only in csh
Makefile revision 1.7
      1 #	from: @(#)Makefile	8.1 (Berkeley) 5/31/93
      2 #	$Id: Makefile,v 1.7 1994/12/18 11:42:39 cgd Exp $
      3 #
      4 # C Shell with process control; VM/UNIX VAX Makefile
      5 # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
      6 #
      7 # To profile, put -DPROF in DEFS and -pg in CFLAGS, and recompile.
      8 
      9 PROG=	csh
     10 DFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS
     11 #CFLAGS+=-g
     12 #CFLAGS+=-Wall -ansi -pedantic
     13 CFLAGS+=-I${.CURDIR} -I. ${DFLAGS}
     14 SRCS=	alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \
     15 	func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \
     16 	sem.c set.c str.c time.c
     17 #.PATH:	${.CURDIR}/../../usr.bin/printf
     18 
     19 MAN1=	csh.0
     20 MLINKS=	csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \
     21 	csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \
     22 	csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \
     23 	csh.1 stop.1 csh.1 source.1
     24 CLEANFILES+=err.h const.h
     25 
     26 const.h: err.h
     27 
     28 err.h: err.c
     29 	@rm -f $@
     30 	@echo '/* Do not edit this file, make creates it. */' > $@
     31 	@echo '#ifndef _h_sh_err' >> $@
     32 	@echo '#define _h_sh_err' >> $@
     33 	egrep 'ERR_' ${.CURDIR}/$*.c | egrep '^#define' >> $@
     34 	@echo '#endif /* _h_sh_err */' >> $@
     35 
     36 const.h: const.c
     37 	@rm -f $@
     38 	@echo '/* Do not edit this file, make creates it. */' > $@
     39 	${CC} -E ${CFLAGS} ${.CURDIR}/$*.c | egrep 'Char STR' | \
     40 	    sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
     41 	    sort >> $@
     42 
     43 .depend alloc.o: const.h err.h 
     44 
     45 .if make(install)
     46 SUBDIR+= USD.doc
     47 .endif
     48 
     49 .include <bsd.prog.mk>
     50