Makefile.wnb revision 161475
160484Sobrien# Makefile for less.
2218822Sdim# Windows version
3218822Sdim# Bolarnd C++ 5.5.1 free command line tools
460484Sobrien
560484Sobrien#### Start of system configuration section. ####
660484Sobrien# 
760484Sobrien# Borland's make knows its own location in the
860484Sobrien# filesystem.
960484Sobrien#
1060484Sobrien
1160484SobrienCC = bcc32
1260484SobrienLIBDIR = $(MAKEDIR)\..\lib
1360484Sobrien
1460484SobrienCFLAGS = -O2 -w-pro -TWC -P-c -v- -d -f- -ff- -vi
1560484SobrienLDFLAGS = -Tpe -v- -ap -c -x -V4.0 -GF:AGGRESSIVE
1660484SobrienLD = ilink32
1760484SobrienLIBS = ${LIBDIR}\import32.lib ${LIBDIR}\cw32.lib
1860484Sobrien
1960484Sobrien#### End of system configuration section. ####
20218822Sdim
21218822Sdim# 
2260484Sobrien# This rule allows us to supply the necessary -D options
2360484Sobrien# in addition to whatever the user asks for.
24218822Sdim# 
2560484Sobrien.c.obj:
2660484Sobrien	${CC} -c -I. ${CPPFLAGS} ${CFLAGS} $<
27218822Sdim
28218822SdimOBJ =	main.obj screen.obj brac.obj ch.obj charset.obj cmdbuf.obj command.obj \
29218822Sdim	decode.obj edit.obj filename.obj forwback.obj help.obj ifile.obj \
3060484Sobrien	input.obj jump.obj line.obj linenum.obj lsystem.obj \
3177298Sobrien	mark.obj optfunc.obj option.obj opttbl.obj os.obj output.obj \
32218822Sdim	position.obj prompt.obj search.obj signal.obj tags.obj \
3360484Sobrien	ttyin.obj version.obj regexp.obj
3477298Sobrien
3577298Sobrienall: less lesskey lessecho
3677298Sobrien
3777298Sobrien# 
3877298Sobrien# This is really horrible, but the command line is too long for 
3977298Sobrien# MS-DOS if we try to link ${OBJ}.
4077298Sobrien# 
4177298Sobrienless: ${OBJ}
4277298Sobrien	${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS}
4377298Sobrien
4477298Sobrienlesskey: lesskey.obj version.obj
45130561Sobrien	${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS}
46130561Sobrien
47130561Sobrienlessecho: lessecho.obj version.obj
48218822Sdim	${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj $**, $@,,${LIBS}
49218822Sdim
50218822Sdimdefines.h: defines.wn
51218822Sdim	-del defines.h
52218822Sdim	-copy defines.wn defines.h
53218822Sdim
54218822Sdim${OBJ}: less.h defines.h funcs.h cmd.h
55218822Sdim
56218822Sdimclean:
57218822Sdim	-del *.obj 
58218822Sdim	-del *.il? 
59218822Sdim	-del *.tds 
60218822Sdim	-del defines.h
61218822Sdim
62218822Sdimspotless: clean
63218822Sdim	-del less.exe
64218822Sdim	-del lesskey.exe
65218822Sdim	-del lessecho.exe
66218822Sdim
67218822Sdimrealclean: spotless
68218822Sdim
69218822Sdimdistclean: spotless
70218822Sdim
71130561Sobrien