1# Makefile for less. 2# Windows version 3# Bolarnd C++ 5.5.1 free command line tools 4 5#### Start of system configuration section. #### 6# 7# Borland's make knows its own location in the 8# filesystem. 9# 10 11CC = bcc32 12LIBDIR = $(MAKEDIR)\..\lib 13 14CFLAGS = -O2 -w-pro -TWC -P-c -v- -d -f- -ff- -vi 15LDFLAGS = -Tpe -v- -ap -c -x -V4.0 -GF:AGGRESSIVE 16LD = ilink32 17LIBS = ${LIBDIR}\import32.lib ${LIBDIR}\cw32.lib 18 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 = main.obj screen.obj brac.obj ch.obj charset.obj cmdbuf.obj command.obj \ 29 decode.obj edit.obj filename.obj forwback.obj help.obj ifile.obj \ 30 input.obj jump.obj line.obj linenum.obj lsystem.obj \ 31 mark.obj optfunc.obj option.obj opttbl.obj os.obj output.obj \ 32 position.obj prompt.obj search.obj signal.obj tags.obj \ 33 ttyin.obj version.obj regexp.obj 34 35all: less lesskey lessecho 36 37# 38# This is really horrible, but the command line is too long for 39# MS-DOS if we try to link ${OBJ}. 40# 41less: ${OBJ} 42 ${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS} 43 44lesskey: lesskey.obj version.obj 45 ${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS} 46 47lessecho: lessecho.obj version.obj 48 ${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS} 49 50defines.h: defines.wn 51 -del defines.h 52 -copy defines.wn defines.h 53 54${OBJ}: less.h defines.h funcs.h cmd.h 55 56clean: 57 -del *.obj 58 -del *.il? 59 -del *.tds 60 -del defines.h 61 62spotless: clean 63 -del less.exe 64 -del lesskey.exe 65 -del lessecho.exe 66 67realclean: spotless 68 69distclean: spotless 70 71