equal
deleted
inserted
replaced
27 # Except as contained in this notice, the name of a copyright holder |
27 # Except as contained in this notice, the name of a copyright holder |
28 # shall not be used in advertising or otherwise to promote the sale, use |
28 # shall not be used in advertising or otherwise to promote the sale, use |
29 # or other dealings in this Software without prior written authorization |
29 # or other dealings in this Software without prior written authorization |
30 # of the copyright holder. |
30 # of the copyright holder. |
31 # |
31 # |
32 # @(#)Makefile.init 1.9 09/04/16 |
32 # @(#)Makefile.init 1.10 09/05/15 |
33 # |
33 # |
34 |
34 |
35 # Use ksh93 for shell commands in Makefiles so that builds are the same |
35 # Use ksh93 for shell commands in Makefiles so that builds are the same |
36 # on Nevada (where /bin/sh is still ancient Bourne shell) and Indiana |
36 # on Nevada (where /bin/sh is still ancient Bourne shell) and Indiana |
37 # (where /bin/sh is ksh93) |
37 # (where /bin/sh is ksh93) |
43 # quoted. The only way of generating this is the :sh macro mechanism. Note |
43 # quoted. The only way of generating this is the :sh macro mechanism. Note |
44 # however that in general :sh macros should be avoided in makefiles that are |
44 # however that in general :sh macros should be avoided in makefiles that are |
45 # widely included into other makefiles, as the resulting shell executions can |
45 # widely included into other makefiles, as the resulting shell executions can |
46 # cause a noticable slowdown in build times. |
46 # cause a noticable slowdown in build times. |
47 # |
47 # |
48 POUND_SIGN:sh= echo \\043 |
48 # The extra $(POUND_SIGN) in front keeps us from spending time doing |
|
49 # additional shell executions once it's already defined. (See CR 6589104, |
|
50 # credit to Casper Dik for the idea.) |
|
51 # |
|
52 $(POUND_SIGN)POUND_SIGN:sh= echo \\043 |
49 |
53 |
50 # Set default build target to all |
54 # Set default build target to all |
51 default:: all |
55 default:: all |
52 |
56 |
53 # The infrastructure in the main tree requires Solaris make |
57 # The infrastructure in the main tree requires Solaris make |
99 $(BUILD_DEBUG:yes=) DEBUG_OR_OPT_FLAGS_suncc = $(DEBUG_FLAGS_suncc) |
103 $(BUILD_DEBUG:yes=) DEBUG_OR_OPT_FLAGS_suncc = $(DEBUG_FLAGS_suncc) |
100 $(BUILD_DEBUG:yes=$(POUND_SIGN)) DEBUG_OR_OPT_FLAGS_suncc = $(OPT_FLAGS_suncc) |
104 $(BUILD_DEBUG:yes=$(POUND_SIGN)) DEBUG_OR_OPT_FLAGS_suncc = $(OPT_FLAGS_suncc) |
101 |
105 |
102 CFLAGS_suncc = $(DEBUG_OR_OPT_FLAGS_suncc) -v -mc -xstrconst \ |
106 CFLAGS_suncc = $(DEBUG_OR_OPT_FLAGS_suncc) -v -mc -xstrconst \ |
103 -features=extensions |
107 -features=extensions |
104 CXXFLAGS_suncc = $(DEBUG_OR_OPT_FLAGS_suncc) +w -mc -norunpath \ |
108 CXXFLAGS_suncc = $(DEBUG_OR_OPT_FLAGS_suncc) +w2 -mc -norunpath \ |
105 -features=extensions |
109 -features=extensions |
106 |
110 |
107 ARCH32_FLAGS_sparc_suncc = -m32 -xarch=sparc |
111 ARCH32_FLAGS_sparc_suncc = -m32 -xarch=sparc |
108 ARCH64_FLAGS_sparc_suncc = -m64 -xarch=sparc |
112 ARCH64_FLAGS_sparc_suncc = -m64 -xarch=sparc |
109 |
113 |
150 ARCH_LIB_FLAGS = $(ARCH_LIB_FLAGS_$(MACH)_$(MODULE_COMPILER)) |
154 ARCH_LIB_FLAGS = $(ARCH_LIB_FLAGS_$(MACH)_$(MODULE_COMPILER)) |
151 |
155 |
152 # Flags for specific binary types |
156 # Flags for specific binary types |
153 LIB_CPPFLAGS = -D_REENTRANT |
157 LIB_CPPFLAGS = -D_REENTRANT |
154 LIB_CFLAGS = $(CFLAGS) $(ARCH_LIB_FLAGS) |
158 LIB_CFLAGS = $(CFLAGS) $(ARCH_LIB_FLAGS) |
|
159 LIB_CXXFLAGS = $(CXXFLAGS) $(ARCH_LIB_FLAGS) |
155 PROG_CFLAGS = $(CFLAGS) |
160 PROG_CFLAGS = $(CFLAGS) |
156 PROG_CXXFLAGS = $(CXXFLAGS) |
161 PROG_CXXFLAGS = $(CXXFLAGS) |
157 |
162 |
158 ### Linker flags |
163 ### Linker flags |
159 |
164 |
224 OW_FONT_DIR=$(OW_X11LIB_DIR)/fonts |
229 OW_FONT_DIR=$(OW_X11LIB_DIR)/fonts |
225 OW_TRUETYPE_DIR=$(OW_FONT_DIR)/TrueType |
230 OW_TRUETYPE_DIR=$(OW_FONT_DIR)/TrueType |
226 |
231 |
227 X11_DIR=/usr/X11 |
232 X11_DIR=/usr/X11 |
228 X11_INCLUDES_DIR=$(X11_DIR)/include |
233 X11_INCLUDES_DIR=$(X11_DIR)/include |
|
234 XORG_SDK_INCLUDES_DIR=$(X11_INCLUDES_DIR)/xorg |
229 X11_X11LIB_DIR=$(X11_DIR)/lib/X11 |
235 X11_X11LIB_DIR=$(X11_DIR)/lib/X11 |
230 X11_FONT_DIR=$(X11_X11LIB_DIR)/fonts |
236 X11_FONT_DIR=$(X11_X11LIB_DIR)/fonts |
231 X11_TRUETYPE_DIR=$(X11_FONT_DIR)/TTF |
237 X11_TRUETYPE_DIR=$(X11_FONT_DIR)/TTF |
232 X11_DOC_DIR=$(X11_DIR)/share/doc |
238 X11_DOC_DIR=$(X11_DIR)/share/doc |
233 X11_LOCALE_DIR=$(X11_DIR)/share/locale |
239 X11_LOCALE_DIR=$(X11_DIR)/share/locale |