Annotation of elwix/files/csh/Makefile, revision 1.2

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

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