home *** CD-ROM | disk | FTP | other *** search
/ back2roots/padua / padua.7z / padua / lang / perl4.035.V010.lzh / perl4.035 / cscript / Makefile < prev    next >
Encoding:
Makefile  |  1992-09-19  |  3.3 KB  |  116 lines

  1. #
  2. # Amiga GCC 2.1 Configured Makefile
  3. #
  4. #
  5. #    DEST        ---    destination directory
  6. #    EXTHDRS        ---    headers external to the cwd
  7. #    HDRS        ---    headers which reside in the cwd
  8. #    INCLUDES    ---    Include directory (ies) for files.
  9. #    CDEFS        ---    Various C definitions.
  10. #    CFLAGS        ---    cflags for compilation
  11. #    LIBS        ---    (local) libraries for additional routines
  12. #    EXTLIBS        ---    (external) libraries for additional routines
  13. #    LINKER        ---    linker (typically c)
  14. #    LINTFLAGS    ---    lint flags (if any)
  15. #    MAKEFILE    ---    the name of this makefile (used by mkmf)
  16. #    OBJS        ---    objects made from programs in the cwd
  17. #    EXTOBJS        ---    objects made from programs not in the cwd
  18. #    PRINT        ---    print facility to print out sources, etc.
  19. #    PROGRAM        ---    the final program name
  20. #    SRCS        ---    the sources which reside in the cwd
  21. #    CSHS        ---    csh scripts
  22. #    MANS        ---    manual pages
  23. #    JUNKS        ---    junk programs which may be removed
  24. #    OWNER        ---    the owner's name for installation purposes
  25.  
  26. DEST          =
  27. EXTHDRS          = 
  28. HDRS          = 
  29. INCLUDES      =    
  30. MC030DEFS     = -Dmc68020 -m68020 -m68881
  31. CDEFS          = -O2
  32. DEBUG         =
  33. CFLAGS          = $(INCLUDES) $(CDEFS) $(DEBUG)
  34. YFLAGS        = -d
  35. LIBS          =    
  36. EXTLIBS          =    
  37. LIBFLAGS      =
  38. CC            =    gcc
  39. LINKER          = gcc
  40. LINTFLAGS     =    $(INCLUDES) $(CDEFS) 
  41. MAKEFILE      = Makefile
  42. OBJS          = cscript.o
  43. EXTOBJS          =    
  44. PRINT          = printfiles
  45. PROGRAM          = cscript
  46. SRCS          = cscript.c cprogram.h macros.h
  47. CSHS          =    
  48. MANS          =    
  49. DOCS          =
  50. JUNKS          =    $(PROGRAM) 
  51. DISTRIB       = $(PROGRAM) 
  52.  
  53. #    Standard Targets 
  54. #    -------- -------
  55. #
  56. #    all:        ---  equivalent to ``make program''
  57. #    <program>    ---  make the entire program; <program> == name
  58. #    clean:        ---  remove all re-makeable files and junks
  59. #    depend:        ---  update the dependency list.
  60. #    diff:        ---  find diffs between latest and present versions
  61. #    index:        ---  list all procedures/#defines (result on stdout)
  62. #    install:    ---  install the final result in the destination dir
  63. #    lint:        ---  lint the files (result on stdout)
  64. #    print:        ---  print the sources (result on stdout)
  65. #    program:    ---  equivalent to make <program>
  66. #    tags:        ---  create a tags file for use with gnu
  67. #    update:        ---  makes and installs program (if out of date)
  68. #    <dest/program>    ---  equivalent to make update
  69. #       archive:        ---  makes an Lha archive of all files in DISTRIB
  70. #       version:    ---  updates version number and date.
  71. #
  72. #    make install installs the result in the destination directory;
  73. #    make update checks that the result in the destination directory is
  74. #    up to date.
  75. #
  76.  
  77. all:        $(PROGRAM)
  78.  
  79. $(PROGRAM):     $(OBJS) $(LIBS) $(EXTOBJS)
  80.         @echo "Loading $(PROGRAM) ... "
  81.         @$(LINKER) $(CFLAGS) $(OBJS) $(EXTOBJS) $(LIBS) $(EXTLIBS) -o $(PROGRAM) $(LIBFLAGS)
  82.         @echo "done"
  83.  
  84. clean:;        @delete $(OBJS) $(JUNKS) FORCE
  85.  
  86. diff:;        @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
  87.  
  88. index:;        @ctags -wx $(HDRS) $(SRCS)
  89.  
  90. install:    $(PROGRAM)
  91.         @echo Installing $(PROGRAM) in $(DEST)
  92.         @copy $(PROGRAM) $(DEST)
  93.  
  94. lint:;        $(CC) $(CFLAGS) -c -Wall -pedantic $(SRCS)
  95.  
  96. print:;        @$(PRINT) $(HDRS) $(SRCS)
  97.  
  98. program:        $(PROGRAM)
  99.  
  100. tags:           $(HDRS) $(SRCS); @etags -t $(HDRS) $(SRCS)
  101.  
  102. update:        $(DEST)/$(PROGRAM)
  103.  
  104. archive:    $(DISTRIB)
  105.         @lha -x a $(PROGRAM).lha $(DISTRIB)
  106.  
  107.  
  108. $(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
  109.         @make -f $(MAKEFILE) DEST=$(DEST) install clean
  110.  
  111. depend:
  112.     $(CC) -MM $(SRCS) >>Makefile
  113.  
  114. ## Auto generated dependencies will appear below.
  115.  
  116.