home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / less2912.zip / makefile.dos < prev    next >
Makefile  |  1995-11-09  |  2KB  |  55 lines

  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.exe lesskey.exe
  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.exe: $(OBJ)
  38.     -ren lesskey.obj lesskey.obo
  39.     $(CC) $(LDFLAGS) -o $@ *.obj $(LIBS)
  40.     -ren lesskey.obo lesskey.obj
  41.  
  42. lesskey.exe: lesskey.obj version.obj
  43.     $(CC) $(LDFLAGS) -o $@ lesskey.obj version.obj $(LIBS)
  44.  
  45. defines.h: defines.dos
  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.  
  55.