diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-11-06 02:16:55 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:44:26 +0100 |
commit | 6e561c7f7de2e1489033da40472311147a46c1f9 (patch) | |
tree | 80f07683d94c75692008224579e0ad4776577a8b /source4/lib/ldb/Makefile.in | |
parent | ef71598952f98edc55b4303ad3b66eec9ec24b9f (diff) | |
download | samba-6e561c7f7de2e1489033da40472311147a46c1f9.tar.gz samba-6e561c7f7de2e1489033da40472311147a46c1f9.tar.bz2 samba-6e561c7f7de2e1489033da40472311147a46c1f9.zip |
r25850: Add macro for picflag.
(This used to be commit 9ebc6f2d17349b214618d65b29826867796c12ce)
Diffstat (limited to 'source4/lib/ldb/Makefile.in')
-rw-r--r-- | source4/lib/ldb/Makefile.in | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/source4/lib/ldb/Makefile.in b/source4/lib/ldb/Makefile.in index a87d39f123..eb10311ccc 100644 --- a/source4/lib/ldb/Makefile.in +++ b/source4/lib/ldb/Makefile.in @@ -36,6 +36,7 @@ SHLIBEXT = @SHLIBEXT@ LD_EXPORT_DYNAMIC = @LD_EXPORT_DYNAMIC@ +PICFLAG = @PICFLAG@ CFLAGS=-g -I$(srcdir)/include -Iinclude -I$(srcdir) -I$(srcdir)/.. \ $(POPT_CFLAGS) $(TALLOC_CFLAGS) $(TDB_CFLAGS) \ -DLIBDIR=\"$(libdir)\" -DSHLIBEXT=\"$(SHLIBEXT)\" -DUSE_MMAP=1 @CFLAGS@ @@ -98,6 +99,11 @@ showflags: @mkdir -p `dirname $@` @$(CC) $(CFLAGS) -c $< -o $@ +.c.po: + @echo Compiling $*.c + @mkdir -p `dirname $@` + @$(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@ + dirs: @mkdir -p $(DIRS) @@ -108,8 +114,8 @@ lib/libldb.a: $(OBJS) lib/libnss_ldb.so.2: $(NSS_OBJ) $(LIBS) bin/libldb.a $(CC) -shared -Wl,-soname,libnss_ldb.so.2 -o lib/libnss_ldb.so.2 $(NSS_OBJ) $(OBJS) $(LIB_FLAGS) -sample_module.$(SHLIBEXT): tests/sample_module.o - $(CC) -shared -o $@ tests/sample_module.o +sample_module.$(SHLIBEXT): tests/sample_module.po + $(CC) -shared -o $@ tests/sample_module.po bin/ldbadd: tools/ldbadd.o tools/cmdline.o $(LIBS) $(CC) -o bin/ldbadd tools/ldbadd.o tools/cmdline.o $(LIB_FLAGS) $(LD_EXPORT_DYNAMIC) @@ -141,7 +147,7 @@ examples/ldbreader: examples/ldbreader.o $(LIBS) examples/ldifreader: examples/ldifreader.o $(LIBS) $(CC) -o examples/ldifreader examples/ldifreader.o $(LIB_FLAGS) -.SUFFIXES: .1 .1.xml .3 .3.xml .xml .html +.SUFFIXES: .1 .1.xml .3 .3.xml .xml .html .po manpages: @$(srcdir)/docs/builddocs.sh "$(XSLTPROC)" "$(srcdir)" |