Skip to content
Newer
Older
100644 170 lines (144 sloc) 3.41 KB
495f5aa @JohnSonnenschein initial import
JohnSonnenschein authored Dec 3, 2010
1 #
2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License, Version 1.0 only
6 # (the "License"). You may not use this file except in compliance
7 # with the License.
8 #
9 # You can obtain a copy of the license at COPYING
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at COPYING.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
ce8c234 @jclulow OS-4901 upgrade NTP to ntp-4.2.8p4
jclulow authored Nov 2, 2015
21 # Copyright 2015 Joyent, Inc.
495f5aa @JohnSonnenschein initial import
JohnSonnenschein authored Dec 3, 2010
22 #
23 # To build everything just run 'gmake' in this directory.
24 #
25
9946ff0 @wesolows smartos-live#67 Support compiling cpp with gcc.
wesolows authored Jun 1, 2012
26 BASE = $(PWD)
27 DESTDIR = $(BASE)/proto
3bb8978 @wesolows OS-3208 illumos-extra must not consume $ROOT/usr/bin
wesolows authored Jul 15, 2014
28
29 ifeq ($(STRAP),strap)
30 STRAPPROTO = $(DESTDIR)
31 else
32 STRAPPROTO = $(DESTDIR:proto=proto.strap)
33 endif
34
35 PATH = $(STRAPPROTO)/usr/bin:/usr/bin:/usr/sbin:/sbin:/opt/local/bin
9946ff0 @wesolows smartos-live#67 Support compiling cpp with gcc.
wesolows authored Jun 1, 2012
36 SUBDIRS = \
37 bash \
38 bind \
39 bzip2 \
40 coreutils \
41 cpp \
42 curl \
43 dialog \
44 g11n \
45 gnupg \
46 gtar \
47 gzip \
48 ipmitool \
49 less \
50 libexpat \
51 libidn \
52 libxml \
53 libz \
80b887b @rmustacc OS-2091 add open source dmake to illumos-extra
rmustacc authored Mar 25, 2013
54 make \
9946ff0 @wesolows smartos-live#67 Support compiling cpp with gcc.
wesolows authored Jun 1, 2012
55 ncurses \
56 node.js \
57 nss-nspr \
58 ntp \
59 openldap \
1f63d09 @wesolows NET-209 want bidirectional LLDP facility
wesolows authored Apr 30, 2013
60 openlldp \
9946ff0 @wesolows smartos-live#67 Support compiling cpp with gcc.
wesolows authored Jun 1, 2012
61 openssl \
3dfd6c5 @wesolows OS-1332 openssl build system needs conversion
wesolows authored Jan 10, 2013
62 openssl1x \
2d53fd0 @arekinath OS-4688 Switch platform over to using recent OpenSSH
arekinath authored Aug 10, 2015
63 openssh \
9946ff0 @wesolows smartos-live#67 Support compiling cpp with gcc.
wesolows authored Jun 1, 2012
64 pbzip2 \
65 perl \
66 rsync \
67 rsyslog \
68 screen \
69 socat \
70 tun \
71 uuid \
72 vim \
0f032ec @rmustacc OS-4076 `xz` (liblzma) support in the platform
rmustacc authored Mar 19, 2015
73 wget \
74 xz
495f5aa @JohnSonnenschein initial import
JohnSonnenschein authored Dec 3, 2010
75
9946ff0 @wesolows smartos-live#67 Support compiling cpp with gcc.
wesolows authored Jun 1, 2012
76 STRAP_SUBDIRS = \
77 cpp \
78 bzip2 \
79 libexpat \
80 libidn \
81 libxml \
82 libz \
80b887b @rmustacc OS-2091 add open source dmake to illumos-extra
rmustacc authored Mar 25, 2013
83 make \
c0d6d32 @jclulow OS-2559 illumos-extra should provide native node in proto.strap
jclulow authored Oct 22, 2013
84 node.js \
9946ff0 @wesolows smartos-live#67 Support compiling cpp with gcc.
wesolows authored Jun 1, 2012
85 nss-nspr \
7cfe094 @wesolows joyent/illumos-extra#9 OS-1588 breaks the build.
wesolows authored Mar 22, 2013
86 openssl1x \
87 perl
070825b @JohnSonnenschein OS-825 build everything in illumos-extra out of the gcc in the proto …
JohnSonnenschein authored Feb 22, 2012
88
9946ff0 @wesolows smartos-live#67 Support compiling cpp with gcc.
wesolows authored Jun 1, 2012
89 NAME = illumos-extra
5a0b65a @JohnSonnenschein [RELENG-249] illumos-extra takes a long time to build and changes inf…
JohnSonnenschein authored Nov 8, 2011
90
9946ff0 @wesolows smartos-live#67 Support compiling cpp with gcc.
wesolows authored Jun 1, 2012
91 AWK = $(shell (which gawk 2>/dev/null | grep -v "^no ") || which awk)
92 BRANCH = $(shell git symbolic-ref HEAD | $(AWK) -F/ '{print $$3}')
5a0b65a @JohnSonnenschein [RELENG-249] illumos-extra takes a long time to build and changes inf…
JohnSonnenschein authored Nov 8, 2011
93
94 ifeq ($(TIMESTAMP),)
9946ff0 @wesolows smartos-live#67 Support compiling cpp with gcc.
wesolows authored Jun 1, 2012
95 TIMESTAMP = $(shell date -u "+%Y%m%dT%H%M%SZ")
5a0b65a @JohnSonnenschein [RELENG-249] illumos-extra takes a long time to build and changes inf…
JohnSonnenschein authored Nov 8, 2011
96 endif
97
9946ff0 @wesolows smartos-live#67 Support compiling cpp with gcc.
wesolows authored Jun 1, 2012
98 GITDESCRIBE = \
99 g$(shell git describe --all --long | $(AWK) -F'-g' '{print $$NF}')
100
101 TARBALL = $(NAME)-$(BRANCH)-$(TIMESTAMP)-$(GITDESCRIBE).tgz
5a0b65a @JohnSonnenschein [RELENG-249] illumos-extra takes a long time to build and changes inf…
JohnSonnenschein authored Nov 8, 2011
102
070825b @JohnSonnenschein OS-825 build everything in illumos-extra out of the gcc in the proto …
JohnSonnenschein authored Feb 22, 2012
103 all: $(SUBDIRS)
495f5aa @JohnSonnenschein initial import
JohnSonnenschein authored Dec 3, 2010
104
9946ff0 @wesolows smartos-live#67 Support compiling cpp with gcc.
wesolows authored Jun 1, 2012
105 strap: $(STRAP_SUBDIRS)
106
3dfd6c5 @wesolows OS-1332 openssl build system needs conversion
wesolows authored Jan 10, 2013
107 curl: libz openssl1x libidn
9946ff0 @wesolows smartos-live#67 Support compiling cpp with gcc.
wesolows authored Jun 1, 2012
108 gzip: libz
65ae079 @wesolows 693 Opensource replacement of sunwlibm
wesolows authored Oct 18, 2014
109 node.js: openssl1x
6938e49 @rmustacc OS-1639 illumos-extra should build with -zassert-deflib
rmustacc authored Oct 23, 2012
110 dialog: ncurses
3dfd6c5 @wesolows OS-1332 openssl build system needs conversion
wesolows authored Jan 10, 2013
111 socat: openssl1x
112 wget: openssl1x libidn
113 openldap: openssl1x
80b887b @rmustacc OS-2091 add open source dmake to illumos-extra
rmustacc authored Mar 25, 2013
114 g11n: make
5c9b93a @jclulow OS-3150 upgrade NTP to ntp-dev-4.2.7p446
jclulow authored Jul 10, 2014
115 ntp: perl openssl1x
2d53fd0 @arekinath OS-4688 Switch platform over to using recent OpenSSH
arekinath authored Aug 11, 2015
116 openssh: openssl1x
9946ff0 @wesolows smartos-live#67 Support compiling cpp with gcc.
wesolows authored Jun 1, 2012
117
5b6eff4 @rmustacc OS-635 Building in a zone breaks with pkgconfig
rmustacc authored Sep 26, 2011
118 #
119 # pkg-config may be installed. This will actually only hurt us rather than help
120 # us. pkg-config is based as a part of the pkgsrc packages and will pull in
121 # versions of libraries that we have in /opt/local rather than using the ones in
122 # /usr that we want. PKG_CONFIG_LIBDIR controls the actual path. This
123 # environment variable nulls out the search path. Other vars just control what
124 # gets appended.
125 #
5665089 @rmustacc OS-1324 illumos should be built with the illumos-extra gcc 4.4.4
rmustacc authored Sep 10, 2012
126
54c2db1 @rmustacc OS-1587 gcc and gas makefile rules not properly updated
rmustacc authored Sep 28, 2012
127 $(DESTDIR)/usr/gnu/bin/gas: FRC
5665089 @rmustacc OS-1324 illumos should be built with the illumos-extra gcc 4.4.4
rmustacc authored Sep 10, 2012
128 (cd binutils && \
6938e49 @rmustacc OS-1639 illumos-extra should build with -zassert-deflib
rmustacc authored Oct 23, 2012
129 PKG_CONFIG_LIBDIR="" \
130 STRAP=$(STRAP) \
131 $(MAKE) DESTDIR=$(DESTDIR) install)
5665089 @rmustacc OS-1324 illumos should be built with the illumos-extra gcc 4.4.4
rmustacc authored Sep 10, 2012
132
133
54c2db1 @rmustacc OS-1587 gcc and gas makefile rules not properly updated
rmustacc authored Sep 28, 2012
134 $(DESTDIR)/usr/bin/gcc: $(DESTDIR)/usr/gnu/bin/gas
9946ff0 @wesolows smartos-live#67 Support compiling cpp with gcc.
wesolows authored Jun 1, 2012
135 (cd gcc4 && \
6938e49 @rmustacc OS-1639 illumos-extra should build with -zassert-deflib
rmustacc authored Oct 23, 2012
136 PKG_CONFIG_LIBDIR="" \
137 STRAP=$(STRAP) \
c0d6d32 @jclulow OS-2559 illumos-extra should provide native node in proto.strap
jclulow authored Oct 22, 2013
138 $(MAKE) DESTDIR=$(DESTDIR) install strapfix)
070825b @JohnSonnenschein OS-825 build everything in illumos-extra out of the gcc in the proto …
JohnSonnenschein authored Feb 22, 2012
139
9186f51 @wesolows OS-1081 /usr/gnu contents are severely broken wrt ISA
wesolows authored May 9, 2012
140 $(SUBDIRS): $(DESTDIR)/usr/bin/gcc
9946ff0 @wesolows smartos-live#67 Support compiling cpp with gcc.
wesolows authored Jun 1, 2012
141 (cd $@ && \
6938e49 @rmustacc OS-1639 illumos-extra should build with -zassert-deflib
rmustacc authored Oct 23, 2012
142 PKG_CONFIG_LIBDIR="" \
143 STRAP=$(STRAP) \
2895e31 @jclulow OS-3330 NTP should ship with CTF data
jclulow authored Sep 9, 2014
144 CTFMERGE=$(CTFMERGE) \
145 CTFCONVERT=$(CTFCONVERT) \
ce8c234 @jclulow OS-4901 upgrade NTP to ntp-4.2.8p4
jclulow authored Nov 3, 2015
146 ALTCTFCONVERT=$(ALTCTFCONVERT) \
6938e49 @rmustacc OS-1639 illumos-extra should build with -zassert-deflib
rmustacc authored Oct 23, 2012
147 $(MAKE) DESTDIR=$(DESTDIR) install)
495f5aa @JohnSonnenschein initial import
JohnSonnenschein authored Dec 3, 2010
148
5665089 @rmustacc OS-1324 illumos should be built with the illumos-extra gcc 4.4.4
rmustacc authored Sep 10, 2012
149 install: $(SUBDIRS) gcc4 binutils
495f5aa @JohnSonnenschein initial import
JohnSonnenschein authored Dec 3, 2010
150
5665089 @rmustacc OS-1324 illumos should be built with the illumos-extra gcc 4.4.4
rmustacc authored Sep 10, 2012
151 install_strap: $(STRAP_SUBDIRS) gcc4 binutils
9946ff0 @wesolows smartos-live#67 Support compiling cpp with gcc.
wesolows authored Jun 1, 2012
152
5c9b93a @jclulow OS-3150 upgrade NTP to ntp-dev-4.2.7p446
jclulow authored Jul 10, 2014
153 clean:
5665089 @rmustacc OS-1324 illumos should be built with the illumos-extra gcc 4.4.4
rmustacc authored Sep 10, 2012
154 -for dir in $(SUBDIRS) gcc4 binutils; \
9946ff0 @wesolows smartos-live#67 Support compiling cpp with gcc.
wesolows authored Jun 1, 2012
155 do (cd $$dir; $(MAKE) DESTDIR=$(DESTDIR) clean); done
495f5aa @JohnSonnenschein initial import
JohnSonnenschein authored Dec 3, 2010
156 -rm -rf proto
157
155e742 @rmustacc OS-633 illumos-extra repo should supply its own manifest file
rmustacc authored Sep 26, 2011
158 manifest:
159 cp manifest $(DESTDIR)/$(DESTNAME)
160
33769c9 @jclulow OS-4220 mancheck is a flag day machine
jclulow authored Apr 24, 2015
161 mancheck_conf:
162 cp mancheck.conf $(DESTDIR)/$(DESTNAME)
163
5a0b65a @JohnSonnenschein [RELENG-249] illumos-extra takes a long time to build and changes inf…
JohnSonnenschein authored Nov 8, 2011
164 tarball:
165 tar -zcf $(TARBALL) manifest proto
166
867b10d @rmustacc OS-476 illumos-extra stamp doesn't stop on failure
rmustacc authored Jul 14, 2011
167 FRC:
155e742 @rmustacc OS-633 illumos-extra repo should supply its own manifest file
rmustacc authored Sep 26, 2011
168
33769c9 @jclulow OS-4220 mancheck is a flag day machine
jclulow authored Apr 24, 2015
169 .PHONY: manifest mancheck_conf
Something went wrong with that request. Please try again.