9 # or http://www.opensolaris.org/os/licensing.
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 usr/src/OPENSOLARIS.LICENSE.
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 #
21
22 #
23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2012 by Delphix. All rights reserved.
25 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
26 # Copyright 2015 OmniTI Computer Consulting, Inc. All rights reserved.
27 # Copyright 2016 Toomas Soome <tsoome@me.com>
28 # Copyright 2017 Joyent, Inc.
29 #
30
31 #
32 # Makefile for system source
33 #
34 # include global definitions
35 include Makefile.master
36 #
37 # the Targetdirs file is the AT&T target.dirs file in a makefile format.
38 # it defines TARGETDIRS and ROOTDIRS.
39 include Targetdirs
40
41 COMMON_SUBDIRS= data uts lib cmd ucblib ucbcmd psm man test
42 sparc_SUBDIRS= stand
43 i386_SUBDIRS= grub boot
44
45 #
46 # sparc needs to build stand before psm
47 #
48 $(SPARC_BLD)psm: stand
271 else \
272 __COMPILER=`$($(MACH64)_CC) -_compiler 2>/dev/null || $(TRUE)`;\
273 if [ -z "$$__COMPILER" ]; then \
274 $(ECHO) No 64-bit compiler found; \
275 exit 1; \
276 else \
277 $(ECHO) 64-bit compiler; \
278 $(ECHO) $($(MACH64)_CC); \
279 $(ECHO) $$__COMPILER; \
280 $($(MACH64)_CC) -V 2>&1 | head -1; \
281 fi; \
282 fi
283
284 java-version:
285 @if [ -x "$(JAVAC)" ]; then \
286 $(ECHO) $(JAVAC); \
287 $(JAVA_ROOT)/bin/java -fullversion 2>&1 | head -1; \
288 else \
289 $(ECHO) No Java compiler found; \
290 exit 1; \
291 fi
|
9 # or http://www.opensolaris.org/os/licensing.
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 usr/src/OPENSOLARIS.LICENSE.
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 #
21
22 #
23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2012 by Delphix. All rights reserved.
25 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
26 # Copyright 2015 OmniTI Computer Consulting, Inc. All rights reserved.
27 # Copyright 2016 Toomas Soome <tsoome@me.com>
28 # Copyright 2017 Joyent, Inc.
29 # Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
30 #
31
32 #
33 # Makefile for system source
34 #
35 # include global definitions
36 include Makefile.master
37 #
38 # the Targetdirs file is the AT&T target.dirs file in a makefile format.
39 # it defines TARGETDIRS and ROOTDIRS.
40 include Targetdirs
41
42 COMMON_SUBDIRS= data uts lib cmd ucblib ucbcmd psm man test
43 sparc_SUBDIRS= stand
44 i386_SUBDIRS= grub boot
45
46 #
47 # sparc needs to build stand before psm
48 #
49 $(SPARC_BLD)psm: stand
272 else \
273 __COMPILER=`$($(MACH64)_CC) -_compiler 2>/dev/null || $(TRUE)`;\
274 if [ -z "$$__COMPILER" ]; then \
275 $(ECHO) No 64-bit compiler found; \
276 exit 1; \
277 else \
278 $(ECHO) 64-bit compiler; \
279 $(ECHO) $($(MACH64)_CC); \
280 $(ECHO) $$__COMPILER; \
281 $($(MACH64)_CC) -V 2>&1 | head -1; \
282 fi; \
283 fi
284
285 java-version:
286 @if [ -x "$(JAVAC)" ]; then \
287 $(ECHO) $(JAVAC); \
288 $(JAVA_ROOT)/bin/java -fullversion 2>&1 | head -1; \
289 else \
290 $(ECHO) No Java compiler found; \
291 exit 1; \
292 fi
293
294 openssl-version:
295 @if [ -x "$(OPENSSL)" ]; then \
296 $(ECHO) $(OPENSSL); \
297 $(OPENSSL) version; \
298 $(OPENSSL) version -f | \
299 $(SED) -n '/_API/{s/.*_API/ API/;s/ -.*//;p;}'; \
300 else \
301 $(ECHO) No OpenSSL utility found; \
302 fi
|