|
@@ -212,6 +212,23 @@ cleanall : clean
|
|
|
rm -f $[DEPENDENCY_CACHE_FILENAME]
|
|
rm -f $[DEPENDENCY_CACHE_FILENAME]
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
|
|
+clean-igate :
|
|
|
|
|
+#forscopes metalib_target lib_target ss_lib_target
|
|
|
|
|
+ #define igatedb $[get_igatedb]
|
|
|
|
|
+ #define igateoutput $[get_igateoutput]
|
|
|
|
|
+ #define igatemscan $[components $[get_igatedb:%=$[RELDIR]/$[so_dir]/%],$[active_component_libs]]
|
|
|
|
|
+ #define igatemout $[if $[igatemscan],lib$[TARGET]_module.cxx]
|
|
|
|
|
+ #if $[igatedb]
|
|
|
|
|
+ rm -f $[so_dir]/$[igatedb]
|
|
|
|
|
+ #endif
|
|
|
|
|
+ #if $[igateoutput]
|
|
|
|
|
+ rm -f $[so_dir]/$[igateoutput] $[igateoutput:%.cxx=$[so_dir]/%.obj]
|
|
|
|
|
+ #endif
|
|
|
|
|
+ #if $[igatemout]
|
|
|
|
|
+ rm -f $[so_dir]/$[igatemout] $[igatemout:%.cxx=$[so_dir]/%.obj]
|
|
|
|
|
+ #endif
|
|
|
|
|
+#end metalib_target lib_target ss_lib_target
|
|
|
|
|
+
|
|
|
// Now, 'install' and 'uninstall'. These simply copy files into the
|
|
// Now, 'install' and 'uninstall'. These simply copy files into the
|
|
|
// install directory (or remove them). The 'install' rule also makes
|
|
// install directory (or remove them). The 'install' rule also makes
|
|
|
// the directories if necessary.
|
|
// the directories if necessary.
|
|
@@ -222,6 +239,9 @@ cleanall : clean
|
|
|
$[INSTALL_DATA:%=$[install_data_dir]/%] \
|
|
$[INSTALL_DATA:%=$[install_data_dir]/%] \
|
|
|
$[INSTALL_CONFIG:%=$[install_config_dir]/%]
|
|
$[INSTALL_CONFIG:%=$[install_config_dir]/%]
|
|
|
|
|
|
|
|
|
|
+#define installed_igate_files \
|
|
|
|
|
+ $[get_igatedb(metalib_target lib_target ss_lib_target):%=$[install_igatedb_dir]/%]
|
|
|
|
|
+
|
|
|
#define install_targets \
|
|
#define install_targets \
|
|
|
$[sort \
|
|
$[sort \
|
|
|
$[if $[install_lib],$[install_lib_dir]] \
|
|
$[if $[install_lib],$[install_lib_dir]] \
|
|
@@ -238,11 +258,18 @@ cleanall : clean
|
|
|
|
|
|
|
|
install : all $[install_targets]
|
|
install : all $[install_targets]
|
|
|
|
|
|
|
|
|
|
+install-igate : $[sort $[installed_igate_files]]
|
|
|
|
|
+
|
|
|
uninstall : $[active_target(metalib_target lib_target static_lib_target ss_lib_target):%=uninstall-lib%] $[active_target(bin_target):%=uninstall-%]
|
|
uninstall : $[active_target(metalib_target lib_target static_lib_target ss_lib_target):%=uninstall-lib%] $[active_target(bin_target):%=uninstall-%]
|
|
|
#if $[installed_files]
|
|
#if $[installed_files]
|
|
|
rm -f $[sort $[installed_files]]
|
|
rm -f $[sort $[installed_files]]
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
|
|
+uninstall-igate :
|
|
|
|
|
+#if $[installed_igate_files]
|
|
|
|
|
+ rm -f $[sort $[installed_igate_files]]
|
|
|
|
|
+#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
|
|
@@ -863,42 +890,60 @@ $[DEPENDENCY_CACHE_FILENAME] : $[dep_sources]
|
|
|
all : $[subdirs]
|
|
all : $[subdirs]
|
|
|
test : $[subdirs:%=test-%]
|
|
test : $[subdirs:%=test-%]
|
|
|
clean : $[subdirs:%=clean-%]
|
|
clean : $[subdirs:%=clean-%]
|
|
|
|
|
+clean-igate : $[subdirs:%=clean-igate-%]
|
|
|
cleanall : $[subdirs:%=cleanall-%]
|
|
cleanall : $[subdirs:%=cleanall-%]
|
|
|
install : $[if $[CONFIG_HEADER],$[install_headers_dir] $[install_headers_dir]/$[CONFIG_HEADER]] $[subdirs:%=install-%]
|
|
install : $[if $[CONFIG_HEADER],$[install_headers_dir] $[install_headers_dir]/$[CONFIG_HEADER]] $[subdirs:%=install-%]
|
|
|
|
|
+install-igate : $[subdirs:%=install-igate-%]
|
|
|
uninstall : $[subdirs:%=uninstall-%]
|
|
uninstall : $[subdirs:%=uninstall-%]
|
|
|
#if $[CONFIG_HEADER]
|
|
#if $[CONFIG_HEADER]
|
|
|
rm -f $[install_headers_dir]/$[CONFIG_HEADER]
|
|
rm -f $[install_headers_dir]/$[CONFIG_HEADER]
|
|
|
#endif
|
|
#endif
|
|
|
|
|
+uninstall-igate : $[subdirs:%=uninstall-igate-%]
|
|
|
|
|
|
|
|
#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]]
|
|
|
- cd ./$[PATH]; $(MAKE) all
|
|
|
|
|
|
|
+ cd ./$[PATH] && $(MAKE) all
|
|
|
#end dirname
|
|
#end dirname
|
|
|
|
|
|
|
|
#formap dirname subdirs
|
|
#formap dirname subdirs
|
|
|
test-$[dirname] :
|
|
test-$[dirname] :
|
|
|
- cd ./$[PATH]; $(MAKE) test
|
|
|
|
|
|
|
+ cd ./$[PATH] && $(MAKE) test
|
|
|
#end dirname
|
|
#end dirname
|
|
|
|
|
|
|
|
#formap dirname subdirs
|
|
#formap dirname subdirs
|
|
|
clean-$[dirname] :
|
|
clean-$[dirname] :
|
|
|
- cd ./$[PATH]; $(MAKE) clean
|
|
|
|
|
|
|
+ cd ./$[PATH] && $(MAKE) clean
|
|
|
|
|
+#end dirname
|
|
|
|
|
+
|
|
|
|
|
+#formap dirname subdirs
|
|
|
|
|
+clean-igate-$[dirname] :
|
|
|
|
|
+ cd ./$[PATH] && $(MAKE) clean-igate
|
|
|
#end dirname
|
|
#end dirname
|
|
|
|
|
|
|
|
#formap dirname subdirs
|
|
#formap dirname subdirs
|
|
|
cleanall-$[dirname] : $[patsubst %,cleanall-%,$[dirnames $[if $[build_directory],$[DIRNAME]],$[DEPEND_DIRS]]]
|
|
cleanall-$[dirname] : $[patsubst %,cleanall-%,$[dirnames $[if $[build_directory],$[DIRNAME]],$[DEPEND_DIRS]]]
|
|
|
- cd ./$[PATH]; $(MAKE) cleanall
|
|
|
|
|
|
|
+ cd ./$[PATH] && $(MAKE) cleanall
|
|
|
#end dirname
|
|
#end dirname
|
|
|
|
|
|
|
|
#formap dirname subdirs
|
|
#formap dirname subdirs
|
|
|
install-$[dirname] : $[patsubst %,install-%,$[dirnames $[if $[build_directory],$[DIRNAME]],$[DEPEND_DIRS]]]
|
|
install-$[dirname] : $[patsubst %,install-%,$[dirnames $[if $[build_directory],$[DIRNAME]],$[DEPEND_DIRS]]]
|
|
|
- cd ./$[PATH]; $(MAKE) install
|
|
|
|
|
|
|
+ cd ./$[PATH] && $(MAKE) install
|
|
|
|
|
+#end dirname
|
|
|
|
|
+
|
|
|
|
|
+#formap dirname subdirs
|
|
|
|
|
+install-igate-$[dirname] :
|
|
|
|
|
+ cd ./$[PATH] && $(MAKE) install-igate
|
|
|
#end dirname
|
|
#end dirname
|
|
|
|
|
|
|
|
#formap dirname subdirs
|
|
#formap dirname subdirs
|
|
|
uninstall-$[dirname] :
|
|
uninstall-$[dirname] :
|
|
|
- cd ./$[PATH]; $(MAKE) uninstall
|
|
|
|
|
|
|
+ cd ./$[PATH] && $(MAKE) uninstall
|
|
|
|
|
+#end dirname
|
|
|
|
|
+
|
|
|
|
|
+#formap dirname subdirs
|
|
|
|
|
+uninstall-igate-$[dirname] :
|
|
|
|
|
+ cd ./$[PATH] && $(MAKE) uninstall-igate
|
|
|
#end dirname
|
|
#end dirname
|
|
|
|
|
|
|
|
#if $[ne $[CONFIG_HEADER],]
|
|
#if $[ne $[CONFIG_HEADER],]
|