Annotation of src/usr.bin/less/Makefile.dos, Revision 1.1.1.1
1.1 etheisen 1: # Makefile for less.
2: # MS-DOS version
3:
4: #### Start of system configuration section. ####
5:
6: CC = cl
7: LIBDIR = \msc6.0\lib
8:
9: CFLAGS = -O /Alfw
10: LDFLAGS = -O
11: LIBS = ${LIBDIR}\llibce.lib ${LIBDIR}\graphics.lib
12:
13: #### End of system configuration section. ####
14:
15: # This rule allows us to supply the necessary -D options
16: # in addition to whatever the user asks for.
17: .c.obj:
18: ${CC} -c -I. ${CPPFLAGS} ${CFLAGS} $<
19:
20: SRC = main.c doscreen.c brac.c ch.c charset.c cmdbuf.c command.c \
21: decode.c edit.c filename.c forwback.c help.c ifile.c \
22: input.c jump.c line.c linenum.c lsystem.c \
23: mark.c optfunc.c option.c opttbl.c os.c output.c \
24: position.c prompt.c search.c signal.c tags.c \
25: ttyin.c version.c
26: OBJ = main.obj doscreen.obj brac.obj ch.obj charset.obj cmdbuf.obj command.obj \
27: decode.obj edit.obj filename.obj forwback.obj help.obj ifile.obj \
28: input.obj jump.obj line.obj linenum.obj lsystem.obj \
29: mark.obj optfunc.obj option.obj opttbl.obj os.obj output.obj \
30: position.obj prompt.obj search.obj signal.obj tags.obj \
31: ttyin.obj version.obj
32:
33: all: less lesskey
34:
35: # This is really horrible, but the command line is too long for
36: # MS-DOS if we try to link $(OBJ).
37: less: $(OBJ)
38: -del lesskey.obj
39: $(CC) $(LDFLAGS) -o $@ *.obj $(LIBS)
40:
41: lesskey: lesskey.obj version.obj
42: $(CC) $(LDFLAGS) -o $@ lesskey.obj version.obj $(LIBS)
43:
44: defines.h: defines.dos
45: -del defines.h
46: -copy defines.dos defines.h
47:
48: $(OBJ): less.h defines.h
49:
50: clean:
51: -del *.obj
52: -del less.exe
53: -del lesskey.exe
54: