summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/rules.mk
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-11 21:54:13 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-11 21:54:13 +0100
commit3e0f0091e58d26f555cd5908000294f51cce7c90 (patch)
tree5864404fb92ee027173fb017d71ad1a39114ecaf /source4/lib/ldb/rules.mk
parenta3052e79f41afe91dc5a1c898868c632053ce599 (diff)
downloadsamba-3e0f0091e58d26f555cd5908000294f51cce7c90.tar.gz
samba-3e0f0091e58d26f555cd5908000294f51cce7c90.tar.bz2
samba-3e0f0091e58d26f555cd5908000294f51cce7c90.zip
ldb: Split up the Makefile so it will be possible later on to directly include fragments in the Samba 3 or 4 makefile.
(This used to be commit 6d54e9104de577ab727ee99a76e690a2fae71636)
Diffstat (limited to 'source4/lib/ldb/rules.mk')
-rw-r--r--source4/lib/ldb/rules.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/source4/lib/ldb/rules.mk b/source4/lib/ldb/rules.mk
new file mode 100644
index 0000000000..3e5b3b652f
--- /dev/null
+++ b/source4/lib/ldb/rules.mk
@@ -0,0 +1,29 @@
+etags:
+ etags `find $(srcdir) -name "*.[ch]"`
+
+ctags:
+ ctags `find $(srcdir) -name "*.[ch]"`
+
+.SUFFIXES: _wrap.c .i
+
+.i_wrap.c:
+ [ "$(SWIG)" == "no" ] || $(SWIG) -O -Wall -python -keyword $<
+
+.SUFFIXES: .1 .1.xml .3 .3.xml .xml .html .c .o
+
+.c.o:
+ @echo Compiling $*.c
+ @mkdir -p `dirname $@`
+ @$(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@
+
+.c.po:
+ @echo Compiling $*.c
+ @mkdir -p `dirname $@`
+ @$(CC) -fPIC $(CFLAGS) -c $< -o $@
+
+showflags::
+ @echo 'ldb will be compiled with flags:'
+ @echo ' CFLAGS = $(CFLAGS)'
+ @echo ' LIBS = $(LIBS)'
+
+