2 # MS-DOS version (Borland C/C++ 4.02)
4 #### Start of system configuration section. ####
9 CFLAGS = -A- -mm -O2 -w- -1- -2- -a -d -Z
14 #### End of system configuration section. ####
16 # This rule allows us to supply the necessary -D options
17 # in addition to whatever the user asks for.
19 $(CC) -c -I. $(CPPFLAGS) $(CFLAGS) $<
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
29 all: less$(EXT) lesskey$(EXT)
31 # This is really horrible, but the command line is too long for
32 # MS-DOS if we try to link $(OBJ).
34 ren lesskey.obj lesskey.obo
35 $(CC) $(LDFLAGS) -e$@ *.obj $(LIBS)
36 ren lesskey.obo lesskey.obj
38 lesskey$(EXT): lesskey.obj version.obj
39 $(CC) $(LDFLAGS) -e$@ lesskey.obj version.obj $(LIBS)
43 -copy defines.ds defines.h
45 $(OBJ): less.h defines.h