]> www.wagner.pp.ru Git - oss/less.git/blob - Makefile.wnm
Removed code page operation. Fix GLOB macros for 64-bit win32. Fixed debug flags...
[oss/less.git] / Makefile.wnm
1 # Makefile for less.
2 # Windows 32 Visual C++ version
3
4 #### Start of system configuration section. ####
5
6 # Target architectire
7 # use nmake -f Makefile.wnm ARCH=X64  to override this definition
8 # Environment variable arch would not override it. 
9 #
10 ARCH=I386
11
12 CC = cl
13
14 # Normal flags
15 CFLAGS = /nologo /MD /W3 /EHsc /O2 /I "." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /c 
16 LDFLAGS = /nologo /subsystem:console /incremental:no /machine:$(ARCH)
17
18 # Debugging flags
19 #CFLAGS = /nologo /MDd /W3 /EHsc /Od /Gm /Zi /I "." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /c
20 #LDFLAGS = /nologo /subsystem:console /incremental:yes /debug /machine:$(ARCH)
21
22 LD = link
23 LIBS = user32.lib
24
25 #### End of system configuration section. ####
26
27 # This rule allows us to supply the necessary -D options
28 # in addition to whatever the user asks for.
29 .c.obj:
30         $(CC) $(CFLAGS) $<
31
32 OBJ = \
33         main.obj screen.obj brac.obj ch.obj charset.obj cmdbuf.obj \
34         command.obj cvt.obj decode.obj edit.obj filename.obj forwback.obj \
35         help.obj ifile.obj input.obj jump.obj line.obj linenum.obj \
36         lsystem.obj mark.obj optfunc.obj option.obj opttbl.obj os.obj \
37         output.obj pattern.obj position.obj prompt.obj search.obj signal.obj \
38         tags.obj ttyin.obj version.obj regexp.obj
39
40 all: less.exe lesskey.exe
41
42 # This is really horrible, but the command line is too long for 
43 # MS-DOS if we try to link ${OBJ}.
44 less.exe: $(OBJ)
45         -del lesskey.obj
46         $(LD) $(LDFLAGS) *.obj $(LIBS) /out:$@
47
48 lesskey.exe: lesskey.obj version.obj
49         $(LD) $(LDFLAGS) lesskey.obj version.obj $(LIBS) /out:$@
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 less.exe
60         -del lesskey.exe
61
62