~ubuntu-branches/ubuntu/quantal/less/quantal

« back to all changes in this revision

Viewing changes to Makefile.wnm

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Schoepf
  • Date: 2002-04-04 16:43:52 UTC
  • Revision ID: james.westby@ubuntu.com-20020404164352-qldq048yoc7x5sd5
Tags: upstream-374
ImportĀ upstreamĀ versionĀ 374

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 = /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 = /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 =   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
 
32
 
 
33
all: less.exe lesskey.exe
 
34
 
 
35
# This is really horrible, but the command line is too long for 
 
36
# MS-DOS if we try to link ${OBJ}.
 
37
less.exe: $(OBJ)
 
38
        -del lesskey.obj
 
39
        $(LD) $(LDFLAGS) *.obj $(LIBS) /out:$@
 
40
 
 
41
lesskey.exe: lesskey.obj version.obj
 
42
        $(LD) $(LDFLAGS) lesskey.obj version.obj $(LIBS) /out:$@
 
43
 
 
44
defines.h: defines.wn
 
45
        -del defines.h
 
46
        -copy defines.wn defines.h
 
47
 
 
48
$(OBJ): less.h defines.h funcs.h cmd.h
 
49
 
 
50
clean:
 
51
        -del *.obj 
 
52
        -del less.exe
 
53
        -del lesskey.exe
 
54
 
 
55