diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-09-14 19:21:54 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-09-14 19:23:00 +0200 |
commit | 4f2b99646bb88bbae2fb84b7199cab607577b3db (patch) | |
tree | 8f31e25db29fa1fab032b64d0bbdbd82df0fb75d /source3/lib/tdb/rules.mk | |
parent | bedd2710fb645cfcc18fe08fdae2aaa8c709be3b (diff) | |
download | samba-4f2b99646bb88bbae2fb84b7199cab607577b3db.tar.gz samba-4f2b99646bb88bbae2fb84b7199cab607577b3db.tar.bz2 samba-4f2b99646bb88bbae2fb84b7199cab607577b3db.zip |
lib/tdb: sync build system changes and python code from samba4
metze
(This used to be commit bdb8ed24488fd87cd30dd18744feeef0bd4b2c18)
Diffstat (limited to 'source3/lib/tdb/rules.mk')
-rw-r--r-- | source3/lib/tdb/rules.mk | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source3/lib/tdb/rules.mk b/source3/lib/tdb/rules.mk new file mode 100644 index 0000000000..7b765625df --- /dev/null +++ b/source3/lib/tdb/rules.mk @@ -0,0 +1,21 @@ +.SUFFIXES: .i _wrap.c + +.i_wrap.c: + $(SWIG) -O -Wall -python -keyword $< + +showflags:: + @echo 'tdb will be compiled with flags:' + @echo ' CFLAGS = $(CFLAGS)' + @echo ' CPPFLAGS = $(CPPFLAGS)' + @echo ' LDFLAGS = $(LDFLAGS)' + @echo ' LIBS = $(LIBS)' + +.SUFFIXES: .c .o + +.c.o: + @echo Compiling $*.c + @mkdir -p `dirname $@` + @$(CC) $(PICFLAG) $(CFLAGS) -c $< -o $@ + +distclean:: + rm -f *~ */*~ |