open-src/Makefile
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Wed, 10 Aug 2016 21:49:25 -0700
changeset 1653 9fcb30a2102b
parent 1637 4d091a29bd63
permissions -rw-r--r--
24443559 Update deja-vu fonts to version 2.37
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     1
# Makefile for X Consolidation Open Source bits
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     2
#
1625
80d285e85842 21814632 X gate should use xmlto for DocBook processing
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1494
diff changeset
     3
# Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
0
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     4
#
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     5
# Permission is hereby granted, free of charge, to any person obtaining a
919
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
     6
# copy of this software and associated documentation files (the "Software"),
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
     7
# to deal in the Software without restriction, including without limitation
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
     8
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
     9
# and/or sell copies of the Software, and to permit persons to whom the
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    10
# Software is furnished to do so, subject to the following conditions:
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    11
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    12
# The above copyright notice and this permission notice (including the next
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    13
# paragraph) shall be included in all copies or substantial portions of the
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    14
# Software.
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    15
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    16
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    17
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    18
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    19
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    20
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    21
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    22
# DEALINGS IN THE SOFTWARE.
0
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    23
#
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    24
#
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
#
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 481
diff changeset
    27
810
6f94d3da0552 6889793 enable parallel builds of the X consolidation
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 493
diff changeset
    28
# Need to install to proto area by default for inter-package dependencies to
6f94d3da0552 6889793 enable parallel builds of the X consolidation
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 493
diff changeset
    29
# work right.
6f94d3da0552 6889793 enable parallel builds of the X consolidation
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 493
diff changeset
    30
default_target: install
6f94d3da0552 6889793 enable parallel builds of the X consolidation
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 493
diff changeset
    31
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 481
diff changeset
    32
# Modules have to be built in a specific order for dependencies to be
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 481
diff changeset
    33
# handled properly
0
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    34
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 481
diff changeset
    35
# Some specific notes:
822
2a89ea3c59be 6898535 Upgrade VNC from RealVNC 4.1.3 to TigerVNC 1.0 [PSARC/2009/592]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    36
# - app/rgb depends on the rgb.h header installed by the Xorg xserver, 
2a89ea3c59be 6898535 Upgrade VNC from RealVNC 4.1.3 to TigerVNC 1.0 [PSARC/2009/592]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    37
#   so has to be built after xserver/xorg
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 481
diff changeset
    38
# - util/util-macros must be first, since any module that does autoreconf
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 481
diff changeset
    39
#   requires it
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 481
diff changeset
    40
# - data/xbitmaps must be before app, as some applications depend on the
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 481
diff changeset
    41
#   bitmaps installed, but the rest of data depends on applications like
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 481
diff changeset
    42
#   xcursorgen for processing, so must come later
810
6f94d3da0552 6889793 enable parallel builds of the X consolidation
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 493
diff changeset
    43
# - font depends on utils like mkfontdir from app
1625
80d285e85842 21814632 X gate should use xmlto for DocBook processing
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1494
diff changeset
    44
# - many protos & libs depend on doc/xorg-sgml-doctools to generate docs
810
6f94d3da0552 6889793 enable parallel builds of the X consolidation
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 493
diff changeset
    45
6f94d3da0552 6889793 enable parallel builds of the X consolidation
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 493
diff changeset
    46
# High level dependencies
1625
80d285e85842 21814632 X gate should use xmlto for DocBook processing
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1494
diff changeset
    47
proto/x11proto: util/util-macros doc/xorg-sgml-doctools
1627
e92fb54c6270 21814632 X gate should use xmlto for DocBook processing (fix build)
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1625
diff changeset
    48
proto: proto/x11proto util/util-macros util/lndir util/build-tools doc/xorg-sgml-doctools
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    49
util/lndir: proto/x11proto
1068
0dc26c96a5af 7010624 X11R7.6 Update: Application, Utility, & Data modules [PSARC/2011/033]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1056
diff changeset
    50
lib: proto font/util util
1625
80d285e85842 21814632 X gate should use xmlto for DocBook processing
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1494
diff changeset
    51
util: proto font/util util/lndir
1068
0dc26c96a5af 7010624 X11R7.6 Update: Application, Utility, & Data modules [PSARC/2011/033]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1056
diff changeset
    52
app: lib data/xbitmaps font/util
0dc26c96a5af 7010624 X11R7.6 Update: Application, Utility, & Data modules [PSARC/2011/033]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1056
diff changeset
    53
xserver/xorg xserver/xvnc: proto doc/xorg-sgml-doctools lib font/util
822
2a89ea3c59be 6898535 Upgrade VNC from RealVNC 4.1.3 to TigerVNC 1.0 [PSARC/2009/592]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    54
driver: xserver/xorg
2a89ea3c59be 6898535 Upgrade VNC from RealVNC 4.1.3 to TigerVNC 1.0 [PSARC/2009/592]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    55
app/rgb: xserver/xorg
1625
80d285e85842 21814632 X gate should use xmlto for DocBook processing
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1494
diff changeset
    56
doc/xorg-docs: doc/xorg-sgml-doctools util/util-macros
810
6f94d3da0552 6889793 enable parallel builds of the X consolidation
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 493
diff changeset
    57
data: app
851
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 822
diff changeset
    58
FONTAPPS = app/bdftopcf app/mkfontscale app/mkfontdir
1625
80d285e85842 21814632 X gate should use xmlto for DocBook processing
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1494
diff changeset
    59
font: $(FONTAPPS) font/util util/lndir
851
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 822
diff changeset
    60
$(FONTAPPS): lib
1637
4d091a29bd63 23216116 i915/drm should use header files from libdrm, not have copies
Randy Fishel <Randy.Fishel@Oracle.COM>
parents: 1627
diff changeset
    61
kernel: lib
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 481
diff changeset
    62
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 481
diff changeset
    63
OS_SUBDIRS_common = \
174
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 98
diff changeset
    64
	util/util-macros \
1193
81e7bcbed056 7080479 X binaries change too much on rebuilds
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1068
diff changeset
    65
	util/build-tools \
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    66
	proto/x11proto \
967
efbd0ee6805d 6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    67
	util/lndir \
8
79cdfccc57d7 6411857 Xorg modularization: xproto-7.0.4
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 0
diff changeset
    68
	proto \
61
e08ab36f5a0a 6471602 Xorg modularization: xbitmaps 1.0.1
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 48
diff changeset
    69
	data/xbitmaps \
1068
0dc26c96a5af 7010624 X11R7.6 Update: Application, Utility, & Data modules [PSARC/2011/033]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1056
diff changeset
    70
	font/util \
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 481
diff changeset
    71
	util \
1010
24a676fcf648 6984035 more parallel build fixes for X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    72
	doc/xorg-sgml-doctools \
24a676fcf648 6984035 more parallel build fixes for X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    73
	doc/xorg-docs \
186
234cec2059d6 6582231 Xorg modularization: bdftopcf
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 174
diff changeset
    74
	lib \
70
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 68
diff changeset
    75
	app \
851
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 822
diff changeset
    76
	$(FONTAPPS) \
822
2a89ea3c59be 6898535 Upgrade VNC from RealVNC 4.1.3 to TigerVNC 1.0 [PSARC/2009/592]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    77
	xserver/xorg \
2a89ea3c59be 6898535 Upgrade VNC from RealVNC 4.1.3 to TigerVNC 1.0 [PSARC/2009/592]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    78
	xserver/xvnc \
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    79
	xserver/xserver-common \
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 90
diff changeset
    80
	driver \
1494
a72f39592745 PSARC 2014/148 Move DRM drivers to X11
Randy Fishel <Randy.Fishel@Oracle.COM>
parents: 1479
diff changeset
    81
	kernel \
430
ea58bd4d59b0 6684643 Update rgb to open source version
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 380
diff changeset
    82
	app/rgb \
214
dea2a0e2c5bf 6598247 open source SUNWmisc subdir of X consolidation
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 210
diff changeset
    83
	data \
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 90
diff changeset
    84
	font
0
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    85
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 481
diff changeset
    86
OS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 481
diff changeset
    87
OS_SUBDIRS_i386 = $(OS_SUBDIRS_common)
0
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    88
1056
7ab8c847a602 7009232 X11R7.6 Update: Documentation modules
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1010
diff changeset
    89
# Subdirs we used to build, but now just need to clean up
7ab8c847a602 7009232 X11R7.6 Update: Documentation modules
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1010
diff changeset
    90
OBSOLETE_SUBDIRS = \
7ab8c847a602 7009232 X11R7.6 Update: Documentation modules
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1010
diff changeset
    91
	doc/docbook-utils
7ab8c847a602 7009232 X11R7.6 Update: Documentation modules
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1010
diff changeset
    92
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 481
diff changeset
    93
PWD:sh=pwd
967
efbd0ee6805d 6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    94
TOP=$(PWD)/..
0
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    95
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 481
diff changeset
    96
### Include common definitions
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 481
diff changeset
    97
DIRNAME=""
967
efbd0ee6805d 6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    98
include $(TOP)/open-src/common/Makefile.subdirs
0
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    99
1196
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1193
diff changeset
   100
PROTOTOP=$(TOP)/proto
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1193
diff changeset
   101
PROTODIR=$(PROTOTOP)/root_$(MACH)
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1193
diff changeset
   102
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1193
diff changeset
   103
check: check_rtime
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1193
diff changeset
   104
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1193
diff changeset
   105
# check_rtime script from onbld to check binaries are built with the right
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1193
diff changeset
   106
# linker flags
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1193
diff changeset
   107
check_rtime:
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1193
diff changeset
   108
	check_rtime -e ../exception_lists/check_rtime -d $(PROTODIR) $(PROTODIR)
1479
4a76cf532c2c 19978574 Need an automated, repeatable way to generate X's FOSS required source releases
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
   109
4a76cf532c2c 19978574 Need an automated, repeatable way to generate X's FOSS required source releases
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
   110
# This is generated here instead of in $(TOP)/Makefile so that it has access
4a76cf532c2c 19978574 Need an automated, repeatable way to generate X's FOSS required source releases
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
   111
# to the variables defined in Makefile.init like $(GCC)
4a76cf532c2c 19978574 Need an automated, repeatable way to generate X's FOSS required source releases
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
   112
include $(TOP)/open-src/common/Makefile.init
4a76cf532c2c 19978574 Need an automated, repeatable way to generate X's FOSS required source releases
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
   113
4a76cf532c2c 19978574 Need an automated, repeatable way to generate X's FOSS required source releases
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
   114
$(TOP)/BUILD_INSTRUCTIONS.txt: $(TOP)/BUILD_INSTRUCTIONS
4a76cf532c2c 19978574 Need an automated, repeatable way to generate X's FOSS required source releases
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
   115
	-rm -f $(@)
4a76cf532c2c 19978574 Need an automated, repeatable way to generate X's FOSS required source releases
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
   116
	cp $(TOP)/BUILD_INSTRUCTIONS $(@)
4a76cf532c2c 19978574 Need an automated, repeatable way to generate X's FOSS required source releases
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
   117
	printf '\nThe software in this package was built using:\n\n' >> $(@)
4a76cf532c2c 19978574 Need an automated, repeatable way to generate X's FOSS required source releases
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
   118
	(for tool in cc CC fbe lint ; do \
4a76cf532c2c 19978574 Need an automated, repeatable way to generate X's FOSS required source releases
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
   119
	    $${tool} -V 2>&1 | head -1 ; \
4a76cf532c2c 19978574 Need an automated, repeatable way to generate X's FOSS required source releases
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
   120
	done) >> $(@)
4a76cf532c2c 19978574 Need an automated, repeatable way to generate X's FOSS required source releases
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
   121
	dmake -v >> $(@)
4a76cf532c2c 19978574 Need an automated, repeatable way to generate X's FOSS required source releases
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
   122
	(for tool in ${GCC} gmake autoconf automake libtool ${PERL} ${PYTHON} hg ; do \
4a76cf532c2c 19978574 Need an automated, repeatable way to generate X's FOSS required source releases
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
   123
	    printf "%s: " "$$(whence $${tool})" ; \
4a76cf532c2c 19978574 Need an automated, repeatable way to generate X's FOSS required source releases
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
   124
	    $${tool} --version | head -1 ; \
4a76cf532c2c 19978574 Need an automated, repeatable way to generate X's FOSS required source releases
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
   125
	done) >> $(@)
4a76cf532c2c 19978574 Need an automated, repeatable way to generate X's FOSS required source releases
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
   126
	printf '\non a machine installed with:\n\n' >> $(@) 
4a76cf532c2c 19978574 Need an automated, repeatable way to generate X's FOSS required source releases
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
   127
	pkg list '*-incorporation' >> $(@)