From 1e552b818ee2f6680dd6f318c8aaea0b1f857955 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 3 May 2010 09:51:56 +0200 Subject: Start tracking import stubs with git --- libboost/regex/rules.make | 50 +++++++++++++++++++++++++++++++++++++++++++++++ libboost/regex/stub.make | 36 ++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 libboost/regex/rules.make create mode 100644 libboost/regex/stub.make (limited to 'libboost/regex') diff --git a/libboost/regex/rules.make b/libboost/regex/rules.make new file mode 100644 index 0000000..2f6b8f7 --- /dev/null +++ b/libboost/regex/rules.make @@ -0,0 +1,50 @@ +# file : build/import/libboost/regex/rules.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2005-2010 Boris Kolpackov +# license : GNU GPL v2; see accompanying LICENSE file + +$(dcf_root)/import/libboost/%: root := $(libboost_root) + +$(dcf_root)/import/libboost/regex/regex.l: \ + | $(dcf_root)/import/libboost/regex/. + +ifeq ($(libboost_type),archive) + +ifeq ($(libboost_system),y) +$(dcf_root)/import/libboost/regex/regex.l: \ + $(libboost_root)/stage/lib/libboost_regex$(libboost_suffix).a \ + $(libboost_root)/stage/lib/libboost_system$(libboost_suffix).a +else +$(dcf_root)/import/libboost/regex/regex.l: \ + $(libboost_root)/stage/lib/libboost_regex$(libboost_suffix).a +endif + @echo $^ >$@ + +else + +ifeq ($(libboost_system),y) +$(dcf_root)/import/libboost/regex/regex.l: \ + $(libboost_root)/stage/lib/libboost_regex$(libboost_suffix).so \ + $(libboost_root)/stage/lib/libboost_system$(libboost_suffix).so +else +$(dcf_root)/import/libboost/regex/regex.l: \ + $(libboost_root)/stage/lib/libboost_regex$(libboost_suffix).so +endif + @echo $^ >$@ + @echo rpath:$(root)/stage/lib >>$@ + +endif + + +$(dcf_root)/import/libboost/regex/regex.l.cpp-options: \ + | $(dcf_root)/import/libboost/regex/. + @echo include: -I$(root) >$@ + +ifndef %foreign% + +disfigure:: + $(call message,rm $(dcf_root)/import/libboost/regex/regex.l,\ +rm -f $(dcf_root)/import/libboost/regex/regex.l) + $(call message,,rm -f $(dcf_root)/import/libboost/regex/regex.l.cpp-options) + +endif diff --git a/libboost/regex/stub.make b/libboost/regex/stub.make new file mode 100644 index 0000000..eabc515 --- /dev/null +++ b/libboost/regex/stub.make @@ -0,0 +1,36 @@ +# file : build/import/libboost/regex/stub.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2005-2010 Boris Kolpackov +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(scf_root)/import/libboost/configuration-rules.make,$(dcf_root)) + +libboost_installed := + +$(call -include,$(dcf_root)/import/libboost/configuration-dynamic.make) + +ifdef libboost_installed + +ifeq ($(libboost_installed),y) + +ifeq ($(libboost_system),y) +$(call export,l: -lboost_regex$(libboost_suffix) -lboost_system$(libboost_suffix),cpp_options: ) +else +$(call export,l: -lboost_regex$(libboost_suffix),cpp_options: ) +endif + +else + +$(call include-once,$(scf_root)/import/libboost/regex/rules.make,$(dcf_root)) + +$(call export,\ + l: $(dcf_root)/import/libboost/regex/regex.l,\ + cpp-options: $(dcf_root)/import/libboost/regex/regex.l.cpp-options) + +endif + +else + +.NOTPARALLEL: + +endif -- cgit v1.1