home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / less3292.zip / Makefile.wnm < prev    next >
Makefile  |  1996-08-22  |  1KB  |  50 lines

  1. # Makefile for less.
  2. # Windows 32 Visual C++ version
  3.  
  4. #### Start of system configuration section. ####
  5.  
  6. CC = cl
  7.  
  8. CFLAGS = /ML /W3 /GX /O2 /I "." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /c
  9. LDFLAGS = /subsystem:console /incremental:no /machine:I386
  10. LD = link
  11. LIBS = user32.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) $(CFLAGS) $<
  19.  
  20. OBJ =   main.obj screen.obj brac.obj ch.obj charset.obj cmdbuf.obj command.obj \
  21.     decode.obj edit.obj filename.obj forwback.obj help.obj ifile.obj \
  22.     input.obj jump.obj line.obj linenum.obj lsystem.obj \
  23.     mark.obj optfunc.obj option.obj opttbl.obj os.obj output.obj \
  24.     position.obj prompt.obj search.obj signal.obj tags.obj \
  25.     ttyin.obj version.obj regexp.obj
  26.  
  27. all: less.exe lesskey.exe
  28.  
  29. # This is really horrible, but the command line is too long for 
  30. # MS-DOS if we try to link ${OBJ}.
  31. less.exe: $(OBJ)
  32.     -del lesskey.obj
  33.     $(LD) $(LDFLAGS) *.obj $(LIBS) /out:$@
  34.  
  35. lesskey.exe: lesskey.obj version.obj
  36.     $(LD) $(LDFLAGS) lesskey.obj version.obj $(LIBS) /out:$@
  37.  
  38. defines.h: defines.wn
  39.     -del defines.h
  40.     -copy defines.wn defines.h
  41.  
  42. $(OBJ): less.h defines.h funcs.h cmd.h
  43.  
  44. clean:
  45.     -del *.obj 
  46.     -del less.exe
  47.     -del lesskey.exe
  48.  
  49.  
  50.