home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Connectivity / GateKeeper-2.1 / Makefile.postamble < prev    next >
Encoding:
Makefile  |  1997-07-02  |  5.6 KB  |  144 lines

  1. ###############################################################################
  2. #  NeXT Makefile.postamble Template
  3. #  Copyright 1993, NeXT Computer, Inc.
  4. #
  5. #  This Makefile is used for configuring the standard app makefiles associated
  6. #  with ProjectBuilder.  
  7. #  
  8. #  Use this template to set attributes for a project, sub-project, bundle, or
  9. #  palette.  Each node in the project's tree of sub-projects and bundles 
  10. #  should have it's own Makefile.preamble and Makefile.postamble.  Additional
  11. #  rules (e.g., after_install) that are defined by the developer should be
  12. #  defined in this file.
  13. #
  14. ###############################################################################
  15. # Here are the variables exported by the common "app" makefiles that can be 
  16. # used in any customizations you make to the template below:
  17. #    PRODUCT_ROOT - Name of top-level app-wrapper (e.g., Webster.app)
  18. #    OFILE_DIR - Directory into which .o object files are generated.
  19. #            (Note that this name is calculated based on the target 
  20. #             architectures specified in Project Builder).
  21. #    DERIVED_SRC_DIR - Directory used for all other derived files
  22. #    ALL_CFLAGS - All the flags passed to the cc(1) driver for compilations
  23. #
  24. #    NAME - name of application, bundle, subproject, palette, etc.
  25. #    LANGUAGE - langage in which the project is written (default "English")
  26. #    ENGLISH - boolean flag set iff $(LANGUAGE) = "English"
  27. #    JAPANESE - boolean flag set iff $(LANGUAGE) = "Japanese"
  28. #    LOCAL_RESOURCES - localized resources (e.g. nib's, images) of project
  29. #    GLOBAL_RESOURCES - non-localized resources of project
  30. #    PROJECTVERSION - version of ProjectBuilder that output Makefile
  31. #    APPICON - application icon file
  32. #    DOCICONS - dock icon files
  33. #    ICONSECTIONS - Specifies icon sections when linking executable 
  34. #
  35. #    CLASSES - Class implementation files in project.
  36. #    HFILES - Header files in project.
  37. #    MFILES - Other Objective-C source files in project. 
  38. #    CFILES - Other C source files in project. 
  39. #    PSWFILES - .psw files in the project
  40. #    PSWMFILES - .pswm files in the project
  41. #    SUBPROJECTS - Subprojects of this project
  42. #    BUNDLES - Bundle subprojects of this project
  43. #    OTHERSRCS - Other miscellaneous sources of this project
  44. #    OTHERLINKED - Source files not matching a standard source extention
  45. #
  46. #    LIBS - Libraries to link with when making app target
  47. #    DEBUG_LIBS - Libraries to link with when making debug target
  48. #    PROF_LIBS - Libraries to link with when making profile target
  49. #    OTHERLINKEDOFILES - Other relocatable files to (always) link in.
  50. #
  51. #    APP_MAKEFILE_DIR - Directory in which to find generic set of Makefiles
  52. #    MAKEFILEDIR - Directory in which to find $(MAKEFILE)
  53. #    MAKEFILE - Top level mechanism Makefile (e.g., app.make, bundle.make)
  54. #    INSTALLDIR - Directory app will be installed into by 'install' target
  55.  
  56.  
  57. # Change defaults assumed by the standard app makefiles here.  Edit the 
  58. # following default values as appropriate. (Note that if no Makefile.postamble 
  59. # exists, these values will have defaults set in common.make).
  60.  
  61. # Add Makefile.preamble, Makefile.postamble, and Makefile.dependencies here if
  62. # you would like changes to them to invalidate previous builds.  The project
  63. # depends on $(MAKEFILES) so that changes to Makefiles will trigger a re-build.
  64. #MAKEFILES = Makefile 
  65.  
  66. # Optimization flag passed to compiler:
  67. #OPTIMIZATION_CFLAG = -O
  68.  
  69. # Flags passed to compiler in normal 'app' compiles:
  70. #NORMAL_CFLAGS = -g $(OPTIMIZATION_CFLAG) -Wall
  71.  
  72. # Flags passed to compiler in 'debug' compiles:
  73. #DEBUG_CFLAGS = -g -Wall -DDEBUG
  74.  
  75. # Flags passed to compiler in 'profile' compiles
  76. #PROFILE_CFLAGS = -g -pg $(OPTIMIZATION_CFLAG) -Wall -DPROFILE
  77.  
  78. # Ownership and permissions of files installed by 'install' target
  79. #INSTALL_AS_USER = root        # User to chown app to
  80. #INSTALL_AS_GROUP = wheel      # Group to chgrp app to 
  81. #INSTALL_PERMISSIONS =         # If set, 'install' chmod's executable to this
  82.  
  83. # Options to strip for bundles, apps with bundles, and apps without bundles, 
  84. # respectively.
  85. #RELOCATABLE_STRIP_OPTS = -x -u
  86. #DYLD_APP_STRIP_OPTS = -A -n
  87. #APP_STRIP_OPTS = 
  88. #TOOL_STRIP_OPTS = 
  89. # (Note: APP_STRIP_OPTS and TOOL_STRIP_OPTS default to empty, but
  90. #  developers doing their own dynamic loading should set this to 
  91. #  $(DYLD_APP_STRIP_OPTS)).
  92.  
  93.  
  94. #########################################################################
  95. # Put rules to extend the behavior of the standard Makefiles here.  Typical 
  96. # user-defined rules are before_install and after_install (please don't 
  97. # redefine things like install or app, as they are owned by the top-level 
  98. # Makefile API), which are rules that get invoked before and after the install 
  99. # target runs.  Such rules should be specified with the '::' syntax rather than 
  100. # a single colon.
  101. #
  102. #    Final step is to place things in a package
  103. #
  104.  
  105. project:: 
  106.  
  107.     /bin/rm -rf ./tmpGK
  108.     mkdir ./tmpGK  
  109.     /bin/rm -rf ./GateKeeper.app/German.lproj/Help
  110.  
  111.     cd chat; pwd; $(MAKE); 
  112.     pwd; mv ./chat/chat ./GateKeeper.app/chat            # place chat in app
  113.  
  114.     ./named_setup                                    # insert named if necessary
  115.  
  116.     pwd; strip -A ./GateKeeper.app/GateKeeper            # strip symbols
  117.     pwd; strip -A ./GateKeeper.app/MODEM
  118.     pwd; strip -A ./GateKeeper.app/chat
  119.  
  120.     pwd; mv ./GateKeeper.app ./tmpGK/GateKeeper.app
  121.  
  122.     /NextAdmin/Installer.app/package -f ./tmpGK/GateKeeper.app GateKeeper.info .dir.tiff -d ./
  123.  
  124.     cp ./GateKeeper.pre_install ./GateKeeper.pkg
  125.     cp ./GateKeeper.post_install ./GateKeeper.pkg
  126.     cp ./GateKeeper.post_delete ./GateKeeper.pkg
  127.  
  128.     mkdir ./GateKeeper.pkg/German.lproj
  129.     cp ./German.lproj/GateKeeper.info ./GateKeeper.pkg/German.lproj
  130.  
  131.     mkdir ./GateKeeper.pkg/English.lproj
  132.     mv ./GateKeeper.pkg/GateKeeper.info ./GateKeeper.pkg/English.lproj
  133.  
  134. clean:: 
  135.  
  136.     /bin/rm -rf ./tmpGK
  137.     /bin/rm -rf ./GateKeeper.pkg
  138.  
  139.     cd chat; pwd; $(MAKE) clean; 
  140.  
  141.  
  142.