1 |
< |
# $tcsh: Makefile.in,v 3.49 2011/02/05 17:35:31 christos Exp $ |
1 |
> |
# $tcsh: Makefile.in,v 3.59 2015/08/24 20:09:04 kim Exp $ |
2 |
|
# Makefile.in 4.3 6/11/83 |
3 |
|
# |
4 |
|
# C Shell with process control; VM/UNIX VAX Makefile |
315 |
|
# on the suns does not know how to make dynamically linked binaries. |
316 |
|
# This is set by autoconf. |
317 |
|
CC = @CC@ |
318 |
< |
#CC= gcc -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Werror -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wsign-compare -Wcast-qual -Wreturn-type -Wswitch -Wshadow -Wwrite-strings -Wextra |
319 |
< |
# -ansi -pedantic |
318 |
> |
#CC= gcc -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Werror -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wsign-compare -Wcast-qual -Wreturn-type -Wswitch -Wshadow -Wwrite-strings -Wextra -Wcast-qual -Wwrite-strings -Wold-style-definition -Wuninitialized -Wpointer-sign |
319 |
> |
# -Wconversion -Wformat=2 -ansi -pedantic |
320 |
|
#CC= gcc -Wall -pipe -B/bin/ |
321 |
|
# Generate code for Intel 486 (linux) |
322 |
|
#CC= gcc -m486 -pipe -Wall |
377 |
|
sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \ |
378 |
|
sh.set.c sh.time.c sh.char.h sh.dir.h sh.proc.h sh.h \ |
379 |
|
tw.color.c |
380 |
< |
PSSRCS= sh.decls.h glob.c glob.h mi.termios.c mi.wait.h mi.varargs.h ma.setp.c \ |
380 |
> |
PSSRCS= sh.decls.h glob.c glob.h dotlock.c dotlock.h mi.termios.c mi.wait.h mi.varargs.h ma.setp.c \ |
381 |
|
vms.termcap.c |
382 |
|
SHSRCS= ${ASSRCS} ${PSSRCS} |
383 |
|
SHOBJS= sh.${SUF} sh.dir.${SUF} sh.dol.${SUF} sh.err.${SUF} sh.exec.${SUF} \ |
384 |
|
sh.char.${SUF} sh.exp.${SUF} sh.file.${SUF} sh.func.${SUF} \ |
385 |
|
sh.glob.${SUF} sh.hist.${SUF} sh.init.${SUF} sh.lex.${SUF} \ |
386 |
|
sh.misc.${SUF} sh.parse.${SUF} sh.print.${SUF} sh.proc.${SUF} \ |
387 |
< |
sh.sem.${SUF} sh.set.${SUF} sh.time.${SUF} glob.${SUF} \ |
387 |
> |
sh.sem.${SUF} sh.set.${SUF} sh.time.${SUF} glob.${SUF} dotlock.${SUF} \ |
388 |
|
mi.termios.${SUF} ma.setp.${SUF} vms.termcap.${SUF} |
389 |
|
|
390 |
|
TWSRCS= tw.decls.h tw.h tw.help.c tw.init.c tw.parse.c tw.spell.c \ |
411 |
|
WishList config_f.h eight-bit.me glob.3 patchlevel.h \ |
412 |
|
pathnames.h tcsh.man Ported src.desc Imakefile imake.config \ |
413 |
|
README.imake complete.tcsh vmsreadme.txt termcap.vms snames.h \ |
414 |
< |
host.defs gethost.c tcsh.man2html configure.in configure config.h.in \ |
415 |
< |
tests/testsuite.at |
414 |
> |
host.defs gethost.c tcsh.man2html configure.ac configure config.h.in \ |
415 |
> |
tests/testsuite.at aclocal.m4 |
416 |
|
TESTFILES= tests/aliases.at tests/arguments.at tests/commands.at \ |
417 |
|
tests/expr.at tests/lexical.at tests/mb-eucjp.at \ |
418 |
< |
tests/mb-utf8.at tests/noexec.at tests/syntax.at tests/subst.at \ |
419 |
< |
tests/variables.at tests/sh.dol.at |
418 |
> |
tests/mb-utf8.at tests/noexec.at tests/parenthesis.at tests/syntax.at \ |
419 |
> |
tests/subst.at tests/variables.at tests/sh.dol.at |
420 |
|
|
421 |
|
VHSRCS=${PVSRCS} ${AVSRCS} |
422 |
|
|
533 |
|
${CPP} $(CPPFLAGS) ${DFLAGS} ${EXTRAFLAGS} -D_h_tc_const\ |
534 |
|
$(srcdir)/tc.const.c | \ |
535 |
|
sed -n -e 's/^\(Char STR[a-zA-Z0-9_]*\) *\[ *\].*/extern \1[];/p' | \ |
536 |
< |
sort >> $@.tmp |
536 |
> |
LC_COLLATE=C sort >> $@.tmp |
537 |
|
@echo '#endif /* _h_tc_const */' >> $@.tmp |
538 |
|
@if [ -f $@ ] && cmp -s $@.tmp $@; then echo $@ unchanged.; rm -f $@.tmp; else mv -f $@.tmp $@; echo $@ recreated.; fi |
539 |
|
|
540 |
< |
$(srcdir)/tests/package.m4: $(srcdir)/configure.in |
540 |
> |
$(srcdir)/tests/package.m4: $(srcdir)/configure.ac |
541 |
|
{ \ |
542 |
|
echo '# Signature of the current package.'; \ |
543 |
|
echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \ |
594 |
|
@vgrind -t -x -h Index index >/crp/bill/csh/index.t |
595 |
|
|
596 |
|
install-strip: install |
597 |
+ |
-strip ${DESTBIN}/tcsh$(EXEEXT) |
598 |
|
|
599 |
|
install: tcsh$(EXEEXT) install.catalogs install.man |
600 |
|
-mkdir -p ${DESTBIN} |
601 |
|
-mv -f ${DESTBIN}/tcsh$(EXEEXT) ${DESTBIN}/tcsh.old |
602 |
|
cp tcsh$(EXEEXT) ${DESTBIN}/tcsh$(EXEEXT) |
602 |
– |
-strip ${DESTBIN}/tcsh$(EXEEXT) |
603 |
|
chmod 755 ${DESTBIN}/tcsh$(EXEEXT) |
604 |
|
|
605 |
|
install.catalogs: |
623 |
|
# nroff -man tcsh.man | compress > ${DESTMAN}/tcsh.${MANSECT}.Z |
624 |
|
# chmod 444 ${DESTMAN}/tcsh.${MANSECT}.Z |
625 |
|
|
626 |
– |
install.cygwin: install |
627 |
– |
-gzip ${DESTMAN}/tcsh.${MANSECT} |
628 |
– |
-mkdir -p ${DESTDIR}${prefix}/share/doc/tcsh |
629 |
– |
cp ${srcdir}/FAQ ${srcdir}/Fixes ${DESTDIR}${prefix}/share/doc/tcsh |
630 |
– |
cp ${srcdir}/NewThings ${srcdir}/README ${DESTDIR}${prefix}/share/doc/tcsh |
631 |
– |
cp ${srcdir}/WishList ${srcdir}/Y2K ${DESTDIR}${prefix}/share/doc/tcsh |
632 |
– |
perl ${srcdir}/tcsh.man2html ${srcdir}/tcsh.man |
633 |
– |
cp -rp tcsh.html ${DESTDIR}${prefix}/share/doc/tcsh |
634 |
– |
-mkdir -p ${DESTDIR}/etc/defaults/etc/profile.d |
635 |
– |
-mkdir -p ${DESTDIR}/etc/profile.d |
636 |
– |
-mkdir -p ${DESTDIR}/etc/postinstall |
637 |
– |
-mkdir -p ${DESTDIR}/etc/preremove |
638 |
– |
cp -p ${srcdir}/cygwin/csh.cshrc ${DESTDIR}/etc/defaults/etc |
639 |
– |
cp -p ${srcdir}/cygwin/csh.login ${DESTDIR}/etc/defaults/etc |
640 |
– |
cp -p ${srcdir}/cygwin/bindkey.tcsh ${DESTDIR}/etc/defaults/etc/profile.d |
641 |
– |
cp -p ${srcdir}/complete.tcsh ${DESTDIR}/etc/defaults/etc/profile.d |
642 |
– |
cp -p ${srcdir}/cygwin/postinstall.sh ${DESTDIR}/etc/postinstall/tcsh.sh |
643 |
– |
cp -p ${srcdir}/cygwin/preremove.sh ${DESTDIR}/etc/preremove/tcsh.sh |
644 |
– |
|
626 |
|
clean: clean.catalogs |
627 |
|
${RM} -f a.out strings x.c xs.c tcsh$(EXEEXT) tcsh.a _MAKE_LOG gethost |
628 |
|
${RM} -f *.${SUF} *.i *.s |
729 |
|
|
730 |
|
autoconfigure: $(srcdir)/configure $(srcdir)/config.h.in |
731 |
|
|
732 |
< |
$(srcdir)/configure: $(srcdir)/configure.in |
732 |
> |
$(srcdir)/configure: $(srcdir)/configure.ac |
733 |
|
cd $(srcdir) && autoconf |
734 |
|
|
735 |
|
$(srcdir)/config.h.in: $(srcdir)/stamp-h.in |
736 |
< |
$(srcdir)/stamp-h.in: $(srcdir)/configure.in |
736 |
> |
$(srcdir)/stamp-h.in: $(srcdir)/configure.ac |
737 |
|
cd $(srcdir) && autoheader |
738 |
|
@echo timestamp > $(srcdir)/stamp-h.in |
739 |
|
|
767 |
|
|
768 |
|
# glob.h |
769 |
|
glob.${SUF} sh.glob.${SUF}: glob.h |
770 |
+ |
|
771 |
+ |
# dotlock.h |
772 |
+ |
dotlock.${SUF}: dotlock.h |
773 |
|
|
774 |
|
# ed.defns.h |
775 |
|
EDDINC=tc.bind.${SUF} tc.func.${SUF} tc.os.${SUF} |