1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-05 12:23:50 +03:00
Commit Graph

53 Commits

Author SHA1 Message Date
Jelmer Vernooij
33e4b92c46 r15270: Rename EXTRA_CFLAGS to CFLAGS - initial work on getting DSO's working again. 2007-10-10 14:04:59 -05:00
Jelmer Vernooij
2fbb4d91fa r15223: Move heimdal's -I parameters from the global list of includes to
the subsystems in question
2007-10-10 14:04:20 -05:00
Jelmer Vernooij
adc8a019b6 r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
for REQUIRED_SUBSYSTEMS.
2007-10-10 14:04:18 -05:00
Alexander Bokovoy
9329854489 r15036: Add out of tree build support and see how buildfarm will respond to make constructs 2007-10-10 14:04:03 -05:00
Jelmer Vernooij
8f57c0e7bc r14874: Allow overriding LIBRARY_REALNAME 2007-10-10 14:00:10 -05:00
Stefan Metzmacher
e167ce935a r14861: regenerate the proto headers when the .mk file changes
metze
2007-10-10 13:59:44 -05:00
Jelmer Vernooij
8575e9a490 r14603: Fix building of ejs modules as shared libs
Fix calling of ejs_exception() without requiring --export-dynamic
2007-10-10 13:58:59 -05:00
Jelmer Vernooij
ed382873fd r14572: Give libraries saner names, remove some .pc files, make some things
subsystems in case a library doesn't make sense.
2007-10-10 13:58:49 -05:00
Jelmer Vernooij
2550f47030 r14518: Support STANDARD_VISIBILITY property on binaries 2007-10-10 13:57:36 -05:00
Jelmer Vernooij
e1f896948f r14511: Install more headers 2007-10-10 13:57:35 -05:00
Jelmer Vernooij
9c37f847d3 r14477: Remove the NOPROTO property - it's no longer used as proto.h is gone. 2007-10-10 13:57:30 -05:00
Jelmer Vernooij
7871b07e21 r14327: Replace MAJOR_VERSION/MINOR_VERSION/RELEASE_VERSION with two parameters:
- VERSION: should contain the current version. Will be made part of the filename.
 - SO_VERSION: should contain the latest version that this on is compatible to. Will be used for setting the soname of the shared library.

Fix sonames and use them on platforms that support them
Remove symlinking code. ldconfig will take care of creating the symlinks now
that we set the soname.
2007-10-10 13:57:12 -05:00
Stefan Metzmacher
29a1c0bb69 r14066: fix whitespaces
metze
2007-10-10 13:52:39 -05:00
Stefan Metzmacher
3e27534ad6 r13921: rename DEFAULT_VISIBILITY -> STANDARD_VISIBILITY
the standard is "hidden" and not "default", I hope this
name makes a bit less confusing

metze
2007-10-10 13:52:24 -05:00
Stefan Metzmacher
17be97240f r13918: fix whitespaces
metze
2007-10-10 13:52:23 -05:00
Jelmer Vernooij
ea9988dfda r13898: Add a subsystem-specific DEFAULT_VISIBILITY property that can be used
to not export symbols when building shared libraries. Symbols that have to be
available to users of the library can be explicitly exported by
prepending them with _PUBLIC_ in the C source.
2007-10-10 13:52:20 -05:00
Jelmer Vernooij
d512b147e8 r13867: Wrap the cflags.sh hack in the build system. You can now simply
set subsystem-specific compiler flags in the .mk files.
2007-10-10 13:52:18 -05:00
Jelmer Vernooij
52a2356505 r13786: [merge] Add registration functions for LDB modules
Applications that use LDB modules will now have to run ldb_global_init()
before they can use LDB.

The next step will be adding support for loading LDB modules from .so
files. This will also allow us to use one LDB without difference between the
standalone and the Samba-specific build
2007-10-10 13:52:11 -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
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
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
Stefan Metzmacher
cd3cc29fdc r12638: fix the build on BSD systems
metze
2007-10-10 13:49:11 -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
Jelmer Vernooij
0aca5fd513 r12542: Move some more prototypes out to seperate headers 2007-10-10 13:47:55 -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
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
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
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
b4745032a2 r11303: Support defining and installing public headers for libraries.
Support installing libraries.
Get rid of pkg-config file (will be autogenerated later on).
2007-10-10 13:45:16 -05:00
Jelmer Vernooij
98d1f9b1dc r11300: Treat libraries as a special kind of subsystem
(one that can also be built as a library and installed).
2007-10-10 13:45:15 -05:00
Jelmer Vernooij
24e1030090 r11244: Relative path names in .mk files 2007-10-10 13:45:06 -05:00
Stefan Metzmacher
d6af241d7b r10112: - check attributes depending on the section type
metze
2007-10-10 13:38:00 -05:00
Jelmer Vernooij
045bce900e r10091: Fix perl warnings 2007-10-10 13:37:52 -05:00
Jelmer Vernooij
729b8bd783 r9549: Rerun ./config.status if one of the .mk files changes 2007-10-10 13:34:27 -05:00
Jelmer Vernooij
43779c09b6 r8979: Bunch of makefile fragment inclusion fixes:
- support whitespace
 - support "include " keyword
 - move swig stuff to .mk file
 - support autogenerated makefile portions (use "include echo foo|")
2007-10-10 13:31:02 -05:00
Jelmer Vernooij
8d9c18a1b4 r8974: Support makefile fragments in .mk files 2007-10-10 13:31:01 -05:00
Jelmer Vernooij
ce0935112b r8966: Simplify the makefile generation system a bit.
Autogenerate list of binaries (rather then having them hardcoded in build/smb_build/makefile.pm)
Add INSTALLDIR keyword to .mk files
2007-10-10 13:31:00 -05:00
Jelmer Vernooij
52bb1374bb r8826: Make configure generate config.mk files (with the external libraries
that were found) and a config.pm file (with all substitution variables)
2007-10-10 13:30:09 -05:00
Jelmer Vernooij
7384b3c4a1 r8690: Code cleanups, improvements necessary for dependencies (not added yet) 2007-10-10 13:29:54 -05:00
Andrew Tridgell
b2f9b8aa32 r8416: added the extra_cflags.txt system from smb-build
this removes the need for recursive make for heimdal, which is a big
win. It should also make it easier/cleaner to build ldb/tdb/appweb etc
in both in-tree and out-of-tree forms by allowing us to specify
different CFLAGS (and thus different include paths) per directory or
file
2007-10-10 13:23:00 -05:00
Jelmer Vernooij
fd3f463643 r7943: Add 'make manpages', fix 'make installman' and 'make uninstallman'.
Not part of the "all" make target yet, as it requires xsltproc
2007-10-10 13:18:53 -05:00
Jelmer Vernooij
6b9a12249f r7766: Treat NOPROTO as boolean.
Don't consider ALL_OBJS as a standard subsystem.
2007-10-10 13:18:33 -05:00
Jelmer Vernooij
65600536b6 r7315: Add support for custom makefile targets, e.g.:
[TARGET::FOOBAR]
CMD = make bla
2007-10-10 13:17:41 -05:00
Jelmer Vernooij
2fd997b12a r7310: Support TARGET_CFLAGS thru recursive make 2007-10-10 13:17:40 -05:00
Andrew Tridgell
a31ec2a750 r7271: added the ability to specify a target specific set of CFLAGS for
binaries and libraries. This makes it possible to build heimdal with
our build system, which means users don't have to suffer two build
systems.
2007-10-10 13:17:34 -05:00
Jelmer Vernooij
2b08c4b92b r7059: Use namespaces for pidl and the build system, so we can later on
call out to the build system to compile the various pidl tests
(without having to rely on shared library support).

Initial work on an ndr_array test.
2007-10-10 13:17:10 -05:00
Jelmer Vernooij
6bf8126ae9 r6926: More build farm fixes:
- Warn about unknown attributes in .mk
 - Remove more unused functions
2007-10-10 13:16:57 -05:00
Jelmer Vernooij
a784618303 r6924: Remove some unused functions. 2007-10-10 13:16:57 -05:00
Jelmer Vernooij
64826da834 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)
2007-10-10 13:05:47 -05:00