summaryrefslogtreecommitdiff
path: root/usr.bin/less/Makefile.dos
blob: 3136f270a2a43e86e22da46e9d9eaac662f097e4 (plain)
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
51
52
53
54
55
56
#	$OpenBSD: Makefile.dos,v 1.2 2001/01/29 01:57:59 niklas Exp $

# Makefile for less.
# MS-DOS version

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

CC = cl
LIBDIR = \msc6.0\lib

CFLAGS = -O /Alfw
LDFLAGS = -O
LIBS = ${LIBDIR}\llibce.lib ${LIBDIR}\graphics.lib

#### 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} $<

SRC =	main.c doscreen.c brac.c ch.c charset.c cmdbuf.c command.c \
	decode.c edit.c filename.c forwback.c help.c ifile.c \
	input.c jump.c line.c linenum.c lsystem.c \
	mark.c optfunc.c option.c opttbl.c os.c output.c \
	position.c prompt.c search.c signal.c tags.c \
	ttyin.c version.c
OBJ =	main.obj doscreen.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 lesskey

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

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

defines.h: defines.dos
	-del defines.h
	-copy defines.dos defines.h

$(OBJ): less.h defines.h

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