home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / online / source / c / compilers / sed-2.03.sit.hqx / sed-2.03 / Makefile < prev    next >
Makefile  |  1994-01-19  |  2KB  |  84 lines

  1. # File:        Makefile
  2. # Target:    sed
  3. # Sources:    sed.c utils.c rx.c getopt.c getopt1.c sed.r
  4. # Created:    Fri, Feb 5, 1993 2:15 PM
  5. # Author:    Franklin Chen
  6.  
  7. # GNU sed
  8. # Wed, Jan 19, 1994    Version 2.03
  9.  
  10. #### Start of system configuration section. ####
  11.  
  12. C = gC
  13.  
  14. # Things you might add to DEFS:
  15. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  16. # -DUSG            If you have System V/ANSI C string
  17. #            and memory functions and headers.
  18. # -D__CHAR_UNSIGNED__    If type `char' is unsigned.
  19. #            gcc defines this automatically.
  20. # -DNO_VFPRINTF        If you lack vprintf function (but have _doprnt).
  21.  
  22. DEFS = ∂
  23.     -d MPW ∂
  24. #    -d __STDC__ ∂
  25. #    -d HAVE_ALLOCA_H ∂
  26.     -d HAVE_STRING_H    # for sed.c ∂
  27.     -d STDC_HEADERS ∂
  28.     -d USG ∂
  29.     -d HAVE_MEMCPY # sed.c ∂
  30.     -d HAVE_VPRINTF # utils.c
  31.  
  32. COptions = ∂
  33.     -mc68020 ∂
  34.     -warnings full ∂
  35.     -opt full ∂
  36. #    -finline-functions ∂
  37.     -fomit-frame-pointer ∂
  38.     -fstrength-reduce
  39.  
  40. LOptions = -d -c 'MPS ' -t MPST
  41. extra_objs =
  42.  
  43. LIBS =    "{CLibraries}"StdClib.o ∂
  44.     "{Libraries}"Stubs.o ∂
  45.     "{Libraries}"Runtime.o ∂
  46.     "{Libraries}"Interface.o ∂
  47.     "{Libraries}"ToolLibs.o
  48.  
  49. # Where to install the executable.
  50. bindir = "{MPW}Tools:"
  51.  
  52. #### End of system configuration section. ####
  53.  
  54. objs = sed.c.o utils.c.o rx.c.o getopt.c.o getopt1.c.o
  55. srcs = sed.c utils.c rx.c getopt.c getopt1.c alloca.c
  56.  
  57. all_objs = {objs} {extra_objs}
  58. all ƒ    sed
  59.  
  60. .c.o ƒ .c
  61.     {C} {DEFS} {COptions} -s {default} {depDir}{default}.c -o {targDir}{default}.c.o 
  62.  
  63. sed ƒƒ    {all_objs}
  64.     Link {LOptions} {all_objs} {LIBS} ∂
  65.         -sg Main=sed,utils,getopt,getopt1 ∂
  66.         -sn Rx=rx ∂
  67.         -o sed
  68. sed ƒƒ sed.r
  69.     Rez sed.r -append -o sed
  70.  
  71. sed.c.o rx.c.o ƒ rx.h
  72. sed.c.o getopt1.c.o ƒ getopt.h
  73.  
  74. install ƒ    all install_already_built
  75.  
  76. install_already_built ƒ
  77.     Duplicate -y sed "{bindir}"
  78.     Duplicate -y sed.Help "{MPW}"sed.Help
  79.  
  80. clean ƒ
  81.     Delete -i sed ≈.c.o ≈.makeout
  82.  
  83. alloca.o ƒ alloca.c
  84.