diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2004-11-14 16:22:01 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:47 -0500 |
commit | 8e16d8a76f8a3b8ccc89eb317c8e5daa6cf43b71 (patch) | |
tree | 8e8ccaddb94efc6a85ab6c339cab76cea1f44085 /source4/build/smb_build/public.m4 | |
parent | 7367d23713a34a6c29a492adb365292399adffe8 (diff) | |
download | samba-8e16d8a76f8a3b8ccc89eb317c8e5daa6cf43b71.tar.gz samba-8e16d8a76f8a3b8ccc89eb317c8e5daa6cf43b71.tar.bz2 samba-8e16d8a76f8a3b8ccc89eb317c8e5daa6cf43b71.zip |
r3733: More build system fixes/features:
- Use .mk files directly (no need for a SMB_*_MK() macro when adding a new SUBSYSTEM, MODULE or BINARY). This allows addition of new modules and subsystems without running configure
- Add support for generating .dot files with the Samba4 dependency tree (as used by the graphviz and springgraph utilities)
(This used to be commit 64826da834e26ee0488674e27a0eae36491ee179)
Diffstat (limited to 'source4/build/smb_build/public.m4')
-rw-r--r-- | source4/build/smb_build/public.m4 | 205 |
1 files changed, 0 insertions, 205 deletions
diff --git a/source4/build/smb_build/public.m4 b/source4/build/smb_build/public.m4 index add6d18f36..de805e6085 100644 --- a/source4/build/smb_build/public.m4 +++ b/source4/build/smb_build/public.m4 @@ -19,25 +19,6 @@ dnl 6:required_libraries, dnl 7:required_subsystems dnl ) dnl -dnl SMB_MODULE_MK( -dnl 1:name, -dnl 2:subsystem, -dnl 3:default_build, -dnl 4:config_mk_file -dnl [MODULE::test] -dnl INIT_OBJ_FILES = \ -dnl test.o -dnl ADD_OBJ_FILES = \ -dnl test_utils1.o \ -dnl test_utils2.o -dnl REQUIRED_LIBRARIES = \ -dnl LIB_EXT_TEST1 \ -dnl LIB_EXT_TEST2 -dnl REQUIRED_SUBSYSTEMS = \ -dnl OTHER_SUBSYSTEM1 \ -dnl OTHER_SUBSYSTEM2 -dnl ) -dnl dnl SMB_SUBSYSTEM_ENABLE( dnl 1:name, dnl 2:default_build @@ -55,23 +36,6 @@ dnl 4:required_libraries, dnl 5:required_subsystems dnl ) dnl -dnl SMB_SUBSYSTEM_MK( -dnl 1:name, -dnl 2:config_mk_file -dnl [SUBSYSTEM::test] -dnl INIT_OBJ_FILES = \ -dnl test.o -dnl ADD_OBJ_FILES = \ -dnl test_utils1.o \ -dnl test_utils2.o -dnl REQUIRED_LIBRARIES = \ -dnl LIB_EXT_TEST1 \ -dnl LIB_EXT_TEST2 -dnl REQUIRED_SUBSYSTEMS = \ -dnl OTHER_SUBSYSTEM1 \ -dnl OTHER_SUBSYSTEM2 -dnl ) -dnl dnl SMB_EXT_LIB_ENABLE( dnl 1:name, dnl 2:default_build @@ -105,24 +69,6 @@ dnl 6:required_libraries, dnl 7:required_subsystems dnl ) dnl -dnl SMB_LIBRARY_MK( -dnl 1:name, -dnl 2:config_mk_file -dnl [LIBRARY::test] -dnl MAJOR_VERSION = 0 -dnl MINOR_VERSION = 0 -dnl RELEASE_VERSION = 1 -dnl OBJ_FILES = \ -dnl test1.o \ -dnl test2.o -dnl REQUIRED_LIBRARIES = \ -dnl LIB_EXT_TEST1 \ -dnl LIB_EXT_TEST2 -dnl REQUIRED_SUBSYSTEMS = \ -dnl OTHER_SUBSYSTEM1 \ -dnl OTHER_SUBSYSTEM2 -dnl ) -dnl dnl SMB_BINARY_ENABLE( dnl 1:name, dnl 2:default_build @@ -137,23 +83,6 @@ dnl 5:required_libraries, dnl 6:required_subsystems dnl ) dnl -dnl SMB_BINARY_MK( -dnl 1:name, -dnl 2:config_mk_file -dnl [BINARY::test] -dnl BUILD_TARGETS = -dnl INSTALL_PATH = -dnl OBJ_FILES = \ -dnl test1.o \ -dnl test2.o -dnl REQUIRED_LIBRARIES = \ -dnl LIB_EXT_TEST1 \ -dnl LIB_EXT_TEST2 -dnl REQUIRED_SUBSYSTEMS = \ -dnl OTHER_SUBSYSTEM1 \ -dnl OTHER_SUBSYSTEM2 -dnl ) -dnl dnl SMB_MAKE_TARGET( dnl 1:name dnl 2:calledname @@ -234,47 +163,6 @@ SMB_INFO_MODULES="$SMB_INFO_MODULES " ]) -dnl SMB_MODULE_MK( -dnl 1:name, -dnl 2:subsystem, -dnl 3:default_build, -dnl 4:config_mk_file -dnl ) -AC_DEFUN([SMB_MODULE_MK], -[ - - if test -z "$[SMB_MODULE_DEFAULT_][$1]"; then - [SMB_MODULE_DEFAULT_][$1]=$3 - fi - - if test "$[SMB_MODULE_][$1]"; then - [SMB_MODULE_][$1]=$[SMB_MODULE_][$1] - elif test "$[SMB_MODULE_]translit([$2], [A-Z], [a-z])" -a x"$[SMB_MODULE_DEFAULT_][$1]" != xNOT; then - [SMB_MODULE_][$1]=$[SMB_MODULE_]translit([$2], [A-Z], [a-z]) - else - [SMB_MODULE_][$1]="DEFAULT"; - fi - -SMB_INFO_MODULES="$SMB_INFO_MODULES -################################### -# Start MODULE $1 -\$INPUT{$1} = { - TYPE => \"MODULE\", - NAME => \"$1\", - SUBSYSTEM => \"$2\", - DEFAULT_BUILD => \"$[SMB_MODULE_DEFAULT_][$1]\", - INIT_OBJ_FILES => @<:@ config_mk::module_get_array(\"$4\", \"$1\", \"INIT_OBJ_FILES\") @:>@, - ADD_OBJ_FILES => @<:@ config_mk::module_get_array(\"$4\", \"$1\", \"ADD_OBJ_FILES\") @:>@, - REQUIRED_LIBRARIES => @<:@ config_mk::module_get_array(\"$4\", \"$1\", \"REQUIRED_LIBRARIES\") @:>@, - REQUIRED_SUBSYSTEMS => @<:@ config_mk::module_get_array(\"$4\", \"$1\", \"REQUIRED_SUBSYSTEMS\") @:>@, - INIT_FUNCTION => config_mk::module_get_var(\"$4\", \"$1\", \"INIT_FUNCTION\"), - CHOSEN_BUILD => \"$[SMB_MODULE_][$1]\" -}; -# End MODULE $1 -################################### -" -]) - dnl SMB_SUBSYSTEM_ENABLE( dnl 1:name, dnl 2:default_build @@ -328,40 +216,6 @@ SMB_INFO_SUBSYSTEMS="$SMB_INFO_SUBSYSTEMS " ]) -dnl SMB_SUBSYSTEM_MK( -dnl 1:name, -dnl 2:config_mk_file -dnl ) -AC_DEFUN([SMB_SUBSYSTEM_MK], -[ - - if test -z "$[SMB_SUBSYSTEM_ENABLE_][$1]"; then - [SMB_SUBSYSTEM_ENABLE_][$1]="YES"; - fi - - if test -z "$[SMB_SUBSYSTEM_NOPROTO_][$1]"; then - [SMB_SUBSYSTEM_NOPROTO_][$1]="NO"; - fi - -SMB_INFO_SUBSYSTEMS="$SMB_INFO_SUBSYSTEMS -################################### -# Start Subsystem $1 -\$INPUT{$1} = { - TYPE => \"SUBSYSTEM\", - NAME => \"$1\", - INIT_OBJ_FILES => @<:@ config_mk::subsystem_get_array(\"$2\", \"$1\", \"INIT_OBJ_FILES\") @:>@, - ADD_OBJ_FILES => @<:@ config_mk::subsystem_get_array(\"$2\", \"$1\", \"ADD_OBJ_FILES\") @:>@, - REQUIRED_LIBRARIES => @<:@ config_mk::subsystem_get_array(\"$2\", \"$1\", \"REQUIRED_LIBRARIES\") @:>@, - REQUIRED_SUBSYSTEMS => @<:@ config_mk::subsystem_get_array(\"$2\", \"$1\", \"REQUIRED_SUBSYSTEMS\") @:>@, - INIT_FUNCTION => config_mk::subsystem_get_var(\"$2\", \"$1\", \"INIT_FUNCTION\"), - ENABLE => \"$[SMB_SUBSYSTEM_ENABLE_][$1]\", - NOPROTO => \"$[SMB_SUBSYSTEM_NOPROTO_][$1]\" -}; -# End Subsystem $1 -################################### -" -]) - dnl SMB_EXT_LIB_ENABLE( dnl 1:name, dnl 2:default_build @@ -495,36 +349,6 @@ SMB_INFO_LIBRARIES="$SMB_INFO_LIBRARIES " ]) -dnl SMB_LIBRARY_MK( -dnl 1:name, -dnl 2:config_mk_file -dnl ) -AC_DEFUN([SMB_LIBRARY_MK], -[ - - if test -z "$[SMB_LIBRARY_ENABLE_][$1]"; then - [SMB_LIBRARY_ENABLE_][$1]="NO"; - fi - -SMB_INFO_LIBRARIES="$SMB_INFO_LIBRARIES -################################### -# Start Library $1 -\$INPUT{$1} = { - TYPE => \"LIBRARY\", - NAME => \"$1\", - MAJOR_VERSION => config_mk::library_get_var(\"$2\", \"$1\", \"MAJOR_VERSION\"), - MINOR_VERSION => config_mk::library_get_var(\"$2\", \"$1\", \"MINOR_VERSION\"), - RELEASE_VERSION => config_mk::library_get_var(\"$2\", \"$1\", \"RELEASE_VERSION\"), - OBJ_FILES => @<:@ config_mk::library_get_array(\"$2\", \"$1\", \"OBJ_FILES\") @:>@, - REQUIRED_LIBRARIES => @<:@ config_mk::library_get_array(\"$2\", \"$1\", \"REQUIRED_LIBRARIES\") @:>@, - REQUIRED_SUBSYSTEMS => @<:@ config_mk::library_get_array(\"$2\", \"$1\", \"REQUIRED_SUBSYSTEMS\") @:>@, - ENABLE => \"$[SMB_LIBRARY_ENABLE_][$1]\" -}; -# End Library $1 -################################### -" -]) - dnl SMB_BINARY_ENABLE( dnl 1:name, dnl 2:default_build @@ -567,35 +391,6 @@ SMB_INFO_BINARIES="$SMB_INFO_BINARIES " ]) -dnl SMB_BINARY_MK( -dnl 1:name, -dnl 2:config_mk_file -dnl ) -AC_DEFUN([SMB_BINARY_MK], -[ - - if test -z "$[SMB_BINARY_ENABLE_][$1]"; then - [SMB_BINARY_ENABLE_][$1]="YES"; - fi - -SMB_INFO_BINARIES="$SMB_INFO_BINARIES -################################### -# Start Binary $1 -\$INPUT{$1} = { - TYPE => \"BINARY\", - NAME => \"$1\", - BUILD_TARGETS => @<:@ config_mk::binary_get_array(\"$2\", \"$1\", \"BUILD_TARGETS\") @:>@, - INSTALL_PATH => @<:@ config_mk::binary_get_array(\"$2\", \"$1\", \"INSTALL_PATH\") @:>@, - OBJ_FILES => @<:@ config_mk::binary_get_array(\"$2\", \"$1\", \"OBJ_FILES\") @:>@, - REQUIRED_LIBRARIES => @<:@ config_mk::binary_get_array(\"$2\", \"$1\",\"REQUIRED_LIBRARIES\") @:>@, - REQUIRED_SUBSYSTEMS => @<:@ config_mk::binary_get_array(\"$2\", \"$1\",\"REQUIRED_SUBSYSTEMS\") @:>@, - ENABLE => \"$[SMB_BINARY_ENABLE_][$1]\" -}; -# End Binary $1 -################################### -" -]) - dnl SMB_MAKE_TARGET( dnl 1:name dnl 2:calledname |