7035978 parfait support for userland bits
1 files added
25 files modified
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | include ../make-rules/shared-macros.mk |
| | |
| | | $(RM) components.mk depends.mk .profile |
| | | |
| | | clobber: $(COMPONENT_DIRS.nosetup) clean |
| | | @cd ../tools ; echo "clobbering tools..." ; $(GMAKE) clobber |
| | | $(RM) -r $(WS_REPO) $(WS_LOGS) $(WS_LINT_CACHE) |
| | | |
| | | |
| | | setup: $(WS_LOGS) $(WS_REPO) tools $(WS_LINT_CACHE) |
| | | |
| | |
| | | endif |
| | | |
| | | tools: |
| | | @cd ../tools ; echo "building tools..." ; $(GMAKE) setup |
| | | @cd ../tools ; echo "building tools..." ; $(GMAKE) clean setup |
| | | |
| | | # $(WS_COMPONENTS) is the home directory for the zone user, so create a profile |
| | | # to pass a few things on to zone based builds |
| | |
| | | # CDDL HEADER END |
| | | |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | # parfait seems to hang on libcmsysTestDynload.so.bc, so for |
| | | # now we have to disable it. |
| | | PARFAIT_BUILD=no |
| | | |
| | | include ../../make-rules/shared-macros.mk |
| | | |
| | |
| | | # as CONFIGURE_OPTIONS; otherwise the correct compilers are not used |
| | | CONFIGURE_ENV += CC="$(CC)" |
| | | CONFIGURE_ENV += CXX="$(CXX)" |
| | | ifeq ($(strip $(PARFAIT_BUILD)),yes) |
| | | CONFIGURE_ENV += CXXFLAGS="-library=stdcxx4" |
| | | endif |
| | | CONFIGURE_ENV += LDFLAGS="$(LDFLAGS)" |
| | | CONFIGURE_ENV += MAKE="$(GMAKE)" |
| | | |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | # parfait seems to spin when looking at the .bc files, so |
| | | # for now disable it. |
| | | PARFAIT_BUILD=no |
| | | |
| | | include ../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME= ghostscript |
| | |
| | | # |
| | | |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | include ../../make-rules/shared-macros.mk |
| | |
| | | |
| | | PATCH_LEVEL = 0 |
| | | |
| | | CLOBBER_PATHS += libgmp.pc libgmpxx.pc |
| | | |
| | | CFLAGS += -features=extinl,extensions |
| | | CFLAGS += -xustr=ascii_utf16_ushort -xcsi |
| | | # -xthreadvar=%all: allow thread-local storage via __thread |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | include ../../make-rules/shared-macros.mk |
| | | |
| | |
| | | COMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz |
| | | COMPONENT_ARCHIVE_HASH_1= sha1:87b947aa4312bcf776d442abc23e142eb35c16da |
| | | COMPONENT_ARCHIVE_URL_1= $(EXTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE_1) |
| | | CLOBBER_PATHS += $(COMPONENT_NAME_1) |
| | | |
| | | include ../../make-rules/prep.mk |
| | | include ../../make-rules/configure.mk |
| | |
| | | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | # we really need to use studio, mostly because that's what |
| | | # sigc++ uses, so we don't like that parfait is g++ in disguise |
| | | PARFAIT_BUILD=no |
| | | |
| | | include ../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME= libtorrent |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | |
| | | download: |
| | | |
| | | clobber: clean |
| | | $(RM) $(SOURCE_DIR)/.prep |
| | | |
| | | # common targets |
| | | $(SOURCE_DIR)/.prep: |
| | |
| | | |
| | | # enumerates USB devices plugged into your system |
| | | test: $(TEST_32_and_64) |
| | | |
| | | CLEAN_PATH += $(SOURCE_DIR)/.prep |
| | | |
| | | BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
| | | |
| | |
| | | download: |
| | | |
| | | clobber: clean |
| | | $(RM) $(SOURCE_DIR)/.prep |
| | | |
| | | prep: $(SOURCE_DIR)/.prep |
| | | |
| | |
| | | |
| | | # enumerates USB devices plugged into your system |
| | | test: $(TEST_32_and_64) |
| | | |
| | | CLEAN_PATHS += $(SOURCE_DIR)/.prep |
| | | |
| | | BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
| | | |
New file |
| | |
| | | --- mpc-0.9/configure.orig Wed Jan 25 11:05:39 2012 |
| | | +++ mpc-0.9/configure Wed Jan 25 11:05:46 2012 |
| | | @@ -10989,7 +10989,7 @@ |
| | | |
| | | fi |
| | | |
| | | -for ac_header in complex.h locale.h inttypes.h stdint.h limits.h unistd.h sys/time.h |
| | | +for ac_header in locale.h inttypes.h stdint.h limits.h unistd.h sys/time.h |
| | | do : |
| | | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| | | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| | |
| | | # |
| | | |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | include ../../make-rules/shared-macros.mk |
| | |
| | | include ../../make-rules/ips.mk |
| | | include ../../make-rules/lint-libraries.mk |
| | | |
| | | CLOBBER_PATHS += libmpfr.pc |
| | | PATCH_LEVEL = 0 |
| | | |
| | | CFLAGS += -features=extinl,extensions |
| | |
| | | # |
| | | |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | include ../../make-rules/shared-macros.mk |
| | |
| | | COMPONENT_INSTALL_ARGS += CHGRP=true |
| | | COMPONENT_INSTALL_ARGS += ROOT=$(PROTO_DIR) |
| | | |
| | | COMPONENT_BUILD_ENV += CC=$(CC) |
| | | COMPONENT_INSTALL_ENV += CC=$(CC) |
| | | |
| | | PKG_PROTO_DIRS += $(COMPONENT_SRC)/doc |
| | | |
| | | # common targets |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | |
| | | $(BUILD_32_and_64): ccwrap |
| | | build: $(BUILD_32_and_64) |
| | | |
| | | CLOBBER_PATHS += ccwrap |
| | | |
| | | # We follow what we do for install in openssl/openssl-1.0.0 component. Please |
| | | # see the comment in Makefile in there for more information. |
| | | install: $(INSTALL_32_and_64) |
| | |
| | | FAKE_CC = cc |
| | | FAKE_APPS = $(FAKE_ISALIST) $(FAKE_MAKE) $(FAKE_CC) |
| | | |
| | | CLOBBER_PATHS += $(FAKE_APPS) |
| | | |
| | | # Do not use $(PWD), it would not work if run from a different directory with |
| | | # "gmake -C" as we do from openssl-0.9.8-fips-140. |
| | | # we'll also pick up gcc if we find it in the path, so force it to |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | |
| | | # requirements. |
| | | COMPONENT_BUILD_TARGETS = profile-opt |
| | | XPROFILE_DIR = $(BUILD_DIR_$(BITS))/.profile |
| | | PYFLAGS.i386 = -xtarget=opteron -xarch=sse2 -xcache=generic |
| | | # the non-clang compiler we need to use for now doesn't like |
| | | # this flag |
| | | #ifneq ($(strip $(PARFAIT_BUILD)),yes) |
| | | PYFLAGS.i386 = -xtarget=opteron |
| | | #endif |
| | | PYFLAGS.i386 += -xarch=sse2 -xcache=generic |
| | | PYFLAGS.sparc = |
| | | CFLAGS += -xO5 $(PYFLAGS.$(MACH)) |
| | | LDFLAGS += -xO5 $(PYFLAGS.$(MACH)) |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | |
| | | # |
| | | include ../../../make-rules/shared-macros.mk |
| | |
| | | # requirements. |
| | | COMPONENT_BUILD_TARGETS = profile-opt |
| | | XPROFILE_DIR = $(BUILD_DIR_$(BITS))/.profile |
| | | PYFLAGS.i386 = -xtarget=opteron -xarch=sse2 -xcache=generic |
| | | # the non-clang compiler we need to use for now doesn't like |
| | | # this flag |
| | | #ifneq ($(strip $(PARFAIT_BUILD)),yes) |
| | | PYFLAGS.i386 = -xtarget=opteron |
| | | #endif |
| | | PYFLAGS.i386 += -xarch=sse2 -xcache=generic |
| | | PYFLAGS.sparc = |
| | | CFLAGS += -xO5 $(PYFLAGS.$(MACH)) |
| | | LDFLAGS += -xO5 $(PYFLAGS.$(MACH)) |
| | |
| | | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | # we really need to use studio, mostly because that's what |
| | | # sigc++ uses, so we don't like that parfait is g++ in disguise |
| | | PARFAIT_BUILD=no |
| | | |
| | | include ../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME= rtorrent |
| | |
| | | # |
| | | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | # parfait seems to spin when looking at the .bc files, so |
| | | # for now disable it. |
| | | PARFAIT_BUILD=no |
| | | |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME= samba |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | # we really need to use studio so we don't like that |
| | | # parfait is g++ in disguise |
| | | PARFAIT_BUILD=no |
| | | |
| | | include ../../make-rules/shared-macros.mk |
| | | |
| | | PATH=$(dir $(CC)):/usr/gnu/bin:/usr/bin |
| | |
| | | COMPONENT_ARCHIVE_HASH= sha1:38efa30958222b2733f22098b3db09161d2e6c8c |
| | | COMPONENT_ARCHIVE_URL= http://www.apache.org/dist/stdcxx/$(COMPONENT_ARCHIVE) |
| | | |
| | | CLOBBER_PATHS += install.sh |
| | | |
| | | include ../../make-rules/prep.mk |
| | | include ../../make-rules/configure.mk |
| | | include ../../make-rules/ips.mk |
| | |
| | | # |
| | | |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | include ../../make-rules/shared-macros.mk |
| | | |
| | | PATH=$(dir $(CC)):/usr/bin:/usr/gnu/bin |
| | | PATH=$(dir $(CC)):$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin |
| | | |
| | | COMPONENT_NAME= subversion |
| | | COMPONENT_VERSION= 1.6.16 |
| | |
| | | $(BUILD_DIR_64)/.configured: BITS=64 |
| | | |
| | | CONFIGURE_ENV += $(CONFIGURE_ENV.$(BITS)) |
| | | ifeq ($(strip $(PARFAIT_BUILD)),yes) |
| | | # parfait creates '*.bc' files which can confuse configure's |
| | | # object/exe extension detection. which we really don't need it |
| | | # to do anyway, so we'll just tell it what they are. |
| | | CONFIGURE_ENV += ac_cv_objext=o |
| | | CONFIGURE_ENV += ac_cv_exeext="" |
| | | # this is fixed in the clang compiler but we can't use it yet |
| | | CONFIGURE_ENV += ac_cv_header_stdbool_h=yes |
| | | endif |
| | | |
| | | |
| | | # temporarily work around some issues |
| | | CONFIGURE_ENV += "ac_cv_func_realloc_0_nonnull=yes" |
| | |
| | | (cd $(@D) ; $(ENV) $(COMPONENT_BUILD_ENV) \ |
| | | $(GMAKE) $(COMPONENT_BUILD_ARGS) $(COMPONENT_BUILD_TARGETS)) |
| | | $(COMPONENT_POST_BUILD_ACTION) |
| | | ifeq ($(strip $(PARFAIT_BUILD)),yes) |
| | | -$(PARFAIT) build |
| | | endif |
| | | $(TOUCH) $@ |
| | | |
| | | # install the built source into a prototype area |
| | |
| | | $(COMPONENT_POST_TEST_ACTION) |
| | | $(TOUCH) $@ |
| | | |
| | | ifeq ($(strip $(PARFAIT_BUILD)),yes) |
| | | parfait: install |
| | | -$(PARFAIT) build |
| | | else |
| | | parfait: |
| | | $(MAKE) PARFAIT_BUILD=yes parfait |
| | | endif |
| | | |
| | | clean:: |
| | | $(RM) -r $(BUILD_DIR) $(PROTO_DIR) |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | # |
| | | # Rules and Macros for building opens source software that just uses their |
| | |
| | | (cd $(@D) ; $(ENV) $(COMPONENT_BUILD_ENV) \ |
| | | $(GMAKE) $(COMPONENT_BUILD_ARGS) $(COMPONENT_BUILD_TARGETS)) |
| | | $(COMPONENT_POST_BUILD_ACTION) |
| | | ifeq ($(strip $(PARFAIT_BUILD)),yes) |
| | | -$(PARFAIT) build |
| | | endif |
| | | $(TOUCH) $@ |
| | | |
| | | # install the built source into a prototype area |
| | |
| | | $(COMPONENT_POST_INSTALL_ACTION) |
| | | $(TOUCH) $@ |
| | | |
| | | |
| | | # test the built source |
| | | $(BUILD_DIR)/%/.tested: $(BUILD_DIR)/%/.built |
| | | $(COMPONENT_PRE_TEST_ACTION) |
| | |
| | | $(COMPONENT_POST_TEST_ACTION) |
| | | $(TOUCH) $@ |
| | | |
| | | ifeq ($(strip $(PARFAIT_BUILD)),yes) |
| | | parfait: install |
| | | -$(PARFAIT) build |
| | | else |
| | | parfait: |
| | | $(MAKE) PARFAIT_BUILD=yes parfait |
| | | endif |
| | | |
| | | clean:: |
| | | $(RM) -r $(BUILD_DIR) $(PROTO_DIR) |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | # we only do 32 bit perl for now. |
| | | BITS=32 |
| | | |
| | | COMMON_PERL_ENV += MAKE=$(GMAKE) |
| | | COMMON_PERL_ENV += PATH=$(dir $(CC)):$(PATH) |
| | | COMMON_PERL_ENV += PATH=$(dir $(CC)):$(SPRO_VROOT)/bin:$(PATH) |
| | | COMMON_PERL_ENV += LANG="" |
| | | COMMON_PERL_ENV += CC="$(CC)" |
| | | COMMON_PERL_ENV += CFLAGS="$(PERL_OPTIMIZE)" |
| | |
| | | (cd $(@D) ; $(ENV) $(COMPONENT_TEST_ENV) $(GMAKE) \ |
| | | $(COMPONENT_TEST_ARGS) $(COMPONENT_TEST_TARGETS)) |
| | | $(COMPONENT_POST_TEST_ACTION) |
| | | ifeq ($(strip $(PARFAIT_BUILD)),yes) |
| | | -$(PARFAIT) build |
| | | endif |
| | | $(TOUCH) $@ |
| | | |
| | | clean:: |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | UNPACK = $(WS_TOOLS)/userland-unpack |
| | |
| | | # append filenames to PATCHES, you'll have to set $(EXTRA_PATCHES) prior to |
| | | # inclusion. |
| | | PATCH_DIR ?= patches |
| | | |
| | | # we may need patches only for use with parfait |
| | | ifeq ($(strip $(PARFAIT_BUILD)),yes) |
| | | PARFAIT_PATCH_DIR = parfait |
| | | endif |
| | | PATCH_PATTERN ?= *.patch |
| | | PATCHES = $(shell find $(PATCH_DIR) -type f -name '$(PATCH_PATTERN)' \ |
| | | PATCHES = $(shell find $(PATCH_DIR) $(PARFAIT_PATCH_DIR) -type f -name '$(PATCH_PATTERN)' \ |
| | | 2>/dev/null | sort) $(EXTRA_PATCHES) |
| | | STAMPS = $(PATCHES:$(PATCH_DIR)/%=$(SOURCE_DIR)/.%ed) |
| | | ifeq ($(strip $(PARFAIT_BUILD)),yes) |
| | | STAMPS += $(PATCHES:$(PARFAIT_PATCH_DIR)/%=$(SOURCE_DIR)/.%ed) |
| | | endif |
| | | |
| | | $(SOURCE_DIR)/.%ed: $(PATCH_DIR)/% |
| | | $(GPATCH) -d $(@D) $(GPATCH_FLAGS) < $< |
| | | $(TOUCH) $@ |
| | | |
| | | ifeq ($(strip $(PARFAIT_BUILD)),yes) |
| | | $(SOURCE_DIR)/.%ed: $(PARFAIT_PATCH_DIR)/% |
| | | $(GPATCH) -d $(@D) $(GPATCH_FLAGS) < $< |
| | | $(TOUCH) $@ |
| | | endif |
| | | |
| | | # template for download rules. add new rules with $(call download-rule, suffix) |
| | | define download-rule |
| | | ARCHIVES += $$(COMPONENT_ARCHIVE$(1)) |
| | |
| | | $(PYTHON.$(BITS)) ./setup.py build \ |
| | | --build-temp $(@D:$(BUILD_DIR)/%=%)) |
| | | $(COMPONENT_POST_BUILD_ACTION) |
| | | ifeq ($(strip $(PARFAIT_BUILD)),yes) |
| | | -$(PARFAIT) $(SOURCE_DIR)/$(@D:$(BUILD_DIR)/%=%) |
| | | endif |
| | | $(TOUCH) $@ |
| | | |
| | | |
| | |
| | | $(COMPONENT_POST_TEST_ACTION) |
| | | $(TOUCH) $@ |
| | | |
| | | ifeq ($(strip $(PARFAIT_BUILD)),yes) |
| | | parfait: install |
| | | -$(PARFAIT) build |
| | | else |
| | | parfait: |
| | | $(MAKE) PARFAIT_BUILD=yes parfait |
| | | endif |
| | | |
| | | clean:: |
| | | $(RM) -r $(SOURCE_DIR) $(BUILD_DIR) |
| | |
| | | SPRO_ROOT = $(BUILD_TOOLS)/SUNWspro |
| | | SPRO_VROOT = $(SPRO_ROOT)/sunstudio12.1 |
| | | |
| | | PARFAIT_ROOT = $(BUILD_TOOLS)/parfait/parfait-tools-0.5.0.1/ |
| | | PARFAIT= $(PARFAIT_ROOT)/bin/parfait |
| | | export PARFAIT_NATIVESUNCC=$(SPRO_VROOT)/bin/cc |
| | | export PARFAIT_NATIVESUNCXX=$(SPRO_VROOT)/bin/CC |
| | | export PARFAIT_NATIVEGCC=$(GCC_ROOT)/bin/gcc |
| | | export PARFAIT_NATIVEGXX=$(GCC_ROOT)/bin/g++ |
| | | # for now |
| | | export PARFAIT_CLANG=0 |
| | | |
| | | GCC_ROOT = /usr/sfw |
| | | |
| | | CC.studio.32 = $(SPRO_VROOT)/bin/cc |
| | | CXX.studio.32 = $(SPRO_VROOT)/bin/CC |
| | | |
| | | |
| | | CC.studio.64 = $(SPRO_VROOT)/bin/cc |
| | | CXX.studio.64 = $(SPRO_VROOT)/bin/CC |
| | |
| | | CC.gcc.64 = $(GCC_ROOT)/bin/gcc |
| | | CXX.gcc.64 = $(GCC_ROOT)/bin/g++ |
| | | |
| | | CC = $(CC.$(COMPILER).$(BITS)) |
| | | CXX = $(CXX.$(COMPILER).$(BITS)) |
| | | |
| | | lint.32 = $(SPRO_VROOT)/bin/lint -m32 |
| | | lint.64 = $(SPRO_VROOT)/bin/lint -m64 |
| | |
| | | PYTHON.2.7.VENDOR_PACKAGES.32 = /usr/lib/python2.7/vendor-packages |
| | | PYTHON.2.7.VENDOR_PACKAGES.64 = /usr/lib/python2.7/vendor-packages/64 |
| | | PYTHON.2.7.VENDOR_PACKAGES = $(PYTHON.2.7.VENDOR_PACKAGES.$(BITS)) |
| | | |
| | | ifeq ($(strip $(PARFAIT_BUILD)),yes) |
| | | CC.studio.32 = $(WS_TOOLS)/parfait/cc |
| | | CXX.studio.32 = $(WS_TOOLS)/parfait/CC |
| | | CC.studio.64 = $(WS_TOOLS)/parfait/cc |
| | | CXX.studio.64 = $(WS_TOOLS)/parfait/CC |
| | | CC.gcc.32 = $(WS_TOOLS)/parfait/gcc |
| | | CXX.gcc.32 = $(WS_TOOLS)/parfait/g++ |
| | | CC.gcc.64 = $(WS_TOOLS)/parfait/gcc |
| | | CXX.gcc.64 = $(WS_TOOLS)/parfait/g++ |
| | | LD = $(WS_TOOLS)/parfait/ld |
| | | endif |
| | | |
| | | CC = $(CC.$(COMPILER).$(BITS)) |
| | | CXX = $(CXX.$(COMPILER).$(BITS)) |
| | | |
| | | |
| | | PYTHON_VENDOR_PACKAGES.32 = /usr/lib/python$(PYTHON_VERSION)/vendor-packages |
| | | PYTHON_VENDOR_PACKAGES.64 = /usr/lib/python$(PYTHON_VERSION)/vendor-packages/64 |
| | |
| | | COMPONENT_INSTALL_ARGS += $(COMPONENT_INSTALL_ARGS.$(BITS)) |
| | | |
| | | # declare these phony so that we avoid filesystem conflicts. |
| | | .PHONY: prep build install publish test clean clobber |
| | | .PHONY: prep build install publish test clean clobber parfait |
| | | |
| | | # If there are no tests to execute |
| | | NO_TESTS = test-nothing |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2010, Oracle and/or it's affiliates. All rights reserved. |
| | | # Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | include ../make-rules/shared-macros.mk |
| | | |
| | | download setup prep build install publish validate: time-$(MACH32).so \ |
| | | time-$(MACH64).so |
| | | download setup prep build install publish \ |
| | | validate: links time-$(MACH32).so time-$(MACH64).so |
| | | |
| | | # generate wrappers for parfait. we need to generate them |
| | | # with the correct compiler variables from the common makefiles because |
| | | # some things reset the environment which causes lovely infinite |
| | | # loops |
| | | links: |
| | | $(MKDIR) parfait |
| | | @for i in cc CC gcc g++ ld ; do \ |
| | | $(MKDIR) parfait ; \ |
| | | $(RM) parfait/$$i ; \ |
| | | echo "#!/bin/ksh" > parfait/$$i ; \ |
| | | echo "IFS=" >> parfait/$$i ; \ |
| | | echo "export PARFAIT_NATIVESUNCC=$(SPRO_VROOT)/bin/cc" >> parfait/$$i ; \ |
| | | echo "export PARFAIT_NATIVESUNCXX=$(SPRO_VROOT)/bin/CC" >> parfait/$$i ; \ |
| | | echo "export PARFAIT_NATIVEGCC=$(GCC_ROOT)/bin/gcc" >> parfait/$$i ; \ |
| | | echo "export PARFAIT_NATIVEGXX=$(GCC_ROOT)/bin/g++" >> parfait/$$i ; \ |
| | | echo "export PARFAIT_CLANG="$(PARFAIT_CLANG) >> parfait/$$i ; \ |
| | | echo "exec" $(PARFAIT_ROOT)/bin/parfait-$$i '$$*' >> parfait/$$i ; \ |
| | | chmod +x parfait/$$i ; \ |
| | | done |
| | | |
| | | |
| | | time-$(MACH64).o: BITS=64 |
| | | time-$(MACH32).o time-$(MACH64).o: CFLAGS += -Kpic |
| | |
| | | $(LD) -G -o $@ $< |
| | | |
| | | clean: |
| | | $(RM) time-*.o |
| | | $(RM) time-*.o time*.bc |
| | | |
| | | clobber: clean |
| | | $(RM) time-*.so |
| | | $(RM) time-*.so python/pkglint/*.pyc |
| | | $(RM) -r parfait |
| | | |