diff options
Diffstat (limited to 'build-0.3/cxx/generic')
-rw-r--r-- | build-0.3/cxx/generic/configuration-rules.make | 14 | ||||
-rw-r--r-- | build-0.3/cxx/generic/configuration-sl-rules.make | 14 | ||||
-rw-r--r-- | build-0.3/cxx/generic/configuration-sl.make | 20 | ||||
-rw-r--r-- | build-0.3/cxx/generic/configuration.make | 21 | ||||
-rwxr-xr-x | build-0.3/cxx/generic/configure | 27 | ||||
-rwxr-xr-x | build-0.3/cxx/generic/configure-sl | 36 | ||||
-rw-r--r-- | build-0.3/cxx/generic/cxx-d.make | 18 | ||||
-rw-r--r-- | build-0.3/cxx/generic/cxx-o.make | 39 | ||||
-rw-r--r-- | build-0.3/cxx/generic/o-e.make | 27 | ||||
-rw-r--r-- | build-0.3/cxx/generic/o-l.make | 66 |
10 files changed, 0 insertions, 282 deletions
diff --git a/build-0.3/cxx/generic/configuration-rules.make b/build-0.3/cxx/generic/configuration-rules.make deleted file mode 100644 index 2025cfc..0000000 --- a/build-0.3/cxx/generic/configuration-rules.make +++ /dev/null @@ -1,14 +0,0 @@ -# file : build/cxx/generic/configuration-rules.make -# copyright : Copyright (c) 2004-2012 Code Synthesis Tools CC -# license : GNU GPL v2; see accompanying LICENSE file - -$(dcf_root)/cxx/generic/configuration-dynamic.make: | $(dcf_root)/cxx/generic/. - $(call message,,$(bld_root)/cxx/generic/configure $@) - -ifndef %foreign% - -$(dcf_root)/.disfigure:: - $(call message,rm $(dcf_root)/cxx/generic/configuration-dynamic.make,\ -rm -f $(dcf_root)/cxx/generic/configuration-dynamic.make) - -endif diff --git a/build-0.3/cxx/generic/configuration-sl-rules.make b/build-0.3/cxx/generic/configuration-sl-rules.make deleted file mode 100644 index 3630d26..0000000 --- a/build-0.3/cxx/generic/configuration-sl-rules.make +++ /dev/null @@ -1,14 +0,0 @@ -# file : build/cxx/generic/configuration-sl-rules.make -# copyright : Copyright (c) 2004-2012 Code Synthesis Tools CC -# license : GNU GPL v2; see accompanying LICENSE file - -$(dcf_root)/cxx/generic/configuration-sl-dynamic.make: | $(dcf_root)/cxx/generic/. - $(call message,,$(bld_root)/cxx/generic/configure-sl $@) - -ifndef %foreign% - -$(dcf_root)/.disfigure:: - $(call message,rm $(dcf_root)/cxx/generic/configuration-sl-dynamic.make,\ -rm -f $(dcf_root)/cxx/generic/configuration-sl-dynamic.make) - -endif diff --git a/build-0.3/cxx/generic/configuration-sl.make b/build-0.3/cxx/generic/configuration-sl.make deleted file mode 100644 index f1b75be..0000000 --- a/build-0.3/cxx/generic/configuration-sl.make +++ /dev/null @@ -1,20 +0,0 @@ -# file : build/cxx/generic/configuration-sl.make -# copyright : Copyright (c) 2004-2012 Code Synthesis Tools CC -# license : GNU GPL v2; see accompanying LICENSE file - -$(call include-once,$(bld_root)/cxx/generic/configuration-sl-rules.make,$(dcf_root)) - -# Dynamic configuration. -# -cxx_generic_pic_option := - -$(call -include,$(dcf_root)/cxx/generic/configuration-sl-dynamic.make) - -ifdef cxx_generic_pic_option - -$(out_root)/%: cxx_generic_pic_option := $(cxx_generic_pic_option) -$(out_root)/%: cxx_generic_shared_option := $(cxx_generic_shared_option) - -else -.NOTPARALLEL: -endif diff --git a/build-0.3/cxx/generic/configuration.make b/build-0.3/cxx/generic/configuration.make deleted file mode 100644 index 1816913..0000000 --- a/build-0.3/cxx/generic/configuration.make +++ /dev/null @@ -1,21 +0,0 @@ -# file : build/cxx/generic/configuration.make -# copyright : Copyright (c) 2004-2012 Code Synthesis Tools CC -# license : GNU GPL v2; see accompanying LICENSE file - -$(call include-once,$(bld_root)/cxx/generic/configuration-rules.make,$(dcf_root)) - -# Static configuration. -# -ifneq ($(bld_root),$(scf_root)) -$(call -include,$(scf_root)/cxx/generic/configuration-static.make) -endif - -# Dynamic configuration. -# -cxx_generic := - -$(call -include,$(dcf_root)/cxx/generic/configuration-dynamic.make) - -ifndef cxx_generic -.NOTPARALLEL: -endif diff --git a/build-0.3/cxx/generic/configure b/build-0.3/cxx/generic/configure deleted file mode 100755 index b590398..0000000 --- a/build-0.3/cxx/generic/configure +++ /dev/null @@ -1,27 +0,0 @@ -#! /usr/bin/env bash - -# file : build/cxx/generic/configure -# copyright : Copyright (c) 2004-2012 Code Synthesis Tools CC -# license : GNU GPL v2; see accompanying LICENSE file - -# $1 out file -# -# bld_root - build root -# project_name - project name -# - -source $bld_root/dialog.bash - -$echo -$echo -$echo "configuring '$project_name'" -$echo -$echo - -$echo -$echo "Please enter the C++ compiler executable you would like to use." -$echo - -cxx_generic=`read_path --command` - -echo "cxx_generic := $cxx_generic" > $1 diff --git a/build-0.3/cxx/generic/configure-sl b/build-0.3/cxx/generic/configure-sl deleted file mode 100755 index 31df8ce..0000000 --- a/build-0.3/cxx/generic/configure-sl +++ /dev/null @@ -1,36 +0,0 @@ -#! /usr/bin/env bash - -# file : build/cxx/generic/configure-sl -# copyright : Copyright (c) 2004-2012 Code Synthesis Tools CC -# license : GNU GPL v2; see accompanying LICENSE file - -# $1 out file -# -# bld_root - build root -# project_name - project name -# - -source $bld_root/dialog.bash - -$echo -$echo -$echo "configuring '$project_name'" -$echo -$echo - -$echo -$echo "Please enter C++ compiler option(s) used to build position-" -$echo "independent code (e.g., -fPIC, -Kpic, etc)." -$echo - -read -e -p "[]: " pic_option - -$echo -$echo "Please enter C++ compiler option(s) used to build shared" -$echo "libraries (e.g., -shared, -G, etc)." -$echo - -read -e -p "[]: " shared_option - -echo "cxx_generic_pic_option := $pic_option" > $1 -echo "cxx_generic_shared_option := $shared_option" >> $1 diff --git a/build-0.3/cxx/generic/cxx-d.make b/build-0.3/cxx/generic/cxx-d.make deleted file mode 100644 index 4a88451..0000000 --- a/build-0.3/cxx/generic/cxx-d.make +++ /dev/null @@ -1,18 +0,0 @@ -# file : build/cxx/generic/cxx-o.make -# copyright : Copyright (c) 2004-2012 Code Synthesis Tools CC -# license : GNU GPL v2; see accompanying LICENSE file - -$(call include,$(bld_root)/cxx/generic/configuration.make) - -# Make will try to build dependecies (since they are ultimately included -# files) during configuartion phase without cxx_generic being discovered -# yet. This is also why dependecies should be included with -include. -# -ifdef cxx_generic - -.PHONY: $(out_base)/%.o.d.$(cxx_s_suffix).clean - -$(out_base)/%.o.d.$(cxx_s_suffix).clean: - @: - -endif diff --git a/build-0.3/cxx/generic/cxx-o.make b/build-0.3/cxx/generic/cxx-o.make deleted file mode 100644 index 3123dca..0000000 --- a/build-0.3/cxx/generic/cxx-o.make +++ /dev/null @@ -1,39 +0,0 @@ -# file : build/cxx/generic/cxx-o.make -# copyright : Copyright (c) 2004-2012 Code Synthesis Tools CC -# license : GNU GPL v2; see accompanying LICENSE file - -$(call include-once,$(bld_root)/c/cpp-options.make,$(out_base)) -$(call include,$(bld_root)/cxx/generic/configuration.make) - -$(out_base)/%.o: cxx := $(cxx_generic) - -#@@ wrong prefix -# -$(out_base)/%.o: expand-cpp-options-impl = \ -$(if $1,$(shell sed -e 's%include: \(.*\)%\1%' -e t -e d $1)) - -$(out_base)/%.o: expand-cpp-options = \ -$(call expand-cpp-options-impl,$(filter %.cpp-options,$1)) - -ifeq ($(out_base),$(src_base)) -$(out_base)/%.o: $(src_base)/%.$(cxx_s_suffix) -else -$(out_base)/%.o: $(src_base)/%.$(cxx_s_suffix) | $$(dir $$@). -endif - $(call message,c++ $<,$(cxx) \ -$(cpp_options) $(call expand-cpp-options,$^) $(cxx_pp_extra_options) \ -$(cxx_options) $(cxx_pic_options) $(cxx_extra_options) -o $@ -c $<) - -ifneq ($(out_base),$(src_base)) - -$(out_base)/%.o: $(out_base)/%.$(cxx_s_suffix) | $$(dir $$@). - $(call message,c++ $<,$(cxx) \ -$(cpp_options) $(call expand-cpp-options,$^) $(cxx_pp_extra_options) \ -$(cxx_options) $(cxx_pic_options) $(cxx_extra_options) -o $@ -c $<) - -endif - -.PHONY: $(out_base)/%.o.$(cxx_s_suffix).clean - -$(out_base)/%.o.$(cxx_s_suffix).clean: - $(call message,rm $$1,rm -f $$1,$(basename $(basename $@))) diff --git a/build-0.3/cxx/generic/o-e.make b/build-0.3/cxx/generic/o-e.make deleted file mode 100644 index 2f9f02e..0000000 --- a/build-0.3/cxx/generic/o-e.make +++ /dev/null @@ -1,27 +0,0 @@ -# file : build/cxx/generic/o-e.make -# copyright : Copyright (c) 2004-2012 Code Synthesis Tools CC -# license : GNU GPL v2; see accompanying LICENSE file - -$(call include,$(bld_root)/cxx/generic/configuration.make) - -ifneq ($(cxx_extra_lib_paths),) -vpath %.so $(cxx_extra_lib_paths) -vpath %.a $(cxx_extra_lib_paths) -endif - -$(out_base)/%: ld := $(cxx_generic) -$(out_base)/%: expand-l = $(shell sed -e 's%^rpath:\(.*\)%%' $1) - -ifeq ($(out_base),$(src_base)) -$(out_base)/%: $(out_base)/%.o -else -$(out_base)/%: $(out_base)/%.o | $$(dir $$@). -endif - $(call message,ld $@,$(ld) \ -$(cxx_extra_options) $(ld_options) $(cxx_ld_extra_options) -o $@ \ -$(foreach f,$^,$(if $(patsubst %.l,,$f),$f,$(call expand-l,$f))) $(cxx_extra_libs)) - -.PHONY: $(out_base)/%.o.clean - -$(out_base)/%.o.clean: - $(call message,rm $(basename $(basename $@)),rm -f $(basename $@) $(basename $(basename $@))) diff --git a/build-0.3/cxx/generic/o-l.make b/build-0.3/cxx/generic/o-l.make deleted file mode 100644 index 1e7dcff..0000000 --- a/build-0.3/cxx/generic/o-l.make +++ /dev/null @@ -1,66 +0,0 @@ -# file : build/cxx/generic/o-l.make -# copyright : Copyright (c) 2004-2012 Code Synthesis Tools CC -# license : GNU GPL v2; see accompanying LICENSE file - -$(call include,$(bld_root)/cxx/generic/configuration.make) - -ifeq ($(ld_lib_type),shared) -$(call include,$(bld_root)/cxx/generic/configuration-sl.make) -endif - -ifneq ($(cxx_extra_lib_paths),) -vpath %.so $(cxx_extra_lib_paths) -vpath %.a $(cxx_extra_lib_paths) -endif - -ifdef ld_lib_type - -.PHONY: $(out_base)/%.l.o.clean - -ifeq ($(ld_lib_type),archive) - -$(out_base)/%.l: ar := $(ld_lib_ar) -$(out_base)/%.l: ar_options ?= -rc - -$(out_base)/%.l: ranlib := $(ld_lib_ranlib) -$(out_base)/%.l: ranlib_options ?= - -ifeq ($(out_base),$(src_base)) -$(out_base)/%.l: -else -$(out_base)/%.l: | $$(dir $$@). -endif - $(call message,ar $@,$(ar) $(ar_options) $(@D)/lib$(basename $(@F)).a $(filter %.o,$^)) - $(call message,,$(ranlib) $(ranlib_options) $(@D)/lib$(basename $(@F)).a) - $(call message,,echo "$(@D)/lib$(basename $(@F)).a" >$@) - $(call message,,echo "$(patsubst %.l,`cat %.l`,$(filter %.a %.so %.l,$^))" | xargs -n 1 echo >>$@) - -$(out_base)/%.l.o.clean: - $(call message,rm $$1,rm -f $$1 $(@D)/$(patsubst %.l.o.clean,lib%.a,$(@F)),$(basename $(basename $@))) - -else - -$(out_base)/%.l: ld := $(cxx_generic) -$(out_base)/%.l: c_pic_options := $(cxx_generic_pic_option) -$(out_base)/%.l: cxx_pic_options := $(cxx_generic_pic_option) -$(out_base)/%.l: comma_ := , - -$(out_base)/%.l: expand-l = $(shell sed -e 's%^rpath:\(.*\)%%' $1) - -ifeq ($(out_base),$(src_base)) -$(out_base)/%.l: -else -$(out_base)/%.l: | $$(dir $$@). -endif - $(call message,ld $@,$(ld) $(cxx_generic_shared_option) \ -$(cxx_extra_options) $(ld_options) $(cxx_ld_extra_options) -o $(@D)/lib$(basename $(@F)).so \ -$(foreach f,$^,$(if $(patsubst %.l,,$f),$f,$(call expand-l,$f))) $(cxx_extra_libs)) - $(call message,,echo "$(@D)/lib$(basename $(@F)).so" >$@) - $(call message,,echo "rpath:$(@D)" >>$@) - $(call message,,echo "$(patsubst %.l,`cat %.l`,$(filter %.a %.so %.l,$^))" | xargs -n 1 echo >>$@) - -$(out_base)/%.l.o.clean: - $(call message,rm $$1,rm -f $$1 $(@D)/$(patsubst %.l.o.clean,lib%.so,$(@F)),$(basename $(basename $@))) - -endif -endif |