Makefile.wnb revision 195941
1219019Sgabor# Makefile for less. 2219019Sgabor# Windows version 3219019Sgabor# Bolarnd C++ 5.5.1 free command line tools 4219019Sgabor 5219019Sgabor#### Start of system configuration section. #### 6219019Sgabor# 7219019Sgabor# Borland's make knows its own location in the 8219019Sgabor# filesystem. 9219019Sgabor# 10219019Sgabor 11219019SgaborCC = bcc32 12219019SgaborLIBDIR = $(MAKEDIR)\..\lib 13219019Sgabor 14219019SgaborCFLAGS = -O2 -w-pro -TWC -P-c -v- -d -f- -ff- -vi 15219019SgaborLDFLAGS = -Tpe -v- -ap -c -x -V4.0 -GF:AGGRESSIVE 16219019SgaborLD = ilink32 17219019SgaborLIBS = ${LIBDIR}\import32.lib ${LIBDIR}\cw32.lib 18219019Sgabor 19#### End of system configuration section. #### 20 21# 22# This rule allows us to supply the necessary -D options 23# in addition to whatever the user asks for. 24# 25.c.obj: 26 ${CC} -c -I. ${CPPFLAGS} ${CFLAGS} $< 27 28OBJ = \ 29 main.obj screen.obj brac.obj ch.obj charset.obj cmdbuf.obj \ 30 command.obj cvt.obj decode.obj edit.obj filename.obj forwback.obj \ 31 help.obj ifile.obj input.obj jump.obj line.obj linenum.obj \ 32 lsystem.obj mark.obj optfunc.obj option.obj opttbl.obj os.obj \ 33 output.obj pattern.obj position.obj prompt.obj search.obj signal.obj \ 34 tags.obj ttyin.obj version.obj regexp.obj 35 36all: less lesskey lessecho 37 38# 39# This is really horrible, but the command line is too long for 40# MS-DOS if we try to link ${OBJ}. 41# 42less: ${OBJ} 43 ${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS} 44 45lesskey: lesskey.obj version.obj 46 ${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS} 47 48lessecho: lessecho.obj version.obj 49 ${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS} 50 51defines.h: defines.wn 52 -del defines.h 53 -copy defines.wn defines.h 54 55${OBJ}: less.h defines.h funcs.h cmd.h 56 57clean: 58 -del *.obj 59 -del *.il? 60 -del *.tds 61 -del defines.h 62 63spotless: clean 64 -del less.exe 65 -del lesskey.exe 66 -del lessecho.exe 67 68realclean: spotless 69 70distclean: spotless 71 72