Makefile.dsu revision 195941
1# Makefile for less. 2# MS-DOS version 3 4#### Start of system configuration section. #### 5 6CC = cl 7# Change the following directories to match your installation. 8LIBDIR = c:\msvc\lib 9INCDIR = c:\msvc\include 10 11# CFLAGS are compile-time options and LDFLAGS are link-time options. They are 12# customized for MSVC 1.0 (MSC 8.0). If you have a different version of the 13# compiler, you may need to change some of the options to their equivalents. 14# -Ot optimize for speed 15# -AL large memory model 16# -Za ANSI C conformance 17# -nologo suppress MSVC banners 18# -onerror:noexe no .EXE file if link errors occur 19CFLAGS = -Ot -AL -Za -nologo 20LDFLAGS = -onerror:noexe -nologo 21LIBS = $(LIBDIR)\llibce.lib $(LIBDIR)\graphics.lib 22 23#### End of system configuration section. #### 24 25# This rule allows us to supply the necessary -D options 26# in addition to whatever the user asks for. 27.c.obj: 28 $(CC) -c -I. -I$(INCDIR) $(CPPFLAGS) $(CFLAGS) $< 29 30OBJ = \ 31 main.obj screen.obj brac.obj ch.obj charset.obj cmdbuf.obj \ 32 command.obj cvt.obj decode.obj edit.obj filename.obj forwback.obj \ 33 help.obj ifile.obj input.obj jump.obj line.obj linenum.obj \ 34 lsystem.obj mark.obj optfunc.obj option.obj opttbl.obj os.obj \ 35 output.obj pattern.obj position.obj prompt.obj search.obj signal.obj \ 36 tags.obj ttyin.obj version.obj 37 38all: less lesskey 39 40# This is really horrible, but the command line is too long for 41# MS-DOS if we try to link $(OBJ). 42less: $(OBJ) 43 -if exist lesskey.obj del lesskey.obj 44 $(CC) $(LDFLAGS) -o $@ *.obj $(LIBS) 45 46lesskey: lesskey.obj version.obj 47 $(CC) $(LDFLAGS) -o $@ lesskey.obj version.obj $(LIBS) 48 49defines.h: defines.ds 50 -del defines.h 51 -copy defines.ds defines.h 52 53$(OBJ): less.h defines.h 54 55clean: 56 -del *.obj 57 -del less.exe 58 -del lesskey.exe 59 60