summaryrefslogtreecommitdiffstats
path: root/contrib/tcsh/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tcsh/Makefile.in')
-rw-r--r--contrib/tcsh/Makefile.in46
1 files changed, 30 insertions, 16 deletions
diff --git a/contrib/tcsh/Makefile.in b/contrib/tcsh/Makefile.in
index 56abb0b..7be22bc 100644
--- a/contrib/tcsh/Makefile.in
+++ b/contrib/tcsh/Makefile.in
@@ -1,4 +1,4 @@
-# $Id: Makefile.in,v 3.19 2002/07/23 16:13:21 christos Exp $
+# $Id: Makefile.in,v 3.20 2003/03/12 19:14:50 christos Exp $
# Makefile.in 4.3 6/11/83
#
# C Shell with process control; VM/UNIX VAX Makefile
@@ -9,7 +9,7 @@
#
SHELL=/bin/sh
VERSION=6.12
-BUILD=tcsh
+BUILD=tcsh$(EXEEXT)
VPATH=@srcdir@
srcdir=@srcdir@
@@ -136,7 +136,7 @@ CFLAGS = @CFLAGS@ # This is set by autoconf.
#DFLAGS=
#DFLAGS=-D_PATH_TCSHELL='"${DESTBIN}/tcsh"'
## The following is set by autoconf.
-DFLAGS = -D_PATH_TCSHELL='"${DESTBIN}/tcsh"' @DFLAGS@ @CPPFLAGS@
+DFLAGS = -D_PATH_TCSHELL='"${bindir}/tcsh"' @DFLAGS@ @CPPFLAGS@
################################################################
@@ -284,6 +284,7 @@ DESTMAN=${DESTDIR}${mandir}/man${MANSECT}
# DESTMAN=${DESTDIR}/catman/man${MANSECT} # A/UX
# DESTMAN=${DESTDIR}/usr/share/man/man${MANSECT} # Stardent Vistra (SysVR4)
# DESTMAN=/usr/catman/1l # Amiga unix (SysVR4)
+EXEEXT=@EXEEXT@
FTPAREA=/usr/spool/ftp
ASSRCS= sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \
@@ -340,9 +341,9 @@ OBJS= ${SHOBJS} ${TWOBJS} ${EDOBJS} ${TCOBJS}
all: ${BUILD}
-tcsh:$(P) ${OBJS}
- rm -f tcsh core
- ${CC} -o tcsh ${LDFLAGS} ${CFLAGS} ${CPPFLAGS} ${OBJS} ${LIBES} ${EXTRALIBS}
+tcsh$(EXEEXT):$(P) ${OBJS}
+ rm -f tcsh$(EXEEXT) core
+ ${CC} -o tcsh$(EXEEXT) ${LDFLAGS} ${CFLAGS} ${CPPFLAGS} ${OBJS} ${LIBES} ${EXTRALIBS}
tcsh.sbin:$(P) ${OBJS}
rm -f tcsh.sbin core
@@ -350,11 +351,11 @@ tcsh.sbin:$(P) ${OBJS}
# Purify
pure:$(P) ${OBJS}
- rm -f tcsh core
- purify `echo ${CC} | sed -e s,-B/bin/,,` -o tcsh ${LDFLAGS} ${CFLAGS} ${CPPFLAGS} ${OBJS} ${LIBES} ${EXTRALIBS}
+ rm -f tcsh$(EXEEXT) core
+ purify `echo ${CC} | sed -e s,-B/bin/,,` -o tcsh$(EXEEXT) ${LDFLAGS} ${CFLAGS} ${CPPFLAGS} ${OBJS} ${LIBES} ${EXTRALIBS}
# OS/2
-tcsh.exe: tcsh
- emxbind tcsh
+#tcsh.exe: tcsh
+# emxbind tcsh
gethost: gethost.c sh.err.h tc.const.h sh.h
rm -f gethost
@@ -474,12 +475,12 @@ vgrind:
install-strip: install
-install: tcsh
+install: tcsh$(EXEEXT)
-mkdir -p ${DESTBIN}
- -mv -f ${DESTBIN}/tcsh ${DESTBIN}/tcsh.old
- cp tcsh ${DESTBIN}/tcsh
- -strip ${DESTBIN}/tcsh
- chmod 555 ${DESTBIN}/tcsh
+ -mv -f ${DESTBIN}/tcsh$(EXEEXT) ${DESTBIN}/tcsh.old
+ cp tcsh$(EXEEXT) ${DESTBIN}/tcsh$(EXEEXT)
+ -strip ${DESTBIN}/tcsh$(EXEEXT)
+ chmod 755 ${DESTBIN}/tcsh$(EXEEXT)
install.man: tcsh.man
-mkdir -p ${DESTMAN}
@@ -487,6 +488,19 @@ install.man: tcsh.man
cp $(srcdir)/tcsh.man ${DESTMAN}/tcsh.${MANSECT}
chmod 444 ${DESTMAN}/tcsh.${MANSECT}
+install.cygwin: install install.man
+ -mkdir -p ${DESTDIR}${prefix}/doc/tcsh
+ cp ${srcdir}/FAQ ${srcdir}/Fixes ${DESTDIR}${prefix}/doc/tcsh
+ cp ${srcdir}/NewThings ${srcdir}/README ${DESTDIR}${prefix}/doc/tcsh
+ cp ${srcdir}/WishList ${srcdir}/Y2K ${DESTDIR}${prefix}/doc/tcsh
+ perl ${srcdir}/tcsh.man2html ${srcdir}/tcsh.man
+ cp -rp tcsh.html ${DESTDIR}${prefix}/doc/tcsh
+ -mkdir -p ${DESTDIR}/etc/profile.d
+ -mkdir -p ${DESTDIR}/etc/postinstall
+ cp -p ${srcdir}/cygwin/etc/csh.* ${DESTDIR}/etc
+ cp -p ${srcdir}/cygwin/etc/profile.d/*.tcsh ${DESTDIR}/etc/profile.d
+ cp -p ${srcdir}/cygwin/etc/postinstall/tcsh.sh ${DESTDIR}/etc/postinstall
+
# Amiga Unix
#install.man: tcsh.man
# compress tcsh.man
@@ -500,7 +514,7 @@ install.man: tcsh.man
# chmod 444 ${DESTMAN}/tcsh.${MANSECT}.Z
clean:
- ${RM} -f a.out strings x.c xs.c tcsh tcsh.a _MAKE_LOG core gethost
+ ${RM} -f a.out strings x.c xs.c tcsh$(EXEEXT) tcsh.a _MAKE_LOG core gethost
${RM} -f *.${SUF} sh.prof.c ed.defns.h tc.const.h sh.err.h tc.defs.c
${RM} -f tcsh.*.m tcsh.*.cat
OpenPOWER on IntegriCloud