Merge from vendor branch LIBPCAP:
[dragonfly.git] / contrib / less-381 / Makefile.dsb
1 # Makefile for less.
2 # MS-DOS version (Borland C/C++ 4.02)
3
4 #### Start of system configuration section. ####
5
6 CC = bcc
7 LIBDIR = \bc\lib
8
9 CFLAGS = -A- -mm -O2 -w- -1- -2- -a -d -Z
10 LDFLAGS = -mm
11 LIBS =
12 EXT = .EXE
13
14 #### End of system configuration section. ####
15
16 # This rule allows us to supply the necessary -D options
17 # in addition to whatever the user asks for.
18 .c.obj:
19         $(CC) -c -I. $(CPPFLAGS) $(CFLAGS) $<
20
21 OBJ =   main.obj screen.obj brac.obj ch.obj charset.obj cmdbuf.obj command.obj \
22         decode.obj edit.obj filename.obj forwback.obj help.obj ifile.obj \
23         input.obj jump.obj line.obj linenum.obj lsystem.obj \
24         mark.obj optfunc.obj option.obj opttbl.obj os.obj output.obj \
25         position.obj prompt.obj search.obj signal.obj tags.obj \
26         ttyin.obj version.obj
27
28 all: less$(EXT) lesskey$(EXT)
29
30 # This is really horrible, but the command line is too long for 
31 # MS-DOS if we try to link $(OBJ).
32 less$(EXT): $(OBJ)
33         ren lesskey.obj lesskey.obo
34         $(CC) $(LDFLAGS) -e$@ *.obj $(LIBS)
35         ren lesskey.obo lesskey.obj
36
37 lesskey$(EXT): lesskey.obj version.obj
38         $(CC) $(LDFLAGS) -e$@ lesskey.obj version.obj $(LIBS)
39
40 defines.h: defines.ds
41         -del defines.h
42         -copy defines.ds defines.h
43
44 $(OBJ): less.h defines.h
45
46 clean:
47         -del *.obj 
48         -del less.exe
49         -del lesskey.exe
50