Annotation of src/usr.bin/less/Makefile.dsb, Revision 1.1.1.1
1.1 shadchin 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 = \
22: main.obj screen.obj brac.obj ch.obj charset.obj cmdbuf.obj \
23: command.obj cvt.obj decode.obj edit.obj filename.obj forwback.obj \
24: help.obj ifile.obj input.obj jump.obj line.obj linenum.obj \
25: lsystem.obj mark.obj optfunc.obj option.obj opttbl.obj os.obj \
26: output.obj pattern.obj position.obj prompt.obj search.obj signal.obj \
27: tags.obj ttyin.obj version.obj
28:
29: all: less$(EXT) lesskey$(EXT)
30:
31: # This is really horrible, but the command line is too long for
32: # MS-DOS if we try to link $(OBJ).
33: less$(EXT): $(OBJ)
34: ren lesskey.obj lesskey.obo
35: $(CC) $(LDFLAGS) -e$@ *.obj $(LIBS)
36: ren lesskey.obo lesskey.obj
37:
38: lesskey$(EXT): lesskey.obj version.obj
39: $(CC) $(LDFLAGS) -e$@ lesskey.obj version.obj $(LIBS)
40:
41: defines.h: defines.ds
42: -del defines.h
43: -copy defines.ds defines.h
44:
45: $(OBJ): less.h defines.h
46:
47: clean:
48: -del *.obj
49: -del less.exe
50: -del lesskey.exe
51: