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

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
1.2.6.1 ! misho      12: BSDSRC ?=      /usr/src
1.2       misho      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: GENHDRS= ed.defns.h sh.err.h tc.const.h tc.defs.c
                     35: SRCS+= ${GENHDRS}
                     36: 
                     37: MLINKS=
                     38: 
                     39: DPADD= ${LIBTERMCAP} ${LIBCRYPT}
                     40: LDADD= -ltermcap -lcrypt
                     41: 
                     42: LINKS= ${BINDIR}/csh ${BINDIR}/tcsh
                     43: 
                     44: CLEANFILES= ${GENHDRS} gethost csh.1
                     45: 
                     46: CFLAGS+= -DNO_NLS_CATALOGS
                     47: 
                     48: NLSNAME= tcsh
                     49: 
                     50: csh.1: tcsh.man
                     51:        cat ${.ALLSRC} > ${.TARGET}
                     52: 
                     53: build-tools: gethost
                     54: 
                     55: gethost: gethost.c sh.err.h tc.const.h sh.h
                     56:        @rm -f ${.TARGET}
                     57:        ${CC} -o gethost ${LDFLAGS} ${CFLAGS:C/-DHAVE_ICONV//} \
                     58:            ${TCSHDIR}/gethost.c
                     59: 
                     60: tc.defs.c: gethost ${TCSHDIR}/host.defs
                     61:        @rm -f ${.TARGET}
                     62:        @echo "/* Do not edit this file, make creates it */" > ${.TARGET}
                     63:        ./gethost ${TCSHDIR}/host.defs >> ${.TARGET}
                     64: 
                     65: ed.defns.h: ed.defns.c
                     66:        @rm -f ${.TARGET}
                     67:        @echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
                     68:        @echo '#ifndef _h_ed_defns' >> ${.TARGET}
                     69:        @echo '#define _h_ed_defns' >> ${.TARGET}
                     70:        grep '[FV]_' ${TCSHDIR}/ed.defns.c | grep '^#define' >> ${.TARGET}
                     71:        @echo '#endif /* _h_ed_defns */' >> ${.TARGET}
                     72: 
                     73: sh.err.h: sh.err.c
                     74:        @rm -f ${.TARGET}
                     75:        @echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
                     76:        @echo '#ifndef _h_sh_err' >> ${.TARGET}
                     77:        @echo '#define _h_sh_err' >> ${.TARGET}
                     78:        grep 'ERR_' ${.ALLSRC} | grep '^#define' >> ${.TARGET}
                     79:        @echo '#endif /* _h_sh_err */' >> ${.TARGET}
                     80: 
                     81: tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h
                     82:        @rm -f ${.TARGET}
                     83:        @echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
                     84:        @echo '#ifndef _h_tc_const' >> ${.TARGET}
                     85:        @echo '#define _h_tc_const' >> ${.TARGET}
                     86:        ${CC} -E ${CFLAGS:C/-DHAVE_ICONV//} ${.ALLSRC} -D_h_tc_const | \
                     87:            grep 'Char STR' | \
                     88:            sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
                     89:            sort >> ${.TARGET}
                     90:        @echo '#endif /* _h_tc_const */' >> ${.TARGET}
                     91: 
                     92: .include <bsd.prog.mk>

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