163128Sps# Makefile for less.
263128Sps# MS-DOS version
363128Sps
463128Sps#### Start of system configuration section. ####
563128Sps
663128SpsCC = cl
763128Sps# Change the following directories to match your installation.
863128SpsLIBDIR = c:\msvc\lib
963128SpsINCDIR = c:\msvc\include
1063128Sps
1163128Sps# CFLAGS are compile-time options and LDFLAGS are link-time options. They are
1263128Sps# customized for MSVC 1.0 (MSC 8.0). If you have a different version of the
1363128Sps# compiler, you may need to change some of the options to their equivalents.
1463128Sps# -Ot     optimize for speed
1563128Sps# -AL     large memory model
1663128Sps# -Za     ANSI C conformance
1763128Sps# -nologo suppress MSVC banners
1863128Sps# -onerror:noexe   no .EXE file if link errors occur
1963128SpsCFLAGS = -Ot -AL -Za -nologo
2063128SpsLDFLAGS = -onerror:noexe -nologo
2163128SpsLIBS = $(LIBDIR)\llibce.lib $(LIBDIR)\graphics.lib
2263128Sps
2363128Sps#### End of system configuration section. ####
2463128Sps
2563128Sps# This rule allows us to supply the necessary -D options
2663128Sps# in addition to whatever the user asks for.
2763128Sps.c.obj:
2863128Sps	$(CC) -c -I. -I$(INCDIR) $(CPPFLAGS) $(CFLAGS) $<
2963128Sps
30195941SdelphijOBJ = \
31195941Sdelphij	main.obj screen.obj brac.obj ch.obj charset.obj cmdbuf.obj \
32195941Sdelphij	command.obj cvt.obj decode.obj edit.obj filename.obj forwback.obj \
33195941Sdelphij	help.obj ifile.obj input.obj jump.obj line.obj linenum.obj \
34195941Sdelphij	lsystem.obj mark.obj optfunc.obj option.obj opttbl.obj os.obj \
35195941Sdelphij	output.obj pattern.obj position.obj prompt.obj search.obj signal.obj \
36195941Sdelphij	tags.obj  ttyin.obj version.obj
3763128Sps
3863128Spsall: less lesskey
3963128Sps
4063128Sps# This is really horrible, but the command line is too long for 
4163128Sps# MS-DOS if we try to link $(OBJ).
4263128Spsless: $(OBJ)
4363128Sps	-if exist lesskey.obj del lesskey.obj
4463128Sps	$(CC) $(LDFLAGS) -o $@ *.obj $(LIBS)
4563128Sps
4663128Spslesskey: lesskey.obj version.obj
4763128Sps	$(CC) $(LDFLAGS) -o $@ lesskey.obj version.obj $(LIBS)
4863128Sps
4963128Spsdefines.h: defines.ds
5063128Sps	-del defines.h
5163128Sps	-copy defines.ds defines.h
5263128Sps
5363128Sps$(OBJ): less.h defines.h
5463128Sps
5563128Spsclean:
5663128Sps	-del *.obj 
5763128Sps	-del less.exe
5863128Sps	-del lesskey.exe
5963128Sps
60