|
@@ -175,6 +175,10 @@
|
|
|
// And $[libs] is the set of libraries we will link with.
|
|
// And $[libs] is the set of libraries we will link with.
|
|
|
#defer libs $[unique $[actual_local_libs:%=%$[dllext]] $[patsubst %:c,,%:m %,%$[dllext],$[OTHER_LIBS]] $[get_libs]]
|
|
#defer libs $[unique $[actual_local_libs:%=%$[dllext]] $[patsubst %:c,,%:m %,%$[dllext],$[OTHER_LIBS]] $[get_libs]]
|
|
|
|
|
|
|
|
|
|
+// This is the set of files we might copy into *.prebuilt, if we have
|
|
|
|
|
+// bison and flex (or copy from *.prebuilt if we don't have them).
|
|
|
|
|
+#define bison_prebuilt $[patsubst %.yxx,%.h,$[yxx_so_sources] $[yxx_st_sources]] $[patsubst %.yxx,%.cxx,$[yxx_so_sources] $[yxx_st_sources]] $[patsubst %.lxx,%.cxx,$[lxx_so_sources] $[lxx_st_sources]]
|
|
|
|
|
+
|
|
|
// for single-processor builds, write out *_composite.cxx files that include all composite
|
|
// for single-processor builds, write out *_composite.cxx files that include all composite
|
|
|
// files into 1 in order to speed the build of our heavily templated source
|
|
// files into 1 in order to speed the build of our heavily templated source
|
|
|
#forscopes lib_target bin_target static_lib_target ss_lib_target
|
|
#forscopes lib_target bin_target static_lib_target ss_lib_target
|
|
@@ -303,6 +307,11 @@ uninstall-igate :
|
|
|
$[TAB] rm -f $[sort $[installed_igate_files]]
|
|
$[TAB] rm -f $[sort $[installed_igate_files]]
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
|
|
+#if $[HAVE_BISON]
|
|
|
|
|
+prebuild-bison : $[patsubst %,%.prebuilt,$[bison_prebuilt]]
|
|
|
|
|
+clean-prebuild-bison :
|
|
|
|
|
+$[TAB] rm -f $[sort $[patsubst %,%.prebuilt,$[bison_prebuilt]]]
|
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
// We need a rule for each directory we might need to make. This
|
|
// We need a rule for each directory we might need to make. This
|
|
|
// loops through the full set of directories and creates a rule to
|
|
// loops through the full set of directories and creates a rule to
|
|
@@ -734,17 +743,31 @@ $[TAB] $[LINK_BIN_C]
|
|
|
// Rules to generate a C++ file from a Bison input file.
|
|
// Rules to generate a C++ file from a Bison input file.
|
|
|
#foreach file $[sort $[yxx_so_sources] $[yxx_st_sources]]
|
|
#foreach file $[sort $[yxx_so_sources] $[yxx_st_sources]]
|
|
|
#define target $[patsubst %.yxx,%.cxx,$[file]]
|
|
#define target $[patsubst %.yxx,%.cxx,$[file]]
|
|
|
|
|
+#define target_header $[patsubst %.yxx,%.h,$[file]]
|
|
|
|
|
+#if $[HAVE_BISON]
|
|
|
#define source $[file]
|
|
#define source $[file]
|
|
|
$[target] : $[source]
|
|
$[target] : $[source]
|
|
|
$[TAB] $[BISON] $[YFLAGS] -y $[if $[YACC_PREFIX],-d --name-prefix=$[YACC_PREFIX]] $[source]
|
|
$[TAB] $[BISON] $[YFLAGS] -y $[if $[YACC_PREFIX],-d --name-prefix=$[YACC_PREFIX]] $[source]
|
|
|
$[TAB] mv y.tab.c $[target]
|
|
$[TAB] mv y.tab.c $[target]
|
|
|
$[TAB] mv y.tab.h $[patsubst %.yxx,%.h,$[source]]
|
|
$[TAB] mv y.tab.h $[patsubst %.yxx,%.h,$[source]]
|
|
|
|
|
+$[target].prebuilt : $[target]
|
|
|
|
|
+$[TAB] cp $[target] $[target].prebuilt
|
|
|
|
|
+$[target_header].prebuilt : $[target_header]
|
|
|
|
|
+$[TAB] cp $[target_header] $[target_header].prebuilt
|
|
|
|
|
+#else // HAVE_BISON
|
|
|
|
|
+#define source $[target].prebuilt
|
|
|
|
|
+$[target] : $[source]
|
|
|
|
|
+$[TAB] cp $[source] $[target]
|
|
|
|
|
+$[target_header] : $[source]
|
|
|
|
|
+$[TAB] cp $[source] $[target_header]
|
|
|
|
|
+#endif // HAVE_BISON
|
|
|
|
|
|
|
|
#end file
|
|
#end file
|
|
|
|
|
|
|
|
// Rules to generate a C++ file from a Flex input file.
|
|
// Rules to generate a C++ file from a Flex input file.
|
|
|
#foreach file $[sort $[lxx_so_sources] $[lxx_st_sources]]
|
|
#foreach file $[sort $[lxx_so_sources] $[lxx_st_sources]]
|
|
|
#define target $[patsubst %.lxx,%.cxx,$[file]]
|
|
#define target $[patsubst %.lxx,%.cxx,$[file]]
|
|
|
|
|
+#if $[HAVE_BISON]
|
|
|
#define source $[file]
|
|
#define source $[file]
|
|
|
$[target] : $[source]
|
|
$[target] : $[source]
|
|
|
$[TAB] $[FLEX] $[LFLAGS] $[if $[YACC_PREFIX],-P$[YACC_PREFIX]] -olex.yy.c $[source]
|
|
$[TAB] $[FLEX] $[LFLAGS] $[if $[YACC_PREFIX],-P$[YACC_PREFIX]] -olex.yy.c $[source]
|
|
@@ -752,6 +775,13 @@ $[TAB] $[FLEX] $[LFLAGS] $[if $[YACC_PREFIX],-P$[YACC_PREFIX]] -olex.yy.c $[sour
|
|
|
#define script /#include <unistd.h>/d
|
|
#define script /#include <unistd.h>/d
|
|
|
$[TAB] $[SED]
|
|
$[TAB] $[SED]
|
|
|
$[TAB] rm $[source]
|
|
$[TAB] rm $[source]
|
|
|
|
|
+$[target].prebuilt : $[target]
|
|
|
|
|
+$[TAB] cp $[target] $[target].prebuilt
|
|
|
|
|
+#else // HAVE_BISON
|
|
|
|
|
+#define source $[target].prebuilt
|
|
|
|
|
+$[target] : $[source]
|
|
|
|
|
+$[TAB] cp $[source] $[target]
|
|
|
|
|
+#endif // HAVE_BISON
|
|
|
|
|
|
|
|
#end file
|
|
#end file
|
|
|
|
|
|
|
@@ -981,6 +1011,11 @@ $[TAB] rm -f $[install_headers_dir]/$[CONFIG_HEADER]
|
|
|
#endif
|
|
#endif
|
|
|
uninstall-igate : $[subdirs:%=uninstall-igate-%]
|
|
uninstall-igate : $[subdirs:%=uninstall-igate-%]
|
|
|
|
|
|
|
|
|
|
+#if $[HAVE_BISON]
|
|
|
|
|
+prebuild-bison : $[subdirs:%=prebuild-bison-%]
|
|
|
|
|
+clean-prebuild-bison : $[subdirs:%=clean-prebuild-bison-%]
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
#formap dirname subdirs
|
|
#formap dirname subdirs
|
|
|
#define depends
|
|
#define depends
|
|
|
$[dirname] : $[dirnames $[if $[build_directory],$[DIRNAME]],$[DEPEND_DIRS]]
|
|
$[dirname] : $[dirnames $[if $[build_directory],$[DIRNAME]],$[DEPEND_DIRS]]
|
|
@@ -1032,6 +1067,15 @@ uninstall-igate-$[dirname] :
|
|
|
$[TAB] cd ./$[PATH] && $(MAKE) uninstall-igate
|
|
$[TAB] cd ./$[PATH] && $(MAKE) uninstall-igate
|
|
|
#end dirname
|
|
#end dirname
|
|
|
|
|
|
|
|
|
|
+#if $[HAVE_BISON]
|
|
|
|
|
+#formap dirname subdirs
|
|
|
|
|
+prebuild-bison-$[dirname] :
|
|
|
|
|
+$[TAB]cd ./$[PATH] && $(MAKE) prebuild-bison
|
|
|
|
|
+clean-prebuild-bison-$[dirname] :
|
|
|
|
|
+$[TAB]cd ./$[PATH] && $(MAKE) clean-prebuild-bison
|
|
|
|
|
+#end dirname
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
#if $[ne $[CONFIG_HEADER],]
|
|
#if $[ne $[CONFIG_HEADER],]
|
|
|
$[install_headers_dir] :
|
|
$[install_headers_dir] :
|
|
|
$[TAB] @test -d $[install_headers_dir] || echo mkdir -p $[install_headers_dir]
|
|
$[TAB] @test -d $[install_headers_dir] || echo mkdir -p $[install_headers_dir]
|