home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / less373.zip / Makefile.wnm < prev    next >
Makefile  |  2002-01-14  |  1KB  |  56 lines

  1. # Makefile for less.
  2. # Windows 32 Visual C++ version
  3.  
  4. #### Start of system configuration section. ####
  5.  
  6. CC = cl
  7.  
  8. # Normal flags
  9. CFLAGS = /nologo /ML /W3 /GX /O2 /I "." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /c
  10. LDFLAGS = /subsystem:console /incremental:no /machine:I386
  11.  
  12. # Debugging flags
  13. #CFLAGS = /nologo /MDd /W3 /GX /Od /Gm /Zi /I "." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /c
  14. #LDFLAGS = /subsystem:console /incremental:yes /debug /machine:I386
  15.  
  16. LD = link
  17. LIBS = user32.lib
  18.  
  19. #### End of system configuration section. ####
  20.  
  21. # This rule allows us to supply the necessary -D options
  22. # in addition to whatever the user asks for.
  23. .c.obj:
  24.     $(CC) $(CFLAGS) $<
  25.  
  26. OBJ =   main.obj screen.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 regexp.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.     -del lesskey.obj
  39.     $(LD) $(LDFLAGS) *.obj $(LIBS) /out:$@
  40.  
  41. lesskey.exe: lesskey.obj version.obj
  42.     $(LD) $(LDFLAGS) lesskey.obj version.obj $(LIBS) /out:$@
  43.  
  44. defines.h: defines.wn
  45.     -del defines.h
  46.     -copy defines.wn defines.h
  47.  
  48. $(OBJ): less.h defines.h funcs.h cmd.h
  49.  
  50. clean:
  51.     -del *.obj 
  52.     -del less.exe
  53.     -del lesskey.exe
  54.  
  55.  
  56.