]> git.saurik.com Git - apple/system_cmds.git/blame - dp_notify_lib/Makefile.postamble
system_cmds-258.tar.gz
[apple/system_cmds.git] / dp_notify_lib / Makefile.postamble
CommitLineData
1815bff5
A
1###############################################################################
2# Makefile.postamble
3# Copyright 1997, Apple Computer, Inc.
4#
5# Use this makefile, which is imported after all other makefiles, to
6# override attributes for a project's Makefile environment. This allows you
7# to take advantage of the environment set up by the other Makefiles.
8# You can also define custom rules at the end of this file.
9#
10###############################################################################
11#
12# These variables are exported by the standard makefiles and can be
13# used in any customizations you make. They are *outputs* of
14# the Makefiles and should be used, not set.
15#
16# PRODUCTS: products to install. All of these products will be placed in
17# the directory $(DSTROOT)$(INSTALLDIR)
18# GLOBAL_RESOURCE_DIR: The directory to which resources are copied.
19# LOCAL_RESOURCE_DIR: The directory to which localized resources are copied.
20# OFILE_DIR: Directory into which .o object files are generated.
21# DERIVED_SRC_DIR: Directory used for all other derived files
22#
23# ALL_CFLAGS: flags to pass when compiling .c files
24# ALL_MFLAGS: flags to pass when compiling .m files
25# ALL_CCFLAGS: flags to pass when compiling .cc, .cxx, and .C files
26# ALL_MMFLAGS: flags to pass when compiling .mm, .mxx, and .M files
27# ALL_PRECOMPFLAGS: flags to pass when precompiling .h files
28# ALL_LDFLAGS: flags to pass when linking object files
29# ALL_LIBTOOL_FLAGS: flags to pass when libtooling object files
30# ALL_PSWFLAGS: flags to pass when processing .psw and .pswm (pswrap) files
31# ALL_RPCFLAGS: flags to pass when processing .rpc (rpcgen) files
32# ALL_YFLAGS: flags to pass when processing .y (yacc) files
33# ALL_LFLAGS: flags to pass when processing .l (lex) files
34#
35# NAME: name of application, bundle, subproject, palette, etc.
36# LANGUAGES: langages in which the project is written (default "English")
37# English_RESOURCES: localized resources (e.g. nib's, images) of project
38# GLOBAL_RESOURCES: non-localized resources of project
39#
40# SRCROOT: base directory in which to place the new source files
41# SRCPATH: relative path from SRCROOT to present subdirectory
42#
43# INSTALLDIR: Directory the product will be installed into by 'install' target
44# PUBLIC_HDR_INSTALLDIR: where to install public headers. Don't forget
45# to prefix this with DSTROOT when you use it.
46# PRIVATE_HDR_INSTALLDIR: where to install private headers. Don't forget
47# to prefix this with DSTROOT when you use it.
48#
49# EXECUTABLE_EXT: Executable extension for the platform (i.e. .exe on Windows)
50#
51###############################################################################
52
53# Some compiler flags can be overridden here for certain build situations.
54#
55# WARNING_CFLAGS: flag used to set warning level (defaults to -Wmost)
56# DEBUG_SYMBOLS_CFLAGS: debug-symbol flag passed to all builds (defaults
57# to -g)
58# DEBUG_BUILD_CFLAGS: flags passed during debug builds (defaults to -DDEBUG)
59# OPTIMIZE_BUILD_CFLAGS: flags passed during optimized builds (defaults
60# to -O)
61# PROFILE_BUILD_CFLAGS: flags passed during profile builds (defaults
62# to -pg -DPROFILE)
63# LOCAL_DIR_INCLUDE_DIRECTIVE: flag used to add current directory to
64# the include path (defaults to -I.)
65# DEBUG_BUILD_LDFLAGS, OPTIMIZE_BUILD_LDFLAGS, PROFILE_BUILD_LDFLAGS: flags
66# passed to ld/libtool (defaults to nothing)
67
68
69# Library and Framework projects only:
70# INSTALL_NAME_DIRECTIVE: This directive ensures that executables linked
71# against the framework will run against the correct version even if
72# the current version of the framework changes. You may override this
73# to "" as an alternative to using the DYLD_LIBRARY_PATH during your
74# development cycle, but be sure to restore it before installing.
75
76
77# Ownership and permissions of files installed by 'install' target
78
79#INSTALL_AS_USER = root
80 # User/group ownership
81#INSTALL_AS_GROUP = wheel
82 # (probably want to set both of these)
83#INSTALL_PERMISSIONS =
84 # If set, 'install' chmod's executable to this
85
86
87# Options to strip. Note: -S strips debugging symbols (executables can be stripped
88# down further with -x or, if they load no bundles, with no options at all).
89
90#STRIPFLAGS = -S
91
92INSTALLDIR = /usr/local/lib
93
94#########################################################################
95# Put rules to extend the behavior of the standard Makefiles here. Include them in
96# the dependency tree via cvariables like AFTER_INSTALL in the Makefile.preamble.
97#
98# You should avoid redefining things like "install" or "app", as they are
99# owned by the top-level Makefile API and no context has been set up for where
100# derived files should go.
101#
20e66415 102MIGFLAGS = -no-cpp-precomp -R -untyped -DNO_DIRECT_RPC -I$(SRCROOT)
1815bff5
A
103MIG = $(NEXT_ROOT)/usr/bin/mig
104
105backing_store_alerts_server.c: \
106 backing_store_alerts.defs
107 ${MKDIRS} \
108 ${DSTROOT}${PUBLIC_HDR_INSTALLDIR}${PUBLIC_HEADER_DIR_SUFFIX};
109 cp backing_store_alerts.defs $(SYM_DIR);
110 cd $(SYM_DIR) && \
111 $(MIG) $(MIGFLAGS) -user /dev/null -server \
112 backing_store_alerts_server.c -sheader backing_store_alerts_server.h \
113 backing_store_alerts.defs
114
115backing_store_triggers.c: \
116 backing_store_triggers.defs
117 cp backing_store_triggers.defs $(SYM_DIR);
118 cd $(SYM_DIR) && \
119 $(MIG) $(MIGFLAGS) -user backing_store_triggers.c -server /dev/null -header backing_store_triggers.h backing_store_triggers.defs
120
121backing_store_alerts_server.h: backing_store_alerts_server.c
122
123backing_store_triggers.h: backing_store_triggers.c
124
125static:
126 $(SILENT) unset $(CUMULATIVE_VARIABLES) ||: ; \
127 $(MAKE) BUILD_TYPE=$@ BUILD_TYPE_SUFFIX=$(STATIC_SUFFIX)
128
129copy_dstroot:
130 ${CP} $(SYM_DIR)/backing_store_triggers.h $(DSTROOT)${PUBLIC_HDR_INSTALLDIR}${PUBLIC_HEADER_DIR_SUFFIX}
131 ${CP} $(SYM_DIR)/backing_store_alerts_server.h $(DSTROOT)${PUBLIC_HDR_INSTALLDIR}${PUBLIC_HEADER_DIR_SUFFIX}
132 ${CHMOD} 444 $(DSTROOT)${PUBLIC_HDR_INSTALLDIR}${PUBLIC_HEADER_DIR_SUFFIX}/backing_store_triggers.h
133 ${CHMOD} 444 $(DSTROOT)${PUBLIC_HDR_INSTALLDIR}${PUBLIC_HEADER_DIR_SUFFIX}/backing_store_alerts_server.h