Makefile.wnb revision 225736
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 = \
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