[alt.sources] Makefile for elvis under Turbo-C

mat@emcard.UUCP (W Mat Waites) (08/28/90)

Here is the makefile I whipped to make elvis under Turbo-C.
Warning: I'm not using the make that came with turbo, so you may
have to tweak it a little if you are.

I'm using a make that was posted a while back to some group.
(there's some helpful info!!)

I posted a message earlier today about -DMSDOS and I was not remembering
correctly. config.h sets MSDOS, so you should have no "-D" defines in
the makefile.

The only really tricky part was turning on case sensitivity on the linker.
Several function names are the same except for capitalized letters.

Have fun,

Mat


---- Cut Here and unpack ----
#!/bin/sh
# shar:	Shell Archiver  (v1.22)
#	Packed Tue Aug 28 12:51:00 EDT 1990 by mat
#	from directory /usr/mat
#
#	Run the following text with /bin/sh to create:
#	  makefile.trc
#	  elvis.cmd
#
echo "x - extracting makefile.trc (Text)"
sed 's/^X//' << 'SHAR_EOF' > makefile.trc &&
X# Turbo-C Makefile for ELVIS - a clone of `vi`
X#
X# Use `make` to compile all programs
X# Use `make install` to copy the programs to the BIN directory
X# Use `make clean` to remove all object files
X# Use `make clobber` to remove everything except source & documentation
X# Use `make tags` to build new "tags" and "refs" files
X# Use `make sh` to produce shar archives of the source
X
XPROGS=	elvis.exe ctags.exe ref.exe virec.exe wildcard.exe
XBIN=\bin
XLIB=\tc\lib
XOBJS=	blk.obj cmd1.obj cmd2.obj curses.obj cut.obj ex.obj input.obj main.obj misc.obj\
X	modify.obj move1.obj move2.obj move3.obj move4.obj move5.obj opts.obj recycle.obj\
X	redraw.obj regexp.obj regsub.obj tio.obj tmp.obj vars.obj vcmd.obj vi.obj\
X	pc.obj sysdos.obj tinytcap.obj
XCFLAGS=	
XMODEL=l
X
Xall: $(PROGS)
X
Xelvis.exe: $(OBJS)
X	tlink /c $(LIB)\C0$(MODEL) @elvis.cmd,elvis.exe,, $(LIB)\C$(MODEL)
X
X# This just says that a change to nomagic.c is effectively a change to regexp.c
Xregexp.obj: nomagic.c
X
X##############################################################################
Xinstall: $(PROGS)
X	cp $(PROGS) $(BIN)
X
Xclean:
X	rm -f *.obj
X
Xclobber: clean
X	rm -f tags refs $(PROGS)
X
Xwhich:
X	@echo 'Turbo-C'
X
Xtags refs: ctags.exe
X	./ctags -r *.c *.h
X
SHAR_EOF
chmod 0664 makefile.trc || echo "restore of makefile.trc fails"
echo "x - extracting elvis.cmd (Text)"
sed 's/^X//' << 'SHAR_EOF' > elvis.cmd &&
Xblk.obj+
Xcmd1.obj+
Xcmd2.obj+
Xcurses.obj+
Xcut.obj+
Xex.obj+
Xinput.obj+
Xmain.obj+
Xmisc.obj+
Xmodify.obj+
Xmove1.obj+
Xmove2.obj+
Xmove3.obj+
Xmove4.obj+
Xmove5.obj+
Xopts.obj+
Xrecycle.obj+
Xredraw.obj+
Xregexp.obj+
Xregsub.obj+
Xsystem.obj+
Xtio.obj+
Xtmp.obj+
Xvars.obj+
Xvcmd.obj+
Xpc.obj+
Xsysdos.obj+
Xtinytcap.obj+
Xvi.obj
SHAR_EOF
chmod 0664 elvis.cmd || echo "restore of elvis.cmd fails"
exit 0
-- 
W Mat Waites              |  Unlike most of you, I am not a nut.
{gatech,emory}!emcard!mat |             -H. Simpson