]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - contrib/less/Makefile.wnb
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / contrib / less / Makefile.wnb
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 =   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
35 all: 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
41 less: ${OBJ}
42         ${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS}
43
44 lesskey: lesskey.obj version.obj
45         ${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS}
46
47 lessecho: lessecho.obj version.obj
48         ${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS}
49
50 defines.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
56 clean:
57         -del *.obj 
58         -del *.il? 
59         -del *.tds 
60         -del defines.h
61
62 spotless: clean
63         -del less.exe
64         -del lesskey.exe
65         -del lessecho.exe
66
67 realclean: spotless
68
69 distclean: spotless
70