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