1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-27 08:23:49 +03:00
Commit Graph

989 Commits

Author SHA1 Message Date
Andrew Bartlett
2c02a45d5a r13153: Try to move closer to FHS. This probably breaks everything...
Andrew Bartlett
2007-10-10 13:51:29 -05:00
Andrew Bartlett
655076d51b r13152: Jelmer assures me that this won't break anything, but does make it
much clearer where things go.

Andrew Bartlett
2007-10-10 13:51:29 -05:00
James Peach
0eda8a3197 r13071: Work around a really annoying compiler warning where header file
ordering causes MIN and MAX to be redefined.
2007-10-10 13:51:21 -05:00
Jelmer Vernooij
cbcce3b573 r13070: Add a simple smbd manpage, based on the Samba 3 one. 2007-10-10 13:51:21 -05:00
Stefan Metzmacher
de7b0b2dc9 r12896: IRIX make will fallback to gmake with this,
as normal IRIX make doesn't support shell commands or functions
in $(FOO) variables

metze
2007-10-10 13:50:59 -05:00
Stefan Metzmacher
bcf4c36255 r12836: use: -fvisibility=hidden -D_PUBLIC_="__attribute__((visibility(\"default\")))"
if the compiler supports it, this will cause that modules can only access
public functions (gcc 4 supports this)

metze
2007-10-10 13:50:04 -05:00
Stefan Metzmacher
e6dff57793 r12805: merge from samba3
metze
2007-10-10 13:49:58 -05:00
Stefan Metzmacher
31ff172773 r12772: - create variables for the %(patsubst ...) statements for the idl files
- this also fixes the build on BSD systems

metze
2007-10-10 13:49:52 -05:00
Andrew Bartlett
d3abfecec5 r12753: Try to fix the build after a 'make clean'. (the wildcards will not
expand because they don't exist yet).  Thanks again to HotaruT.

Andrew Bartlett
2007-10-10 13:49:50 -05:00
Jelmer Vernooij
73610639b2 r12693: Move core data structures out of smb.h into core.h
torture prototypes in seperate header
2007-10-10 13:49:39 -05:00
Jelmer Vernooij
a54fefbfc5 r12680: Support setting the environment variable SMB_BUILD_VERBOSE to
print out more debug info
2007-10-10 13:49:37 -05:00
Jelmer Vernooij
8f5edcc6a2 r12671: Modules don't have to be linked with their subsystem. 2007-10-10 13:49:36 -05:00
Jelmer Vernooij
f9eede3d40 r12670: Make a couple of dependencies stricter
Re-introduce and use the OUTPUT_TYPE property for MODULEs to force
specific modules to always be included
2007-10-10 13:49:35 -05:00
Jelmer Vernooij
c297c93faf r12658: Couple of fixes related to shared module builds. 2007-10-10 13:49:35 -05:00
Stefan Metzmacher
cd3cc29fdc r12638: fix the build on BSD systems
metze
2007-10-10 13:49:11 -05:00
Jelmer Vernooij
fb5b22e3dc r12623: Another round of fixes for the prototypes of tables.c 2007-10-10 13:49:06 -05:00
Jelmer Vernooij
44f0aba715 r12620: Get rid of automatically generated lists of init functions of subsystems.
This allows Samba libraries to be used by other projects (and parts of
Samba to be built as shared libraries).
2007-10-10 13:49:06 -05:00
Stefan Metzmacher
bf35c74218 r12615: prepare building with ../samba4/source/configure --srcdir=../samba4/source/
metze
2007-10-10 13:49:04 -05:00
Stefan Metzmacher
48d975cc5e r12613: workarround a BSD make bug, where $< gets expanded to 'torture/libnet/userman.c'
when $@ is 'libnet/userman.o'

metze
2007-10-10 13:49:04 -05:00
Jelmer Vernooij
86fe24e606 r12589: Add missing newline. 2007-10-10 13:48:59 -05:00
Jelmer Vernooij
0aca5fd513 r12542: Move some more prototypes out to seperate headers 2007-10-10 13:47:55 -05:00
Jelmer Vernooij
87f665a1d5 r12528: Add seperate proto headers for ntvfs, tdr, smb_server and nbt_server. 2007-10-10 13:47:51 -05:00
Jelmer Vernooij
60e11f5758 r12523: Convert the registry subsystem to use a seperate prototype header
(note that this doesn't use the distinction between private
 and public prototypes yet)
2007-10-10 13:47:51 -05:00
Jelmer Vernooij
cdfd20fa17 r12520: Add support for --help to mkproto.pl
Allow the use of {PRIVATE,PUBLIC}_PROTO_HEADER for [SUBSYSTEM]
and [LIBRARY] sections in .mk files. Public functions can be marked
by adding _PUBLIC_ between their return type and function name.

This should eventually make include/proto.h and include/structs.h obsolete.
2007-10-10 13:47:51 -05:00
Jelmer Vernooij
8dcfcaf75a r12513: Similar change as my previous commit, but now for transfer syntaxes.
Avoids converting a static string to GUID every time we check whether
a transfer syntax is equal to that of NDR.
2007-10-10 13:47:49 -05:00
Jelmer Vernooij
f6bbc72996 r12500: Use init functions explicitly in a few more places. 'gensec' and 'librpc'
are the only two subsystems left to convert.
2007-10-10 13:47:46 -05:00
Jelmer Vernooij
c92ace494f r12499: Move smb_build.h out of includes.h 2007-10-10 13:47:45 -05:00
Jelmer Vernooij
b24f2583ed r12498: Eliminate INIT_OBJ_FILES and ADD_OBJ_FILES. We were not using
the difference between these at all, and in the future the
fact that INIT_OBJ_FILES include smb_build.h will be sufficient to
have recompiles at the right time.
2007-10-10 13:47:45 -05:00
Jelmer Vernooij
b6d2ad4ce0 r12494: Support loading modules from .so files for most subsystems.
We now use a different system for initializing the modules for a subsystem.
Most subsystems now have an init function that looks something like this:

	init_module_fn static_init[] = STATIC_AUTH_MODULES;
	init_module_fn *shared_init = load_samba_modules(NULL, "auth");

	run_init_functions(static_init);
	run_init_functions(shared_init);

	talloc_free(shared_init);

I hope to eliminate the other init functions later on (the
init_programname_subsystems; defines).
2007-10-10 13:47:45 -05:00
Jelmer Vernooij
a4088ccc70 r12450: Move generation of proto and full object lists to makefile.pm. 'make' now
handles expanding the protoheader object list, rather then the build system,
	which makes the makefile quite a bit shorter.
2007-10-10 13:47:41 -05:00
Stefan Metzmacher
abfb047646 r12379: export the detected perl
metze
2007-10-10 13:47:32 -05:00
Stefan Metzmacher
11da32df31 r12325: - remove the hostcc object files with make clean
- move the .SUFFIXES statement before the suffix rules
  this fixes the build with bsd make

metze
2007-10-10 13:47:30 -05:00
Stefan Metzmacher
82f5a0462e r12301: FHS 2.2 says that /var/cache/* contains only cached data, which can we removed without
losing data, we should keep our databases under /var/lib/*

should I merge this to samba3 too?

metze
2007-10-10 13:47:27 -05:00
Stefan Metzmacher
8e3b0a9997 r12266: add --with-libdir option to overwrite the result that is set by --with-fhs=yes/no
metze
2007-10-10 13:47:25 -05:00
Jelmer Vernooij
a86abe84e2 r12254: Add some (hopefully correct) descriptions for libraries that are installed.
Install pkg-config files.
2007-10-10 13:47:24 -05:00
Jelmer Vernooij
507bee76dc r12253: Automatically build seperate binaries without -rpath to install when
using shared libraries and developer mode is enabled.
2007-10-10 13:47:24 -05:00
Jelmer Vernooij
57ea480c24 r12219: Use some more common functions 2007-10-10 13:47:21 -05:00
Jelmer Vernooij
ba913b86e8 r12218: Use common functions for generating lists 2007-10-10 13:47:21 -05:00
Jelmer Vernooij
4322962074 r12216: Couple of small fixes: reduce include/includes.h a bit, simplify headers
in build/smb_build/, remove unused pstring macros
2007-10-10 13:47:19 -05:00
Jelmer Vernooij
754e51b19d r12209: Fix some issues with XML entities. 2007-10-10 13:47:18 -05:00
Jelmer Vernooij
e90abfcc7d r12208: Remove obsolete scons directory 2007-10-10 13:47:18 -05:00
Jelmer Vernooij
2b3ad67b5d r11481: Disable pre-linking on VMS 2007-10-10 13:45:43 -05:00
Jelmer Vernooij
ad0019ad4e r11417: Add TODO for the build system 2007-10-10 13:45:35 -05:00
Jelmer Vernooij
31406f7aa5 r11388: Move dot-generating to a seperate perl executable 2007-10-10 13:45:30 -05:00
Jelmer Vernooij
875eb8f4cc r11382: Require number of required M4 macros
Make MODULE handling a bit more like BINARY, LIBRARY and SUBSYSTEM
Add some more PUBLIC_HEADERS
2007-10-10 13:45:29 -05:00
Jelmer Vernooij
0b54405685 r11377: Add support for building LIBRARY elements as shared libraries:
- Adds -rpath bin/ so you don't have to install Samba in order to use compiled binaries.
 - Writes out pkg-config files when building shared libs
 - Supports automatic fallback to MERGEDOBJ (which is the default) or
   OBJ_LIST (if ld -r is not supported)

Building with shared libs reduces the size of the Samba binaries from
197 Mb to 60 Mb (including libraries) on my system (GCC4, with debugging).

To build with shared libraries support enabled, run:

LIBRARY_OUTPUT_TYPE=SHARED_LIBRARY ./config.status

init functions don't get called correctly yet when using shared libs, so
you won't be able to actually run anything with success :-)

Once init functions are done, I'll look at support for loading shared
modules once again.

Based on a patch by Peter Novodvorsky (nidd on IRC).
2007-10-10 13:45:28 -05:00
Jelmer Vernooij
990419bac7 r11311: Move some more logic to env 2007-10-10 13:45:18 -05:00
Jelmer Vernooij
9c211507c1 r11307: Add support for generating pkg-config files 2007-10-10 13:45:17 -05:00
Jelmer Vernooij
28931219a1 r11306: Move more static Makefile data to main.mk
Clean up smb_build::makefile a bit
2007-10-10 13:45:16 -05:00
Jelmer Vernooij
90f49b6f70 r11304: Add support back in for loading shared modules (not used yet) 2007-10-10 13:45:16 -05:00