Changeset View
Changeset View
Standalone View
Standalone View
bin/csh/Makefile
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | |||||
NLS+= ${catalog:C/.*://} | NLS+= ${catalog:C/.*://} | ||||
NLSSRCDIR_${catalog:C/.*://}= ${TCSHDIR}/nls/${catalog:C/:.*//} | NLSSRCDIR_${catalog:C/.*://}= ${TCSHDIR}/nls/${catalog:C/:.*//} | ||||
NLSSRCFILES_${catalog:C/.*://}!= cd ${NLSSRCDIR_${catalog:C/.*://}}; echo charset set[0-9]* | NLSSRCFILES_${catalog:C/.*://}!= cd ${NLSSRCDIR_${catalog:C/.*://}}; echo charset set[0-9]* | ||||
.endfor | .endfor | ||||
csh.1: tcsh.man | csh.1: tcsh.man | ||||
cat ${.ALLSRC} > ${.TARGET} | cat ${.ALLSRC} > ${.TARGET} | ||||
build-tools: gethost | |||||
DEPENDOBJS+= gethost | DEPENDOBJS+= gethost | ||||
gethost: gethost.c sh.err.h tc.const.h sh.h ${BUILD_TOOLS_META} | gethost: gethost.c sh.err.h tc.const.h sh.h | ||||
@rm -f ${.TARGET} | @rm -f ${.TARGET} | ||||
${CC:N${CCACHE_BIN}} -o gethost ${LDFLAGS} ${CFLAGS:C/-DHAVE_ICONV//} \ | ${BUILD_TOOLS_CC} -o gethost -I. -I${.CURDIR} -I${TCSHDIR} \ | ||||
${TCSHDIR}/gethost.c | ${TCSHDIR}/gethost.c | ||||
tc.defs.c: gethost ${TCSHDIR}/host.defs | tc.defs.c: gethost ${TCSHDIR}/host.defs | ||||
@rm -f ${.TARGET} | @rm -f ${.TARGET} | ||||
@echo "/* Do not edit this file, make creates it */" > ${.TARGET} | @echo "/* Do not edit this file, make creates it */" > ${.TARGET} | ||||
${BTOOLSPATH:U.}/gethost ${TCSHDIR}/host.defs >> ${.TARGET} | ./gethost ${TCSHDIR}/host.defs >> ${.TARGET} | ||||
brooks: I do wonder if the `./` should be `{.OBJDIR}/`. | |||||
sjgUnsubmitted Not Done Inline ActionsWhy change this? It was harmless as is, but potentially allows me to set BTOOLSPATH to a stage dir where I've put the tools build for pseudo machine "host" during DIRDEPS build. sjg: Why change this? It was harmless as is, but potentially allows me to set BTOOLSPATH to a stage… | |||||
bdreweryUnsubmitted Not Done Inline ActionsYeah this. bdrewery: Yeah this. | |||||
arichardsonAuthorUnsubmitted Done Inline ActionsWill revert those changes. arichardson: Will revert those changes. | |||||
ed.defns.h: ed.defns.c | ed.defns.h: ed.defns.c | ||||
@rm -f ${.TARGET} | @rm -f ${.TARGET} | ||||
@echo '/* Do not edit this file, make creates it. */' > ${.TARGET} | @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} | ||||
@echo '#ifndef _h_ed_defns' >> ${.TARGET} | @echo '#ifndef _h_ed_defns' >> ${.TARGET} | ||||
@echo '#define _h_ed_defns' >> ${.TARGET} | @echo '#define _h_ed_defns' >> ${.TARGET} | ||||
grep '[FV]_' ${TCSHDIR}/ed.defns.c | grep '^#define' >> ${.TARGET} | grep '[FV]_' ${TCSHDIR}/ed.defns.c | grep '^#define' >> ${.TARGET} | ||||
@echo '#endif /* _h_ed_defns */' >> ${.TARGET} | @echo '#endif /* _h_ed_defns */' >> ${.TARGET} | ||||
sh.err.h: sh.err.c | sh.err.h: sh.err.c | ||||
@rm -f ${.TARGET} | @rm -f ${.TARGET} | ||||
@echo '/* Do not edit this file, make creates it. */' > ${.TARGET} | @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} | ||||
@echo '#ifndef _h_sh_err' >> ${.TARGET} | @echo '#ifndef _h_sh_err' >> ${.TARGET} | ||||
@echo '#define _h_sh_err' >> ${.TARGET} | @echo '#define _h_sh_err' >> ${.TARGET} | ||||
grep 'ERR_' ${.ALLSRC} | grep '^#define' >> ${.TARGET} | grep 'ERR_' ${.ALLSRC} | grep '^#define' >> ${.TARGET} | ||||
@echo '#endif /* _h_sh_err */' >> ${.TARGET} | @echo '#endif /* _h_sh_err */' >> ${.TARGET} | ||||
tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h ${BUILD_TOOLS_META} | tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h | ||||
@rm -f ${.TARGET} | @rm -f ${.TARGET} | ||||
@echo '/* Do not edit this file, make creates it. */' > ${.TARGET} | @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} | ||||
@echo '#ifndef _h_tc_const' >> ${.TARGET} | @echo '#ifndef _h_tc_const' >> ${.TARGET} | ||||
@echo '#define _h_tc_const' >> ${.TARGET} | @echo '#define _h_tc_const' >> ${.TARGET} | ||||
${CC:N${CCACHE_BIN}} -E ${CFLAGS:C/-DHAVE_ICONV//} ${.ALLSRC} -D_h_tc_const | \ | ${CC:N${CCACHE_BIN}} -E ${CFLAGS:C/-DHAVE_ICONV//} ${.ALLSRC} -D_h_tc_const | \ | ||||
grep 'Char STR' | \ | grep 'Char STR' | \ | ||||
sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ | sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ | ||||
sort >> ${.TARGET} | sort >> ${.TARGET} | ||||
Show All 9 Lines |
I do wonder if the ./ should be {.OBJDIR}/.