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

  1. # Makefile for less.
  2. # OS-9 version for Ultra C.
  3.  
  4. #### Start of system configuration section. ####
  5.  
  6. CC = cc
  7. CPPFLAGS =
  8. CFLAGS = -v=.
  9. CFLAGS_COMPILE_ONLY = -eas
  10. LDFLAGS = -olM=24k
  11. LIBS = -ltermlib.l -lsys_clib.l -lunix.l
  12. O = r
  13.  
  14.  
  15. #### End of system configuration section. ####
  16.  
  17. .SUFFIXES: .c .${O}
  18.  
  19. # This rule allows us to supply the necessary -D options
  20. # in addition to whatever the user asks for.
  21. .c.${O}:
  22.     ${CC} ${CFLAGS_COMPILE_ONLY} ${CPPFLAGS} ${CFLAGS} $<
  23.  
  24. OBJ =    main.${O} screen.${O} brac.${O} ch.${O} charset.${O} cmdbuf.${O} \
  25.     command.${O} decode.${O} edit.${O} filename.${O} forwback.${O} \
  26.     help.${O} ifile.${O} input.${O} jump.${O} line.${O} linenum.${O} \
  27.     lsystem.${O} mark.${O} optfunc.${O} option.${O} opttbl.${O} os.${O} \
  28.     output.${O} position.${O} prompt.${O} search.${O} signal.${O} \
  29.     tags.${O} ttyin.${O} version.${O}  regexp.${O}
  30.  
  31. all: less lesskey
  32.  
  33. less: ${OBJ}
  34.     ${CC} ${OBJ} -f=$@ ${LDFLAGS} ${LIBS}
  35.  
  36. lesskey: lesskey.${O} version.${O}
  37.     ${CC} lesskey.${O} version.${O} -f=$@ ${LDFLAGS}
  38.  
  39. ${OBJ}: defines.h less.h
  40.  
  41. defines.h: defines.o9
  42.     copy defines.o9 defines.h -rf
  43.