author | Lokanath Das <Lokanath.Das@Sun.COM> |
Fri, 16 Nov 2007 16:54:07 -0800 | |
changeset 250 | 01f9dae8314d |
parent 241 | 30e6f29a3171 |
child 253 | 88e5aa1fb5f9 |
permissions | -rw-r--r-- |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
1 |
# -*- Makefile -*- rules commonly shared among X consolidation open source dirs |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
2 |
# |
98
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
3 |
# Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
4 |
# Use subject to license terms. |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
5 |
# |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
6 |
# Permission is hereby granted, free of charge, to any person obtaining a |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
7 |
# copy of this software and associated documentation files (the |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
8 |
# "Software"), to deal in the Software without restriction, including |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
9 |
# without limitation the rights to use, copy, modify, merge, publish, |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
10 |
# distribute, and/or sell copies of the Software, and to permit persons |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
11 |
# to whom the Software is furnished to do so, provided that the above |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
12 |
# copyright notice(s) and this permission notice appear in all copies of |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
13 |
# the Software and that both the above copyright notice(s) and this |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
14 |
# permission notice appear in supporting documentation. |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
15 |
# |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
16 |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
17 |
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
18 |
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
19 |
# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
20 |
# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
21 |
# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
22 |
# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
23 |
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
24 |
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
25 |
# |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
26 |
# Except as contained in this notice, the name of a copyright holder |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
27 |
# shall not be used in advertising or otherwise to promote the sale, use |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
28 |
# or other dealings in this Software without prior written authorization |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
29 |
# of the copyright holder. |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
30 |
# |
241
30e6f29a3171
6624562 Xvnc should be built with Sun Studio
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
235
diff
changeset
|
31 |
# @(#)Makefile.inc 1.80 07/11/02 |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
32 |
# |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
33 |
|
156
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
34 |
# Borrowed from Solaris OS/Net makefile.master: |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
35 |
# The declaration POUND_SIGN is always '#'. This is needed to get around the |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
36 |
# make feature that '#' is always a comment delimiter, even when escaped or |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
37 |
# quoted. The only way of generating this is the :sh macro mechanism. Note |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
38 |
# however that in general :sh macros should be avoided in makefiles that are |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
39 |
# widely included into other makefiles, as the resulting shell executions can |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
40 |
# cause a noticable slowdown in build times. |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
41 |
# |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
42 |
POUND_SIGN:sh= echo \\043 |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
43 |
|
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
44 |
# BUILD_DATE:sh=date +'%e-%B-%Y' |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
45 |
# BUILD_ID = X11 for Solaris Nevada, built $(BUILD_DATE) |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
46 |
|
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
47 |
### Machine architecture macros |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
48 |
|
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
49 |
# MACH will be either "sparc" or "i386" |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
50 |
MACH:sh=uname -p |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
51 |
|
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
52 |
# ARCH will be either "sun4" or "i386" - mainly used in $(PROTODIR) |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
53 |
ARCH=$(MACH:sparc=sun4) |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
54 |
|
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
55 |
MACH32_sparc = sparc |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
56 |
MACH64_sparc = sparcv9 |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
57 |
MACH32_i386 = i386 |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
58 |
MACH64_i386 = amd64 |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
59 |
|
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
60 |
MACH32= $(MACH32_$(MACH)) |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
61 |
MACH64= $(MACH64_$(MACH)) |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
62 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
63 |
### Default compiler & options |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
64 |
CC = cc |
90
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
65 |
GCC = /usr/sfw/bin/gcc |
47
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
66 |
CXX = CC |
235
06772554f851
6572087 ship Xvnc for Solaris [PSARC/2007/545]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
208
diff
changeset
|
67 |
DEFAULT_OPT_FLAGS = -xO4 -xbuiltin -xlibmil -xprefetch -xdepend |
06772554f851
6572087 ship Xvnc for Solaris [PSARC/2007/545]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
208
diff
changeset
|
68 |
DEFAULT_OPT_CFLAGS = $(DEFAULT_OPT_FLAGS) -xstrconst |
06772554f851
6572087 ship Xvnc for Solaris [PSARC/2007/545]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
208
diff
changeset
|
69 |
DEFAULT_OPT_CXXFLAGS = $(DEFAULT_OPT_FLAGS) |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
70 |
OPT_CFLAGS = $(DEFAULT_OPT_CFLAGS) |
235
06772554f851
6572087 ship Xvnc for Solaris [PSARC/2007/545]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
208
diff
changeset
|
71 |
OPT_CXXFLAGS = $(DEFAULT_OPT_CXXFLAGS) |
06772554f851
6572087 ship Xvnc for Solaris [PSARC/2007/545]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
208
diff
changeset
|
72 |
CFLAGS = -v -mc $(OPT_CFLAGS) $(ARCH_FLAGS) |
241
30e6f29a3171
6624562 Xvnc should be built with Sun Studio
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
235
diff
changeset
|
73 |
CXXFLAGS = -mc $(OPT_CXXFLAGS) $(ARCH_FLAGS) -norunpath |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
74 |
LDFLAGS = -z combreloc -z lazyload $(MAPFILES_FOR_ALL) |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
75 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
76 |
### Flags for libraries to meet various Solaris requirements |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
77 |
# |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
78 |
# REQUIRED_LDFLAGS are forced on via LD_OPTIONS to override libtool when |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
79 |
# building libraries. |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
80 |
# |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
81 |
LIB_CFLAGS = $(CFLAGS) -D_REENTRANT $(ARCH_LIB_FLAGS) |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
82 |
LIB_REQUIRED_LDFLAGS = -z text -z defs |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
83 |
LIB_LDFLAGS = $(LDFLAGS) $(LIB_REQUIRED_LDFLAGS) |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
84 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
85 |
# Flags for programs |
47
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
86 |
PROG_CFLAGS = $(CFLAGS) |
235
06772554f851
6572087 ship Xvnc for Solaris [PSARC/2007/545]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
208
diff
changeset
|
87 |
PROG_CXXFLAGS = $(CXXFLAGS) |
17
151bef9509d4
6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
8
diff
changeset
|
88 |
PROG_LDFLAGS = $(LDFLAGS) $(MAPFILES_FOR_PROGS) -B direct |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
89 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
90 |
# Linker mapfiles to link with for better performance & security |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
91 |
# SPARC archicteture requires PLT section in .data be executable, so |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
92 |
# we can only make .bss, not all of .data no-exec on SPARC |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
93 |
MAPFILE_DIR = $(TOP)/common/mapfiles/ |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
94 |
MAPFILE_NOEXBSS = $(MAPFILE_DIR)/map.noexbss |
156
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
95 |
MAPFILE_NOEXDATA_sparc = $(MAPFILE_NOEXBSS) |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
96 |
MAPFILE_NOEXDATA_i386 = /usr/lib/ld/map.noexdata |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
97 |
MAPFILE_NOEXDATA = $(MAPFILE_NOEXDATA_$(MACH)) |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
98 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
99 |
MAPFILES_FOR_ALL = -M /usr/lib/ld/map.pagealign -M $(MAPFILE_NOEXDATA) |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
100 |
MAPFILES_FOR_PROGS = -M /usr/lib/ld/map.bssalign -M /usr/lib/ld/map.noexstk \ |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
101 |
-M $(MAPFILE_NOEXBSS) |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
102 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
103 |
### Architecture specific flags |
156
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
104 |
DEFAULT_ARCH32_FLAGS_sparc = -xarch=v8plus |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
105 |
DEFAULT_ARCH64_FLAGS_sparc = -xarch=v9 |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
106 |
DEFAULT_ARCH_LIB_FLAGS_sparc = -xregs=no%appl |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
107 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
108 |
# -xregs=no%frameptr is required on x86 when compiling at -xO4 or higher to |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
109 |
# avoid losing stack frame pointers so you can't get stack traces or debug |
241
30e6f29a3171
6624562 Xvnc should be built with Sun Studio
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
235
diff
changeset
|
110 |
DEFAULT_ARCH32_FLAGS_i386 = -xtarget=pentium -xregs=no%frameptr |
156
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
111 |
DEFAULT_ARCH64_FLAGS_i386 = -xarch=generic64 -xregs=no%frameptr |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
112 |
DEFAULT_ARCH_LIB_FLAGS_i386 = |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
113 |
|
156
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
114 |
ARCH32_FLAGS = $(DEFAULT_ARCH32_FLAGS_$(MACH)) |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
115 |
ARCH64_FLAGS = $(DEFAULT_ARCH64_FLAGS_$(MACH)) |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
116 |
ARCH_LIB_FLAGS = $(DEFAULT_ARCH_LIB_FLAGS_$(MACH)) |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
117 |
|
90
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
118 |
### Flags for gcc |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
119 |
DEFAULT_GCC_CFLAGS = -O3 -fno-omit-frame-pointer -Wall |
156
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
120 |
DEFAULT_ARCH32_GCC_FLAGS_sparc = -mcpu=ultrasparc -m32 |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
121 |
DEFAULT_ARCH64_GCC_FLAGS_sparc = -mcpu=ultrasparc -m64 |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
122 |
DEFAULT_ARCH32_GCC_FLAGS_i386 = -march=i686 -m32 |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
123 |
DEFAULT_ARCH64_GCC_FLAGS_i386 = -march=opteron -m64 |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
124 |
ARCH32_GCC_FLAGS=$(DEFAULT_ARCH32_GCC_FLAGS_$(MACH)) |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
125 |
ARCH64_GCC_FLAGS=$(DEFAULT_ARCH64_GCC_FLAGS_$(MACH)) |
90
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
126 |
|
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
127 |
# Need to use -Wl,.. to pass linker flags through gcc |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
128 |
GCC_LDFLAGS_CMD=echo $(LDFLAGS) | \ |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
129 |
sed -e 's/-M /-Wl,-M,/g' -e 's/-B /-Wl,-B,/g' |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
130 |
GCC_LDFLAGS=$(GCC_LDFLAGS_CMD:sh) |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
131 |
GCC_LIB_LDFLAGS_CMD=echo $(LIB_LDFLAGS) | \ |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
132 |
sed -e 's/-M /-Wl,-M,/g' -e 's/-B /-Wl,-B,/g' |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
133 |
GCC_LIB_LDFLAGS=$(GCC_LIB_LDFLAGS_CMD:sh) |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
134 |
GCC_PROG_LDFLAGS_CMD=echo $(PROG_LDFLAGS) | \ |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
135 |
sed -e 's/-M /-Wl,-M,/g' -e 's/-B /-Wl,-B,/g' |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
136 |
GCC_PROG_LDFLAGS=$(GCC_PROG_LDFLAGS_CMD:sh) |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
137 |
|
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
138 |
|
156
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
139 |
SUBDIR32_sparc = sparcv8 |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
140 |
SUBDIR32_i386 = i386 |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
141 |
SUBDIR64_sparc = sparcv9 |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
142 |
SUBDIR64_i386 = amd64 |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
143 |
SUBDIR32 = $(SUBDIR32_$(MACH)) |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
144 |
SUBDIR64 = $(SUBDIR64_$(MACH)) |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
145 |
|
40
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
146 |
|
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
147 |
### Proto directory to install into for packaging |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
148 |
PROTODIR=$(TOP)/../proto-$(ARCH)-svr4 |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
149 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
150 |
# Common subdirs |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
151 |
OW_DIR=/usr/openwin |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
152 |
OW_X11LIB_DIR=$(OW_DIR)/lib/X11 |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
153 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
154 |
FONT_DIR=$(OW_X11LIB_DIR)/fonts |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
155 |
TRUETYPE_DIR=$(FONT_DIR)/TrueType |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
156 |
|
8
79cdfccc57d7
6411857 Xorg modularization: xproto-7.0.4
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
0
diff
changeset
|
157 |
X11_DIR=/usr/X11 |
79cdfccc57d7
6411857 Xorg modularization: xproto-7.0.4
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
0
diff
changeset
|
158 |
X11_INCLUDES_DIR=$(X11_DIR)/include |
98
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
159 |
X11_DOC_DIR=$(X11_DIR)/share/doc |
90
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
160 |
X11_LOCALE_DIR=$(X11_DIR)/share/locale |
235
06772554f851
6572087 ship Xvnc for Solaris [PSARC/2007/545]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
208
diff
changeset
|
161 |
X11_MAN_DIR=$(X11_DIR)/share/man |
191
8c3443e72486
6583543 Can't build X with JDS CBE 1.6
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
156
diff
changeset
|
162 |
X11_ACLOCAL_DIR=$(X11_DIR)/share/aclocal |
90
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
163 |
X11_LC_MESSAGES_DIR=$(X11_LOCALE_DIR)/C/LC_MESSAGES |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
164 |
# Subdirectory of /usr/X11/lib for X server private libraries |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
165 |
X11_SERVERLIBS_SUBDIR=/X11/xserver |
98
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
166 |
X11_SERVERLIBS_DIR=$(X11_DIR)/lib$(X11_SERVERLIBS_SUBDIR) |
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
167 |
|
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
168 |
# Subdirectory of /usr/X11/lib for X server loadable modules |
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
169 |
X11_SERVERMODS_SUBDIR=/modules |
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
170 |
X11_SERVERMODS_DIR=$(X11_DIR)/lib$(X11_SERVERMODS_SUBDIR) |
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
171 |
|
156
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
172 |
MODULE_subdir_sparc= |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
173 |
MODULE_subdir_i386=$(ARCHLIBSUBDIR) |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
174 |
MODULE_subdir=$(MODULE_subdir_$(MACH)) |
98
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
175 |
|
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
176 |
# Directory used for installing tools used during build but not |
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
177 |
# delivered in packages |
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
178 |
TOOLS_DIR=/tools |
8
79cdfccc57d7
6411857 Xorg modularization: xproto-7.0.4
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
0
diff
changeset
|
179 |
|
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
180 |
### Default rules |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
181 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
182 |
BUILD_DIR_32 = build_32 |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
183 |
BUILD_DIR_64 = build_64 |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
184 |
|
156
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
185 |
# Set default build type to 32-bit if not set in module makefile |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
186 |
BUILD_TYPES_DEFAULT = $(BUILD_TYPES_SET:yes=$(POUND_SIGN)) |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
187 |
$(BUILD_TYPES_DEFAULT) BUILD_TYPES=32 |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
188 |
|
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
189 |
all: $(BUILD_TYPES:%=source_%) $(BUILD_TYPES:%=build_%) |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
190 |
install: $(BUILD_TYPES:%=install_%) |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
191 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
192 |
clean: $(BUILD_TYPES:%=clean_%) |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
193 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
194 |
clean_32:: |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
195 |
-rm -rf $(BUILD_DIR_32) |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
196 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
197 |
clean_64:: |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
198 |
-rm -rf $(BUILD_DIR_64) |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
199 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
200 |
build_gen: $(BUILD_TARGETS) |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
201 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
202 |
build_32:: |
90
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
203 |
$(MAKE) $(MFLAGS) BUILD_DIR=$(BUILD_DIR_32) ARCH_FLAGS="$(ARCH32_FLAGS)" $(BUILD_32_FLAGS) build_gen |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
204 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
205 |
build_64:: |
90
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
206 |
$(MAKE) $(MFLAGS) BUILD_DIR=$(BUILD_DIR_64) ARCH_FLAGS="$(ARCH64_FLAGS)" LIBSUBDIR=/$(SUBDIR64) ARCHLIBSUBDIR=/$(SUBDIR64) $(BUILD_64_FLAGS) build_gen |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
207 |
|
90
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
208 |
install_32:: build_32 |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
209 |
$(MAKE) $(MFLAGS) BUILD_DIR=$(BUILD_DIR_32) ARCH_FLAGS="$(ARCH32_FLAGS)" $(BUILD_32_FLAGS) install_gen |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
210 |
|
90
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
211 |
install_64:: build_64 |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
212 |
$(MAKE) $(MFLAGS) BUILD_DIR=$(BUILD_DIR_64) ARCH_FLAGS="$(ARCH64_FLAGS)" LIBSUBDIR=/64 ARCHLIBSUBDIR=/$(SUBDIR64) $(BUILD_64_FLAGS) install_gen |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
213 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
214 |
debug: |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
215 |
$(MAKE) $(MFLAGS) all OPT_FLAGS="-g" |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
216 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
217 |
### Unpack source and apply patches |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
218 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
219 |
source: $(BUILD_TYPES:%=source_%) |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
220 |
source_32: $(BUILD_DIR_32)/.unpack_done |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
221 |
source_64: $(BUILD_DIR_64)/.unpack_done |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
222 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
223 |
UNPACK_TARGET = $(BUILD_DIR)/.unpack_done |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
224 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
225 |
$(BUILD_DIR_32)/.unpack_done: |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
226 |
$(MAKE) $(MFLAGS) BUILD_DIR=$(BUILD_DIR_32) source_gen |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
227 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
228 |
$(BUILD_DIR_64)/.unpack_done: |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
229 |
$(MAKE) $(MFLAGS) BUILD_DIR=$(BUILD_DIR_64) source_gen |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
230 |
|
90
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
231 |
FIX_PC_OPS= \ |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
232 |
-e 's|-L\$${libdir}|-L\$${libdir} -R\$${libdir}|;' \ |
208
aef5d4a25416
6571762 xrender.pc depends on non-existent x11.pc
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
191
diff
changeset
|
233 |
-e 's|(Requires: .*)\bx11\b|$$1|;' \ |
90
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
234 |
-e 's|Requires.private: .*$$||;' |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
235 |
|
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
236 |
# -e 's|^prefix=@prefix@|prefix=\$$\{top_builddir\}@prefix@|' |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
237 |
|
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
238 |
source_gen:: |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
239 |
mkdir -p $(BUILD_DIR) |
191
8c3443e72486
6583543 Can't build X with JDS CBE 1.6
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
156
diff
changeset
|
240 |
@case '$(MFLAGS)' in *[ik]*) set +e;; esac; \ |
8c3443e72486
6583543 Can't build X with JDS CBE 1.6
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
156
diff
changeset
|
241 |
if [ "x$(SOURCE_TARBALL_NAME)" != "xNONE" ] ; then \ |
98
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
242 |
if [ "x$(SOURCE_UNCOMPRESS)" = "x" ] ; then \ |
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
243 |
echo "bzcat $(SOURCE_TARBALL) | (cd $(BUILD_DIR) ; tar -xf - )" ; \ |
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
244 |
( bzcat $(SOURCE_TARBALL) | (cd $(BUILD_DIR) ; tar -xf - )) ; \ |
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
245 |
else \ |
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
246 |
echo "$(SOURCE_UNCOMPRESS) $(SOURCE_TARBALL) | (cd $(BUILD_DIR) ; tar -xf - )" ; \ |
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
247 |
( $(SOURCE_UNCOMPRESS) $(SOURCE_TARBALL) | (cd $(BUILD_DIR) ; tar -xf - )) ; \ |
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
248 |
fi ; \ |
191
8c3443e72486
6583543 Can't build X with JDS CBE 1.6
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
156
diff
changeset
|
249 |
fi ; \ |
8c3443e72486
6583543 Can't build X with JDS CBE 1.6
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
156
diff
changeset
|
250 |
if [ "x$(SOURCE_PATCHES)" != "x" ] ; then \ |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
251 |
for p in $(SOURCE_PATCHES) x ; do \ |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
252 |
if [ "$$p" != "x" ] ; then \ |
90
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
253 |
PATCH_CMD=`echo $$p | awk -F, '{if (NF > 1) FLAGS = $$2; else FLAGS="-p0" ; printf "gpatch -d $(SOURCE_DIR) %s < %s\n", FLAGS, $$1}'` ; \ |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
254 |
echo "$${PATCH_CMD}" ; \ |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
255 |
eval $${PATCH_CMD} ; \ |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
256 |
fi ; \ |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
257 |
done ; \ |
191
8c3443e72486
6583543 Can't build X with JDS CBE 1.6
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
156
diff
changeset
|
258 |
fi ; \ |
8c3443e72486
6583543 Can't build X with JDS CBE 1.6
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
156
diff
changeset
|
259 |
if [ "x$(SUNTOUCHED_MANPAGES)" != "x" ] ; then \ |
40
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
260 |
echo "/usr/perl5/bin/perl $(TOP)/common/suntouch-manpages.pl \ |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
261 |
$(SUNTOUCH_MAN_FLAGS) $(SUNTOUCHED_MANPAGES)" ; \ |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
262 |
(cd $(SOURCE_DIR) && \ |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
263 |
/usr/perl5/bin/perl $(TOP)/common/suntouch-manpages.pl \ |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
264 |
$(SUNTOUCH_MAN_FLAGS) $(SUNTOUCHED_MANPAGES) ) ; \ |
191
8c3443e72486
6583543 Can't build X with JDS CBE 1.6
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
156
diff
changeset
|
265 |
fi ; \ |
8c3443e72486
6583543 Can't build X with JDS CBE 1.6
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
156
diff
changeset
|
266 |
if [ "x$(FIX_PC_FILES)" != "x" ] ; then \ |
90
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
267 |
echo "/usr/perl5/bin/perl -i.orig -p \ |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
268 |
$(FIX_PC_OPS) $(FIX_PC_FILES)" ; \ |
70
af1bea13b32b
6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
47
diff
changeset
|
269 |
(cd $(SOURCE_DIR) && \ |
90
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
270 |
/usr/perl5/bin/perl -i.orig -p \ |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
271 |
$(FIX_PC_OPS) $(FIX_PC_FILES) ); \ |
70
af1bea13b32b
6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
47
diff
changeset
|
272 |
fi |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
273 |
touch $(BUILD_DIR)/.unpack_done |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
274 |
|
191
8c3443e72486
6583543 Can't build X with JDS CBE 1.6
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
156
diff
changeset
|
275 |
### Regenerate autoconf/automake/libtools files after patching when needed |
8c3443e72486
6583543 Can't build X with JDS CBE 1.6
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
156
diff
changeset
|
276 |
|
8c3443e72486
6583543 Can't build X with JDS CBE 1.6
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
156
diff
changeset
|
277 |
# Include Xorg autoconf macros when rebuilding configure scripts |
8c3443e72486
6583543 Can't build X with JDS CBE 1.6
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
156
diff
changeset
|
278 |
ACLOCAL_PATH=aclocal -I $(PROTODIR)/usr/X11/share/aclocal |
8c3443e72486
6583543 Can't build X with JDS CBE 1.6
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
156
diff
changeset
|
279 |
|
8c3443e72486
6583543 Can't build X with JDS CBE 1.6
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
156
diff
changeset
|
280 |
autoreconf: $(UNPACK_TARGET) |
8c3443e72486
6583543 Can't build X with JDS CBE 1.6
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
156
diff
changeset
|
281 |
(cd $(SOURCE_DIR) && \ |
8c3443e72486
6583543 Can't build X with JDS CBE 1.6
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
156
diff
changeset
|
282 |
ACLOCAL="$(ACLOCAL_PATH)" autoreconf -v --install --force ) |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
283 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
284 |
### Source tarballs & downloading if necessary |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
285 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
286 |
TARBALLDIR=$(TOP)/tarballs |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
287 |
WGET=/usr/sfw/bin/wget |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
288 |
SOURCE_TARBALL=$(TARBALLDIR)/$(SOURCE_TARBALL_NAME) |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
289 |
|
24
656b73953913
Change X.Org download site back to xorg.freedesktop.org
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
17
diff
changeset
|
290 |
XORG_RELEASES_URL=http://xorg.freedesktop.org/releases/individual |
156
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
291 |
SF_DOWNLOADS_URL=http://easynews.dl.sourceforge.net/sourceforge |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
292 |
|
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
293 |
# Set default download location if not set in module makefile |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
294 |
SOURCE_URL_DEFAULT = $(SOURCE_URL_SET:yes=$(POUND_SIGN)) |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
98
diff
changeset
|
295 |
$(SOURCE_URL_DEFAULT) SOURCE_URL=$(XORG_RELEASES_URL)/$(SOURCE_TARBALL_DIR)/$(SOURCE_TARBALL_NAME) |
8
79cdfccc57d7
6411857 Xorg modularization: xproto-7.0.4
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
0
diff
changeset
|
296 |
|
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
297 |
download: |
191
8c3443e72486
6583543 Can't build X with JDS CBE 1.6
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
156
diff
changeset
|
298 |
if [ ! -s $(SOURCE_TARBALL) ] ; then \ |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
299 |
$(WGET) -O $(SOURCE_TARBALL) $(SOURCE_URL) ;\ |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
300 |
fi |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
301 |
|
40
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
302 |
### Generate mapfiles to limit/version exported symbols in libraries |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
303 |
|
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
304 |
SPEC2MAP= /usr/lib/abi/spec2map |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
305 |
|
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
306 |
SPECMAP= mapfile.vers.$(LIBNAME) |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
307 |
SPECFILE= spec/$(LIBNAME).spec |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
308 |
VERSFILE= spec/versions |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
309 |
|
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
310 |
$(BUILD_DIR_32)/$(SPECMAP): $(SPECFILE) $(VERSFILE) |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
311 |
$(MAKE) $(MFLAGS) BUILD_DIR=$(BUILD_DIR_32) MACH=$(MACH32) spec_gen |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
312 |
|
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
313 |
$(BUILD_DIR_64)/$(SPECMAP): $(SPECFILE) $(VERSFILE) |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
314 |
$(MAKE) $(MFLAGS) BUILD_DIR=$(BUILD_DIR_64) MACH=$(MACH64) spec_gen |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
315 |
|
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
316 |
spec_gen: |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
317 |
$(SPEC2MAP) -a $(MACH) -v $(VERSFILE) -p -l $(LIBNAME) \ |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
318 |
-o $(BUILD_DIR)/$(SPECMAP) $(SPECFILE) |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
319 |
|
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
320 |
### Other tools needed to build |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
321 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
322 |
# Some modules (such as FreeType 2) require GNU make |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
323 |
GNUMAKE = gmake |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
324 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
325 |
$(GNUMAKE): |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
326 |
@echo "Checking for GNU make:" |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
327 |
$(GNUMAKE) --version |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
328 |
|
90
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
329 |
# Some modules use lndir to merge in sources from Sun specific directories |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
330 |
LNDIR=$(PROTODIR)/usr/X11/bin/lndir |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
331 |
|
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
332 |
$(LNDIR): |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
333 |
(cd $(TOP)/util/lndir && $(MAKE) $(MFLAGS) install) |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
334 |
|
98
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
335 |
DOCBOOKUTIL_BINDIR=$(PROTODIR)$(TOOLS_DIR)/bin |
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
336 |
DOCBOOK2HTML=$(DOCBOOKUTIL_BINDIR)/dockbook2html |
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
337 |
|
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
338 |
$(DOCBOOK2HTML): |
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
339 |
(cd $(TOP)/doc/docbook-utils && $(MAKE) $(MFLAGS) install) |
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
340 |
|
40
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
341 |
### Dependencies |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
342 |
|
40
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
343 |
# Almost everything depends on the headers in xproto |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
344 |
XPROTO_DEP=$(PROTODIR)/usr/lib/$(ARCHLIBSUBDIR)/pkgconfig/xproto.pc |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
345 |
|
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
346 |
$(XPROTO_DEP): |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
347 |
@echo "Installing dependency proto/X11" |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
348 |
(cd $(TOP)/proto/X11 ; make install) |
bec81b174839
6454339 Xorg modularization: libXau 1.0.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
24
diff
changeset
|
349 |
|
47
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
350 |
### Useful rules for maintaining patch sets |
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
351 |
|
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
352 |
# regenerate patches against new baseline to reduce messages about hunks |
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
353 |
# having fuzz or offsets when applying patches - new patches will be in new/ |
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
354 |
|
90
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
355 |
regen-patches: |
47
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
356 |
CUR_LIST="" |
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
357 |
rm -rf tmp-regen |
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
358 |
make SOURCE_PATCHES="$(CUR_LIST)" BUILD_DIR=tmp-regen source_gen |
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
359 |
mkdir -p new |
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
360 |
for f in $(SOURCE_PATCHES) ; do \ |
90
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
361 |
p=`echo $$f | sed 's/,.*$$//'` ; \ |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
362 |
echo '=================' $$p ; \ |
47
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
363 |
rm -rf prev ; \ |
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
364 |
mv tmp-regen prev ; \ |
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
365 |
$(MAKE) SOURCE_PATCHES="$${CUR_LIST} $$f" BUILD_DIR=tmp-regen source_gen ; \ |
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
366 |
awk '/^--- / {exit} \ |
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
367 |
/^diff -u/ {exit} \ |
90
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
368 |
{print}' $$p > new/$$p ; \ |
98
c21b46ed1efd
6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
90
diff
changeset
|
369 |
gdiff -urp -x '*~' -x '*.orig' ./prev ./tmp-regen \ |
47
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
370 |
| sed -e 's% \./prev$(SOURCE_DIR)/% %' -e 's% \./tmp-regen$(SOURCE_DIR)/% %' \ |
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
371 |
| grep -v '^Common subdirectories:' \ |
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
372 |
| grep -v '^Only in ' \ |
90
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
373 |
>> new/$$p ; \ |
aa93b75745de
6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
70
diff
changeset
|
374 |
CUR_LIST="$${CUR_LIST} new/$$p" ; \ |
47
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
375 |
done |
d59efbadf28b
4869280 Update xscreensaver to 5.0
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
40
diff
changeset
|
376 |
rm -rf tmp-regen |