160786Sps# Makefile for less. 260786Sps# Windows version 3161475Sdelphij# Bolarnd C++ 5.5.1 free command line tools 460786Sps 560786Sps#### Start of system configuration section. #### 6161475Sdelphij# 7161475Sdelphij# Borland's make knows its own location in the 8161475Sdelphij# filesystem. 9161475Sdelphij# 1060786Sps 1160786SpsCC = bcc32 12161475SdelphijLIBDIR = $(MAKEDIR)\..\lib 1360786Sps 1460786SpsCFLAGS = -O2 -w-pro -TWC -P-c -v- -d -f- -ff- -vi 15161475SdelphijLDFLAGS = -Tpe -v- -ap -c -x -V4.0 -GF:AGGRESSIVE 16161475SdelphijLD = ilink32 1760786SpsLIBS = ${LIBDIR}\import32.lib ${LIBDIR}\cw32.lib 1860786Sps 1960786Sps#### End of system configuration section. #### 2060786Sps 21161475Sdelphij# 2260786Sps# This rule allows us to supply the necessary -D options 2360786Sps# in addition to whatever the user asks for. 24161475Sdelphij# 2560786Sps.c.obj: 2660786Sps ${CC} -c -I. ${CPPFLAGS} ${CFLAGS} $< 2760786Sps 28195941SdelphijOBJ = \ 29195941Sdelphij main.obj screen.obj brac.obj ch.obj charset.obj cmdbuf.obj \ 30195941Sdelphij command.obj cvt.obj decode.obj edit.obj filename.obj forwback.obj \ 31195941Sdelphij help.obj ifile.obj input.obj jump.obj line.obj linenum.obj \ 32195941Sdelphij lsystem.obj mark.obj optfunc.obj option.obj opttbl.obj os.obj \ 33195941Sdelphij output.obj pattern.obj position.obj prompt.obj search.obj signal.obj \ 34195941Sdelphij tags.obj ttyin.obj version.obj regexp.obj 3560786Sps 36161475Sdelphijall: less lesskey lessecho 3760786Sps 38161475Sdelphij# 3960786Sps# This is really horrible, but the command line is too long for 4060786Sps# MS-DOS if we try to link ${OBJ}. 41161475Sdelphij# 4260786Spsless: ${OBJ} 43161475Sdelphij ${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS} 4460786Sps 4560786Spslesskey: lesskey.obj version.obj 46161475Sdelphij ${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS} 4760786Sps 48161475Sdelphijlessecho: lessecho.obj version.obj 49161475Sdelphij ${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS} 50161475Sdelphij 5160786Spsdefines.h: defines.wn 5260786Sps -del defines.h 5360786Sps -copy defines.wn defines.h 5460786Sps 5560786Sps${OBJ}: less.h defines.h funcs.h cmd.h 5660786Sps 5760786Spsclean: 5860786Sps -del *.obj 59161475Sdelphij -del *.il? 60161475Sdelphij -del *.tds 61161475Sdelphij -del defines.h 62161475Sdelphij 63161475Sdelphijspotless: clean 6460786Sps -del less.exe 6560786Sps -del lesskey.exe 66161475Sdelphij -del lessecho.exe 6760786Sps 68161475Sdelphijrealclean: spotless 69161475Sdelphij 70161475Sdelphijdistclean: spotless 71161475Sdelphij 72