File:  [ELWIX - Embedded LightWeight unIX -] / elwix / files / csh / Makefile
Revision 1.3.12.1: download - view: text, annotated - select for diffs - revision graph
Wed Mar 17 12:41:17 2021 UTC (3 years, 3 months ago) by misho
Branches: elwix2_7
Diff to: branchpoint 1.3: preferred, unified
adds new version of sqlite
remove comments from 3thparty script
set new elwix kernel

    1: # $FreeBSD$
    2: #	@(#)Makefile	8.1 (Berkeley) 5/31/93
    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: .include <src.opts.mk>
   10: 
   11: BINDIR =	/usr/bin
   12: BSDSRC ?=	/usr/src
   13: 
   14: TCSHDIR= ${BSDSRC}/contrib/tcsh
   15: .PATH: ${TCSHDIR}
   16: 
   17: PROG=	csh
   18: DFLAGS= -D_PATH_TCSHELL='"/usr/bin/${PROG}"'
   19: CFLAGS+= -I. -I${.CURDIR} -I${TCSHDIR} ${DFLAGS}
   20: WARNS?=	1
   21: SRCS=	sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \
   22: 	sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \
   23: 	sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \
   24: 	sh.set.c sh.time.c sh.char.h sh.dir.h sh.proc.h sh.h
   25: SRCS+=	sh.decls.h glob.c glob.h mi.termios.c mi.wait.h mi.varargs.h
   26: SRCS+=	tw.decls.h tw.h tw.help.c tw.init.c tw.parse.c tw.spell.c \
   27: 	tw.comp.c tw.color.c
   28: SRCS+=	ed.chared.c ed.decls.h ed.defns.c ed.h ed.init.c ed.inputl.c \
   29: 	ed.refresh.c ed.screen.c ed.xmap.c ed.term.c ed.term.h
   30: SRCS+=	tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \
   31: 	tc.func.c tc.nls.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \
   32: 	tc.sched.c tc.sig.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \
   33: 	tc.who.c tc.h
   34: SRCS+=	dotlock.c dotlock.h
   35: GENHDRS= ed.defns.h sh.err.h tc.const.h tc.defs.c
   36: SRCS+=	${GENHDRS}
   37: 
   38: MLINKS=
   39: 
   40: DPADD=	${LIBTERMCAP} ${LIBCRYPT}
   41: LDADD=	-ltermcap -lcrypt
   42: 
   43: LINKS=	${BINDIR}/csh ${BINDIR}/tcsh
   44: 
   45: CLEANFILES= ${GENHDRS} gethost csh.1
   46: 
   47: CFLAGS+= -DNO_NLS_CATALOGS
   48: 
   49: NLSNAME= tcsh
   50: 
   51: csh.1: tcsh.man
   52: 	cat ${.ALLSRC} > ${.TARGET}
   53: 
   54: build-tools: gethost
   55: 
   56: DEPENDOBJS+= gethost
   57: gethost: gethost.c sh.err.h tc.const.h sh.h ${BUILD_TOOLS_META}
   58: 	@rm -f ${.TARGET}
   59: 	${CC:N${CCACHE_BIN}} -o gethost ${LDFLAGS} ${CFLAGS:C/-DHAVE_ICONV//} \
   60: 	    ${TCSHDIR}/gethost.c
   61: 
   62: tc.defs.c: gethost ${TCSHDIR}/host.defs
   63: 	@rm -f ${.TARGET}
   64: 	@echo "/* Do not edit this file, make creates it */" > ${.TARGET}
   65: 	${BTOOLSPATH:U.}/gethost ${TCSHDIR}/host.defs >> ${.TARGET}
   66: 
   67: ed.defns.h: ed.defns.c
   68: 	@rm -f ${.TARGET}
   69: 	@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
   70: 	@echo '#ifndef _h_ed_defns' >> ${.TARGET}
   71: 	@echo '#define _h_ed_defns' >> ${.TARGET}
   72: 	grep '[FV]_' ${TCSHDIR}/ed.defns.c | grep '^#define' >> ${.TARGET}
   73: 	@echo '#endif /* _h_ed_defns */' >> ${.TARGET}
   74: 
   75: sh.err.h: sh.err.c
   76: 	@rm -f ${.TARGET}
   77: 	@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
   78: 	@echo '#ifndef _h_sh_err' >> ${.TARGET}
   79: 	@echo '#define _h_sh_err' >> ${.TARGET}
   80: 	grep 'ERR_' ${.ALLSRC} | grep '^#define' >> ${.TARGET}
   81: 	@echo '#endif /* _h_sh_err */' >> ${.TARGET}
   82: 
   83: tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h ${BUILD_TOOLS_META}
   84: 	@rm -f ${.TARGET}
   85: 	@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
   86: 	@echo '#ifndef _h_tc_const' >> ${.TARGET}
   87: 	@echo '#define _h_tc_const' >> ${.TARGET}
   88: 	${CC:N${CCACHE_BIN}} -E ${CFLAGS:C/-DHAVE_ICONV//} ${.ALLSRC} -D_h_tc_const | \
   89: 	    grep 'Char STR' | \
   90: 	    sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
   91: 	    sort >> ${.TARGET}
   92: 	@echo '#endif /* _h_tc_const */' >> ${.TARGET}
   93: 
   94: .include <bsd.prog.mk>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>