Annotation of src/usr.bin/less/Makefile.wnm, Revision 1.1.1.1
1.1 shadchin 1: # Makefile for less.
2: # Windows 32 Visual C++ version
3:
4: #### Start of system configuration section. ####
5:
6: CC = cl
7:
8: # Normal flags
9: CFLAGS = /nologo /ML /W3 /GX /O2 /I "." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /c
10: LDFLAGS = /nologo /subsystem:console /incremental:no /machine:I386
11:
12: # Debugging flags
13: #CFLAGS = /nologo /MDd /W3 /GX /Od /Gm /Zi /I "." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /c
14: #LDFLAGS = /nologo /subsystem:console /incremental:yes /debug /machine:I386
15:
16: LD = link
17: LIBS = user32.lib
18:
19: #### End of system configuration section. ####
20:
21: # This rule allows us to supply the necessary -D options
22: # in addition to whatever the user asks for.
23: .c.obj:
24: $(CC) $(CFLAGS) $<
25:
26: OBJ = \
27: main.obj screen.obj brac.obj ch.obj charset.obj cmdbuf.obj \
28: command.obj cvt.obj decode.obj edit.obj filename.obj forwback.obj \
29: help.obj ifile.obj input.obj jump.obj line.obj linenum.obj \
30: lsystem.obj mark.obj optfunc.obj option.obj opttbl.obj os.obj \
31: output.obj pattern.obj position.obj prompt.obj search.obj signal.obj \
32: tags.obj ttyin.obj version.obj regexp.obj
33:
34: all: less.exe lesskey.exe
35:
36: # This is really horrible, but the command line is too long for
37: # MS-DOS if we try to link ${OBJ}.
38: less.exe: $(OBJ)
39: -del lesskey.obj
40: $(LD) $(LDFLAGS) *.obj $(LIBS) /out:$@
41:
42: lesskey.exe: lesskey.obj version.obj
43: $(LD) $(LDFLAGS) lesskey.obj version.obj $(LIBS) /out:$@
44:
45: defines.h: defines.wn
46: -del defines.h
47: -copy defines.wn defines.h
48:
49: $(OBJ): less.h defines.h funcs.h cmd.h
50:
51: clean:
52: -del *.obj
53: -del less.exe
54: -del lesskey.exe
55:
56: