home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / MiscKit / Makefiles / lib / Makefile.lib.template < prev    next >
Encoding:
Makefile  |  1994-01-06  |  3.7 KB  |  120 lines

  1. # Makefile.lib.template
  2. #
  3. # by Mike Ferris
  4. # Part of MOKit
  5. # Copyright 1993, all rights reserved
  6. #
  7. # Used in the MiscKit by permission.
  8. #
  9. # This is based on Next's standard library make architecture
  10.  
  11. # This file is the template for the library makefile machinery.
  12. # Copy this file into your project directory as Makefile and fill in the
  13. # blanks
  14.  
  15. # directory where included Makefiles are located.
  16. MAKE_DIR = /LocalDeveloper/Makefiles/lib
  17.  
  18. # other directories to check for files (colon-separated and start the
  19. # list with a colon
  20. OTHER_VPATH = 
  21.  
  22. #  **1**  -LIBRARY NAME-
  23. #  The base name of the library goes here.  For example, if
  24. #  you enter "appkit" as the name, then the library created will 
  25. # be "libappkit.a".
  26. NAME = 
  27. DSTROOT = 
  28.  
  29. #  **2**  -SOURCE FILES-
  30. #  Here list the .m, .c, .psw, .pswm, .s, .l, .lm, .y, .ym, .ps and
  31. #  .spec files.  You may delete any lines that you don't use.
  32. #  OTHER_SRCS is used for files with other suffixes that you wish
  33. #  to be treated like source (i.e., printed with the source, copied
  34. #  with the source, etc.).  For files in OTHER_SRCS, you need to
  35. #  specify the corresponding .o file in OTHER_SRCS_OFILES.
  36. MFILES = 
  37. CFILES = 
  38. PSWFILES = 
  39. PSWMFILES = 
  40. SFILES = 
  41. LFILES = 
  42. LMFILES = 
  43. YFILES = 
  44. YMFILES = 
  45. PSFILES = 
  46. OTHER_SRCS = 
  47. OTHER_SRCS_OFILES =
  48.  
  49. #  **3**  -COMMAND OPTIONS-
  50. #  These are passed as arguments to the Objective-C compiler, pswrap, 
  51. #  as, lex, yacc.  You may delete lines that you don't use.  
  52. #  All CFLAGS also get passed to Objective-C.
  53. #    DEBUGCFLAGS is substituted for CFLAGS when "debug" is made.
  54. #    PROFCFLAGS is substituted for CFLAGS when "profile" is made.
  55. #  Under OBJCFLAGS, for each library that you use that supplies class
  56. #  and message group files, you must use a -I$(OBJDIR)/XXX, where
  57. #  XXX is the base name of the library.
  58. OBJCFLAGS = 
  59.  
  60. OPTCFLAGS = -O
  61. DEBUGCFLAGS = -g -DDEBUG -Wall
  62. PROFCFLAGS = -pg -g
  63.  
  64. PSWFLAGS = 
  65. ASFLAGS = 
  66. LFLAGS = 
  67. YFLAGS = 
  68.  
  69. MVFLAGS = 
  70. MKDIRSFLAGS = -m 755
  71. IFLAGS = -q -c  -m 444 -o root -g wheel
  72. ARFLAGS = ruv
  73. RANLIBFLAGS = 
  74.  
  75. #  **4**  -INCLUDE FILES-
  76. #  Private include files are used by the library's code, but not needed
  77. #  by the library's users.  Public include files are needed by others who
  78. #  will use the library, and must be installed along with the library.
  79. PUBLIC_INCFILES = 
  80. PRIVATE_INCFILES = 
  81.  
  82. #  **5**  -BY_PRODUCTS GENERATED FROM BUILDS-
  83. #  If your build procedure creates any files other than .o files and the
  84. #  .c and .m files left over from pswrap, you should list them here so
  85. #  they are removed when a make clean is done.
  86. BY_PRODUCTS = 
  87.  
  88. #  **6**  -INSTALLATION LOCATIONS-
  89. #  The following directories determines where files get installed.
  90. # places where libraries get installed
  91. LIBDIR = $(DSTROOT)/LocalDeveloper/lib
  92.  
  93. # places where headers get installed
  94. INCDIR = $(DSTROOT)/LocalDeveloper/Headers/$(NAME)
  95.  
  96. # place where PostScript package files get installed
  97. PSLIBDIR = $(DSTROOT)/LocalDeveloper/lib/$(NAME)
  98.  
  99. #this file included for standard functionality
  100. include $(MAKE_DIR)/Makefile.lib
  101.  
  102. #  **7**  -ALL AND INSTALL TARGETS-
  103. #  You must define your ownb all and install targets here.  "all" should
  104. #  build all products of your project.  "install" should install these
  105. #  products in the filesystem whose root is $(DSTROOT).  There are certain
  106. #  targets defined in Makefile.lib which you can use to fulfill the all
  107. #  and install targets.  These are optimized, debug, profile, shlib,
  108. #  optimized_install, debug_install, profile_install, shlib_install,
  109. #  and common_install.
  110. all:: optimized
  111.  
  112. install:: common_install optimized_install
  113.  
  114.  
  115. # You may comment in this line to get dependencies for the include files
  116. # you use.  To generate the dependencies, do a "make depend".
  117. #include Makefile.depends
  118.  
  119. #  any extra rules or dependencies can be added after this line
  120.