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