~ubuntu-branches/ubuntu/raring/less/raring-proposed

« back to all changes in this revision

Viewing changes to Makefile.dsu

  • 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
# MS-DOS version
 
3
 
 
4
#### Start of system configuration section. ####
 
5
 
 
6
CC = cl
 
7
# Change the following directories to match your installation.
 
8
LIBDIR = c:\msvc\lib
 
9
INCDIR = c:\msvc\include
 
10
 
 
11
# CFLAGS are compile-time options and LDFLAGS are link-time options. They are
 
12
# customized for MSVC 1.0 (MSC 8.0). If you have a different version of the
 
13
# compiler, you may need to change some of the options to their equivalents.
 
14
# -Ot     optimize for speed
 
15
# -AL     large memory model
 
16
# -Za     ANSI C conformance
 
17
# -nologo suppress MSVC banners
 
18
# -onerror:noexe   no .EXE file if link errors occur
 
19
CFLAGS = -Ot -AL -Za -nologo
 
20
LDFLAGS = -onerror:noexe -nologo
 
21
LIBS = $(LIBDIR)\llibce.lib $(LIBDIR)\graphics.lib
 
22
 
 
23
#### End of system configuration section. ####
 
24
 
 
25
# This rule allows us to supply the necessary -D options
 
26
# in addition to whatever the user asks for.
 
27
.c.obj:
 
28
        $(CC) -c -I. -I$(INCDIR) $(CPPFLAGS) $(CFLAGS) $<
 
29
 
 
30
OBJ =   main.obj screen.obj brac.obj ch.obj charset.obj cmdbuf.obj command.obj \
 
31
        decode.obj edit.obj filename.obj forwback.obj help.obj ifile.obj \
 
32
        input.obj jump.obj line.obj linenum.obj lsystem.obj \
 
33
        mark.obj optfunc.obj option.obj opttbl.obj os.obj output.obj \
 
34
        position.obj prompt.obj search.obj signal.obj tags.obj \
 
35
        ttyin.obj version.obj
 
36
 
 
37
all: less lesskey
 
38
 
 
39
# This is really horrible, but the command line is too long for 
 
40
# MS-DOS if we try to link $(OBJ).
 
41
less: $(OBJ)
 
42
        -if exist lesskey.obj del lesskey.obj
 
43
        $(CC) $(LDFLAGS) -o $@ *.obj $(LIBS)
 
44
 
 
45
lesskey: lesskey.obj version.obj
 
46
        $(CC) $(LDFLAGS) -o $@ lesskey.obj version.obj $(LIBS)
 
47
 
 
48
defines.h: defines.ds
 
49
        -del defines.h
 
50
        -copy defines.ds defines.h
 
51
 
 
52
$(OBJ): less.h defines.h
 
53
 
 
54
clean:
 
55
        -del *.obj 
 
56
        -del less.exe
 
57
        -del lesskey.exe
 
58