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

  1. # Makefile for less.
  2. # Windows version
  3.  
  4. #### Start of system configuration section. ####
  5.  
  6. CC = bcc32
  7. LIBDIR = d:\bc45\lib
  8.  
  9. CFLAGS = -O2 -w-pro -TWC -P-c -v- -d -f- -ff- -vi
  10. LDFLAGS = /Tpe /v- /ap /c /x
  11. LD = tlink32
  12. LIBS = ${LIBDIR}\import32.lib ${LIBDIR}\cw32.lib
  13.  
  14. #### End of system configuration section. ####
  15.  
  16. # This rule allows us to supply the necessary -D options
  17. # in addition to whatever the user asks for.
  18. .c.obj:
  19.     ${CC} -c -I. ${CPPFLAGS} ${CFLAGS} $<
  20.  
  21. OBJ =    main.obj screen.obj brac.obj ch.obj charset.obj cmdbuf.obj command.obj \
  22.     decode.obj edit.obj filename.obj forwback.obj help.obj ifile.obj \
  23.     input.obj jump.obj line.obj linenum.obj lsystem.obj \
  24.     mark.obj optfunc.obj option.obj opttbl.obj os.obj output.obj \
  25.     position.obj prompt.obj search.obj signal.obj tags.obj \
  26.     ttyin.obj version.obj regexp.obj
  27.  
  28. all: less lesskey
  29.  
  30. # This is really horrible, but the command line is too long for 
  31. # MS-DOS if we try to link ${OBJ}.
  32. less: ${OBJ}
  33.     -del lesskey.obj
  34.     ${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj *.obj, $@,,${LIBS}
  35.  
  36. lesskey: lesskey.obj version.obj
  37.     ${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj lesskey.obj version.obj, $@,,${LIBS}
  38.  
  39. defines.h: defines.wn
  40.     -del defines.h
  41.     -copy defines.wn defines.h
  42.  
  43. ${OBJ}: less.h defines.h funcs.h cmd.h
  44.  
  45. clean:
  46.     -del *.obj 
  47.     -del less.exe
  48.     -del lesskey.exe
  49.  
  50.