ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/contrib/less/Makefile.wnb
Revision: 6431
Committed: Sun Dec 1 22:32:34 2013 UTC (10 years, 5 months ago) by laffer1
File size: 1652 byte(s)
Log Message:
Merge less v458 to trunk

File Contents

# Content
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
11 CC = bcc32
12 LIBDIR = $(MAKEDIR)\..\lib
13
14 CFLAGS = -O2 -w-pro -TWC -P-c -v- -d -f- -ff- -vi
15 LDFLAGS = -Tpe -v- -ap -c -x -V4.0 -GF:AGGRESSIVE
16 LD = ilink32
17 LIBS = ${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
28 OBJ = \
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
36 all: 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 #
42 less: ${OBJ}
43 ${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS}
44
45 lesskey: lesskey.obj version.obj
46 ${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS}
47
48 lessecho: lessecho.obj version.obj
49 ${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS}
50
51 defines.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
57 clean:
58 -del *.obj
59 -del *.il?
60 -del *.tds
61 -del defines.h
62
63 spotless: clean
64 -del less.exe
65 -del lesskey.exe
66 -del lessecho.exe
67
68 realclean: spotless
69
70 distclean: spotless
71