1 ###############################################################################
2 # NeXT Makefile.postamble
3 # Copyright 1996, NeXT Software, Inc.
5 # This Makefile is used for configuring the standard app makefiles associated
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.
14 ###############################################################################
16 # Here are the variables exported by the common "app" makefiles that can be
17 # used in any customizations you make to the template below:
19 # PRODUCT_ROOT - Name of the directory to which resources are copied.
20 # OFILE_DIR - Directory into which .o object files are generated.
21 # (Note that this name is calculated based on the target
22 # architectures specified in Project Builder).
23 # DERIVED_SRC_DIR - Directory used for all other derived files
24 # ALL_CFLAGS - All the flags passed to the cc(1) driver for compilations
26 # NAME - name of application, bundle, subproject, palette, etc.
27 # LANGUAGE - langage in which the project is written (default "English")
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 project (NS3.X = 1.1, NS4.0 = 2.0)
31 # ICONSECTIONS - Specifies icon sections when linking executable
33 # CLASSES - Class implementation files in project.
34 # HFILES - Header files in project.
35 # MFILES - Other Objective-C source files in project.
36 # CFILES - Other C source files in project.
37 # PSWFILES - .psw files in the project
38 # PSWMFILES - .pswm files in the project
39 # SUBPROJECTS - Subprojects of this project
40 # BUNDLES - Bundle subprojects of this project
41 # OTHERSRCS - Other miscellaneous sources of this project
42 # OTHERLINKED - Source files not matching a standard source extention
44 # LIBS - Libraries to link with when making app target
45 # DEBUG_LIBS - Libraries to link with when making debug target
46 # PROF_LIBS - Libraries to link with when making profile target
47 # OTHERLINKEDOFILES - Other relocatable files to (always) link in.
49 # APP_MAKEFILE_DIR - Directory in which to find generic set of Makefiles
50 # MAKEFILEDIR - Directory in which to find $(MAKEFILE)
51 # MAKEFILE - Top level mechanism Makefile (e.g., app.make, bundle.make)
52 # INSTALLDIR - Directory app will be installed into by 'install' target
54 ###############################################################################
57 # Change defaults assumed by the standard 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).
61 # Versioning of frameworks, libraries, bundles, and palettes:
62 #CURRENTLY_ACTIVE_VERSION = YES
63 # Set to "NO" to produce a compatibility binary
64 #DEPLOY_WITH_VERSION_NAME = A
65 # This should be incremented as your API changes.
66 #COMPATIBILITY_PROJECT_VERSION = 1
67 # This should be incremented as your API grows.
68 #CURRENT_PROJECT_VERSION = 1
69 # Defaults to using the "vers_string" hack.
71 # Some compiler flags can be easily overridden here, but onlytake effect at
73 #OPTIMIZATION_CFLAG = -O
74 #DEBUG_SYMBOLS_CFLAG = -g
75 #WARNING_CFLAGS = -Wmost
76 #DEBUG_BUILD_CFLAGS = -DDEBUG
77 #PROFILE_BUILD_CFLAGS = -pg -DPROFILE
79 # This definition will suppress stripping of debug symbols when an executable
80 # is installed. By default it is YES.
81 # STRIP_ON_INSTALL = NO
83 # Flags passed to yacc
86 # Library and Framework projects only:
87 # 1. If you want something other than the default .dylib name, override it here
88 #DYLIB_INSTALL_NAME = lib$(NAME).dylib
90 # 2. If you want to change the -install_name flag from the absolute path to the development area, change it here. One good choice is the installation directory. Another one might be none at all.
91 #DYLIB_INSTALL_DIR = $(INSTALLDIR)
93 # Ownership and permissions of files installed by 'install' target
94 #INSTALL_AS_USER = root
95 # User/group ownership
96 #INSTALL_AS_GROUP = wheel
97 # (probably want to set both of these)
98 #INSTALL_PERMISSIONS =
99 # If set, 'install' chmod's executable to this
101 # Options to strip for various project types. Note: -S strips debugging symbols
102 # (executables can be stripped down further with -x or, if they load no bundles, with no
105 #TOOL_STRIP_OPTS = -S
106 #LIBRARY_STRIP_OPTS = -S
108 #DYNAMIC_STRIP_OPTS = -S
109 # for bundles and shared libraries
111 #########################################################################
112 # Put rules to extend the behavior of the standard Makefiles here. "Official"
113 # user-defined rules are:
116 # * after_installhdrs
117 # You should avoid redefining things like "install" or "app", as they are
118 # owned by the top-level Makefile API and no context has been set up for where
119 # derived files should go.
121 # Note: on MS Windows, executables, have an extension, so rules and dependencies
122 # for generated tools should use $(EXECUTABLE_EXT) on the end.
124 # Don't use IMPLICIT_SOURCE_FILES since that will get the CVS directory
125 # too. Instead, list the files in that directory in the OTHERSRCS line
126 #IMPLICIT_SOURCE_FILES += nvram
129 SHAREDIR = /usr/share
130 MANDIR = $(SHAREDIR)/man/man8
134 $(MKDIRS) $(DSTROOT)$(MANDIR)
135 $(CP) -f $(MANPAGE) $(DSTROOT)$(MANDIR)/$(MANPAGE)
136 $(CHMOD) og-w $(DSTROOT)$(MANDIR)/$(MANPAGE)
137 $(MV) $(DSTROOT)/usr/sbin/nvram $(DSTROOT)/usr/sbin/nvram.tmp
138 lipo -thin ppc -output $(DSTROOT)/usr/sbin/nvram $(DSTROOT)/usr/sbin/nvram.tmp
139 $(RM) -f $(DSTROOT)/usr/sbin/nvram.tmp