Makefile (a86080f9f90b0c57b0d919eff98a59d743dc5a5f) Makefile (bf40377cf91c317ea211179252e4a06e2f1a7999)
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#

--- 305 unchanged lines hidden (view full) ---

314 @cd cmd/login; pwd; $(MAKE) ONC_PLUS
315 @cd uts; pwd; $(MAKE) ONC_PLUS
316
317#
318# Targets for reporting compiler versions; nightly uses these.
319#
320
321cc-version:
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#

--- 305 unchanged lines hidden (view full) ---

314 @cd cmd/login; pwd; $(MAKE) ONC_PLUS
315 @cd uts; pwd; $(MAKE) ONC_PLUS
316
317#
318# Targets for reporting compiler versions; nightly uses these.
319#
320
321cc-version:
322 @if [ -x "$($(MACH)_CC)" ]; then \
323 $(ECHO) $($(MACH)_CC); \
324 $($(MACH)_CC) -V 2>&1 | head -1; \
325 elif [ -x "$(SPRO_VROOT)/bin/cc" ]; then \
326 $(ECHO) $(SPRO_VROOT)/bin/cc; \
327 $(SPRO_VROOT)/bin/cc -V 2>&1 | head -1; \
328 else \
329 $(ECHO) No compiler found; \
330 exit 1; \
322 @if [ -x "$($(MACH)_CC)" ]; then \
323 $(ECHO) $($(MACH)_CC); \
324 $($(MACH)_CC) -V 2>&1 | head -1; \
325 else \
326 __COMPILER=`$($(MACH)_CC) -_compiler 2>/dev/null || $(TRUE)`;\
327 if [ -z "$$__COMPILER" ]; then \
328 $(ECHO) No compiler found; \
329 exit 1; \
330 else \
331 $(ECHO) $($(MACH)_CC); \
332 $(ECHO) $$__COMPILER; \
333 $($(MACH)_CC) -V 2>&1 | head -1; \
334 fi; \
331 fi
332
333cc64-version:
335 fi
336
337cc64-version:
334 @if [ -x "$($(MACH64)_CC)" ]; then \
335 $(ECHO) 64-bit compiler; \
336 $(ECHO) $($(MACH64)_CC); \
337 $($(MACH64)_CC) -V 2>&1 | head -1; \
338 elif [ -x "$(GNU_ROOT)/bin/gcc" ]; then \
339 $(ECHO) 64-bit compiler; \
340 $(ECHO) $(GNU_ROOT)/bin/gcc; \
341 $(GNU_ROOT)/bin/gcc --version 2>&1 | head -1; \
342 else \
343 $(ECHO) No 64-bit compiler found; \
338 @if [ -x "$($(MACH64)_CC)" ]; then \
339 $(ECHO) $($(MACH64)_CC); \
340 $($(MACH64)_CC) -V 2>&1 | head -1; \
341 else \
342 __COMPILER=`$($(MACH64)_CC) -_compiler 2>/dev/null || $(TRUE)`;\
343 if [ -z "$$__COMPILER" ]; then \
344 $(ECHO) No 64-bit compiler found; \
345 exit 1; \
346 else \
347 $(ECHO) $($(MACH64)_CC); \
348 $(ECHO) $$__COMPILER; \
349 $($(MACH64)_CC) -V 2>&1 | head -1; \
350 fi; \
344 fi
345
346java-version:
347 @if [ -x "$(JAVAC)" ]; then \
348 $(ECHO) $(JAVAC); \
349 $(JAVA_ROOT)/bin/java -fullversion 2>&1 | head -1; \
350 else \
351 $(ECHO) No Java compiler found; \
352 exit 1; \
353 fi
351 fi
352
353java-version:
354 @if [ -x "$(JAVAC)" ]; then \
355 $(ECHO) $(JAVAC); \
356 $(JAVA_ROOT)/bin/java -fullversion 2>&1 | head -1; \
357 else \
358 $(ECHO) No Java compiler found; \
359 exit 1; \
360 fi