File: Makefile.dsb

package info (click to toggle)
jless 382-iso262-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,808 kB
  • ctags: 1,332
  • sloc: sh: 18,019; ansic: 15,553; makefile: 81; awk: 7
file content (50 lines) | stat: -rw-r--r-- 1,246 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Makefile for less.
# MS-DOS version (Borland C/C++ 4.02)

#### Start of system configuration section. ####

CC = bcc
LIBDIR = \bc\lib

CFLAGS = -A- -mm -O2 -w- -1- -2- -a -d -Z
LDFLAGS = -mm
LIBS =
EXT = .EXE

#### End of system configuration section. ####

# This rule allows us to supply the necessary -D options
# in addition to whatever the user asks for.
.c.obj:
	$(CC) -c -I. $(CPPFLAGS) $(CFLAGS) $<

OBJ =	main.obj screen.obj brac.obj ch.obj charset.obj cmdbuf.obj command.obj \
	decode.obj edit.obj filename.obj forwback.obj help.obj ifile.obj \
	input.obj jump.obj line.obj linenum.obj lsystem.obj \
	mark.obj optfunc.obj option.obj opttbl.obj os.obj output.obj \
	position.obj prompt.obj search.obj signal.obj tags.obj \
	ttyin.obj version.obj

all: less$(EXT) lesskey$(EXT)

# This is really horrible, but the command line is too long for 
# MS-DOS if we try to link $(OBJ).
less$(EXT): $(OBJ)
	ren lesskey.obj lesskey.obo
	$(CC) $(LDFLAGS) -e$@ *.obj $(LIBS)
	ren lesskey.obo lesskey.obj

lesskey$(EXT): lesskey.obj version.obj
	$(CC) $(LDFLAGS) -e$@ lesskey.obj version.obj $(LIBS)

defines.h: defines.ds
	-del defines.h
	-copy defines.ds defines.h

$(OBJ): less.h defines.h

clean:
	-del *.obj 
	-del less.exe
	-del lesskey.exe