2000-05-22 09:53:22 +00:00
|
|
|
# Makefile for less.
|
|
|
|
# Windows version
|
2006-08-20 15:49:51 +00:00
|
|
|
# Bolarnd C++ 5.5.1 free command line tools
|
2000-05-22 09:53:22 +00:00
|
|
|
|
|
|
|
#### Start of system configuration section. ####
|
2006-08-20 15:49:51 +00:00
|
|
|
#
|
|
|
|
# Borland's make knows its own location in the
|
|
|
|
# filesystem.
|
|
|
|
#
|
2000-05-22 09:53:22 +00:00
|
|
|
|
|
|
|
CC = bcc32
|
2006-08-20 15:49:51 +00:00
|
|
|
LIBDIR = $(MAKEDIR)\..\lib
|
2000-05-22 09:53:22 +00:00
|
|
|
|
|
|
|
CFLAGS = -O2 -w-pro -TWC -P-c -v- -d -f- -ff- -vi
|
2006-08-20 15:49:51 +00:00
|
|
|
LDFLAGS = -Tpe -v- -ap -c -x -V4.0 -GF:AGGRESSIVE
|
|
|
|
LD = ilink32
|
2000-05-22 09:53:22 +00:00
|
|
|
LIBS = ${LIBDIR}\import32.lib ${LIBDIR}\cw32.lib
|
|
|
|
|
|
|
|
#### End of system configuration section. ####
|
|
|
|
|
2006-08-20 15:49:51 +00:00
|
|
|
#
|
2000-05-22 09:53:22 +00:00
|
|
|
# This rule allows us to supply the necessary -D options
|
|
|
|
# in addition to whatever the user asks for.
|
2006-08-20 15:49:51 +00:00
|
|
|
#
|
2000-05-22 09:53:22 +00:00
|
|
|
.c.obj:
|
|
|
|
${CC} -c -I. ${CPPFLAGS} ${CFLAGS} $<
|
|
|
|
|
|
|
|
OBJ = main.obj screen.obj brac.obj ch.obj charset.obj cmdbuf.obj command.obj \
|
|
|
|
decode.obj edit.obj filename.obj forwback.obj help.obj ifile.obj \
|
|
|
|
input.obj jump.obj line.obj linenum.obj lsystem.obj \
|
|
|
|
mark.obj optfunc.obj option.obj opttbl.obj os.obj output.obj \
|
|
|
|
position.obj prompt.obj search.obj signal.obj tags.obj \
|
|
|
|
ttyin.obj version.obj regexp.obj
|
|
|
|
|
2006-08-20 15:49:51 +00:00
|
|
|
all: less lesskey lessecho
|
2000-05-22 09:53:22 +00:00
|
|
|
|
2006-08-20 15:49:51 +00:00
|
|
|
#
|
2000-05-22 09:53:22 +00:00
|
|
|
# This is really horrible, but the command line is too long for
|
|
|
|
# MS-DOS if we try to link ${OBJ}.
|
2006-08-20 15:49:51 +00:00
|
|
|
#
|
2000-05-22 09:53:22 +00:00
|
|
|
less: ${OBJ}
|
2006-08-20 15:49:51 +00:00
|
|
|
${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS}
|
2000-05-22 09:53:22 +00:00
|
|
|
|
|
|
|
lesskey: lesskey.obj version.obj
|
2006-08-20 15:49:51 +00:00
|
|
|
${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS}
|
|
|
|
|
|
|
|
lessecho: lessecho.obj version.obj
|
|
|
|
${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS}
|
2000-05-22 09:53:22 +00:00
|
|
|
|
|
|
|
defines.h: defines.wn
|
|
|
|
-del defines.h
|
|
|
|
-copy defines.wn defines.h
|
|
|
|
|
|
|
|
${OBJ}: less.h defines.h funcs.h cmd.h
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-del *.obj
|
2006-08-20 15:49:51 +00:00
|
|
|
-del *.il?
|
|
|
|
-del *.tds
|
|
|
|
-del defines.h
|
|
|
|
|
|
|
|
spotless: clean
|
2000-05-22 09:53:22 +00:00
|
|
|
-del less.exe
|
|
|
|
-del lesskey.exe
|
2006-08-20 15:49:51 +00:00
|
|
|
-del lessecho.exe
|
|
|
|
|
|
|
|
realclean: spotless
|
|
|
|
|
|
|
|
distclean: spotless
|
2000-05-22 09:53:22 +00:00
|
|
|
|