home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / MiscKit / Source / MiscSwapKit / Makefile next >
Encoding:
Makefile  |  1994-03-08  |  4.8 KB  |  144 lines

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