Elvis 1.4 Makefile for MS-DOS

Kenneth J. Hendrickson kjh at pollux.usc.edu
Fri Dec 7 20:37:36 AEST 1990


Here are some files to make compiling Elvis 1.4 much easier for MS-DOS
(assuming you have NDMAKE).  The elvis.lnk file is also improved, so
that the executable size of elvis will be much smaller.  A diff file is
included for elvis.lnk.  Makefile.msc is similar to elvis.mak, but since
the diff file is larger than makefile.msc, the whole file is included.

#! /bin/sh
# This is a shell archive.  Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file".  To overwrite existing
# files, type "sh file -c".  You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of shell archive."
# Contents:  elvis.lnk.dif makefile.msc
# Wrapped by kjh at pollux.usc.edu on Fri Dec  7 01:29:06 1990
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f elvis.lnk.dif -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"elvis.lnk.dif\"
else
echo shar: Extracting \"elvis.lnk.dif\" \(131 characters\)
sed "s/^X//" >elvis.lnk.dif <<'END_OF_elvis.lnk.dif'
X6,c,6
X< vcmd.obj vi.obj pc.obj sysdos.obj tinytcap.obj /co /noi /map +
X---
X> vcmd.obj vi.obj pc.obj sysdos.obj tinytcap.obj /noi +
END_OF_elvis.lnk.dif
if test 131 -ne `wc -c <elvis.lnk.dif`; then
    echo shar: \"elvis.lnk.dif\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f makefile.msc -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"makefile.msc\"
else
echo shar: Extracting \"makefile.msc\" \(3205 characters\)
sed "s/^X//" >makefile.msc <<'END_OF_makefile.msc'
X# Makefile for MSC - if you don't have NDmake, use this one,
X# but don't expect to be happy.
X# And don't expect to do anything but making the executables, either.
X
XOBJS=	blk.obj cmd1.obj cmd2.obj curses.obj cut.obj ex.obj input.obj \
X	main.obj misc.obj modify.obj move1.obj move2.obj move3.obj move4.obj \
X	move5.obj opts.obj recycle.obj redraw.obj regexp.obj regsub.obj \
X	system.obj tio.obj tmp.obj vars.obj vcmd.obj vi.obj \
X	pc.obj sysdos.obj tinytcap.obj
X
XCC=		cl
X# Elvis has too much code for the SMALL model, but not much data.
XCFLAGS_ELVIS=	-AM -Ox -DCS_IBMPC -DCS_SPECIAL
X# The utilities fit into 64K code + 64K data just fine.
XCFLAGS_UTIL=	-AS -Ox
X
Xall:	elvis.exe ctags.exe ref.exe virec.exe wildcard.exe \
X	ex.exe vi.exe view.exe
X
Xclean:
X	del *.obj
X
Xblk.obj:	blk.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c blk.c
X
Xcmd1.obj:	cmd1.c config.h regexp.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c cmd1.c
X
Xcmd2.obj:	cmd2.c config.h regexp.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c cmd2.c
X
Xcurses.obj:	curses.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c curses.c
X
Xcut.obj:	cut.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c cut.c
X
Xex.obj:		ex.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c ex.c
X
Xinput.obj:	input.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c input.c
X
Xmain.obj:	main.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c main.c
X
Xmisc.obj:	misc.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c misc.c
X
Xmodify.obj:	modify.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c modify.c
X
Xmove1.obj:	move1.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c move1.c
X
Xmove2.obj:	move2.c config.h regexp.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c move2.c
X
Xmove3.obj:	move3.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c move3.c
X
Xmove4.obj:	move4.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c move4.c
X
Xmove5.obj:	move5.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c move5.c
X
Xopts.obj:	opts.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c opts.c
X
Xrecycle.obj:	recycle.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c recycle.c
X
Xredraw.obj:	redraw.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c redraw.c
X
Xregexp.obj:	regexp.c regexp.h config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c regexp.c
X
Xregsub.obj:	regsub.c regexp.h
X	$(CC) $(CFLAGS_ELVIS) -c regsub.c
X
Xsystem.obj:	system.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c system.c
X
Xtio.obj:	tio.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c tio.c
X
Xtmp.obj:	tmp.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c tmp.c
X
Xvars.obj:	vars.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c vars.c
X
Xvcmd.obj:	vcmd.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c vcmd.c
X
Xvi.obj:		vi.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c vi.c
X
Xpc.obj:		pc.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c pc.c
X
Xsysdos.obj:	sysdos.c config.h vi.h
X	$(CC) $(CFLAGS_ELVIS) -c sysdos.c
X
Xtinytcap.obj:	tinytcap.c config.h
X	$(CC) $(CFLAGS_ELVIS) -c tinytcap.c
X
Xelvis.exe: $(OBJS)
X	link @elvis.lnk
X
Xctags.exe: ctags.c wildcard.c config.h
X	$(CC) $(CFLAGS_UTIL) ctags.c -o ctags.exe
X
Xref.exe: ref.c
X	$(CC) $(CFLAGS_UTIL) ref.c -o ref.exe
X
Xvirec.exe: virec.c wildcard.c config.h vi.h
X	$(CC) $(CFLAGS_UTIL) virec.c -o virec.exe
X
Xwildcard.exe: wildcard.c
X	$(CC) $(CFLAGS_UTIL) wildcard.c -o wildcard.exe
X
Xex.exe: alias.c config.h
X	$(CC) $(CFLAGS_UTIL) alias.c -o ex.exe
X
Xvi.exe: ex.exe
X	copy ex.exe vi.exe
X
Xview.exe: ex.exe
X	copy ex.exe view.exe
END_OF_makefile.msc
if test 3205 -ne `wc -c <makefile.msc`; then
    echo shar: \"makefile.msc\" unpacked with wrong size!
fi
# end of overwriting check
fi
echo shar: End of shell archive.
exit 0

-- 
favourite oxymorons:   student athlete, military justice, mercy killing
Ken Hendrickson N8DGN/6       kjh at usc.edu      ...!uunet!usc!pollux!kjh



More information about the Alt.sources mailing list