2 # Windows 32 Visual C++ version
4 #### Start of system configuration section. ####
9 CFLAGS = /nologo /ML /W3 /GX /O2 /I "." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /c
10 LDFLAGS = /subsystem:console /incremental:no /machine:I386
13 #CFLAGS = /nologo /MDd /W3 /GX /Od /Gm /Zi /I "." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /c
14 #LDFLAGS = /subsystem:console /incremental:yes /debug /machine:I386
19 #### End of system configuration section. ####
21 # This rule allows us to supply the necessary -D options
22 # in addition to whatever the user asks for.
26 OBJ = main.obj screen.obj brac.obj ch.obj charset.obj cmdbuf.obj command.obj \
27 decode.obj edit.obj filename.obj forwback.obj help.obj ifile.obj \
28 input.obj jump.obj line.obj linenum.obj lsystem.obj \
29 mark.obj optfunc.obj option.obj opttbl.obj os.obj output.obj \
30 position.obj prompt.obj search.obj signal.obj tags.obj \
31 ttyin.obj version.obj regexp.obj
33 all: less.exe lesskey.exe
35 # This is really horrible, but the command line is too long for
36 # MS-DOS if we try to link ${OBJ}.
39 $(LD) $(LDFLAGS) *.obj $(LIBS) /out:$@
41 lesskey.exe: lesskey.obj version.obj
42 $(LD) $(LDFLAGS) lesskey.obj version.obj $(LIBS) /out:$@
46 -copy defines.wn defines.h
48 $(OBJ): less.h defines.h funcs.h cmd.h