From 4f2b99646bb88bbae2fb84b7199cab607577b3db Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 14 Sep 2008 19:21:54 +0200 Subject: lib/tdb: sync build system changes and python code from samba4 metze (This used to be commit bdb8ed24488fd87cd30dd18744feeef0bd4b2c18) --- source3/lib/tdb/rules.mk | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 source3/lib/tdb/rules.mk (limited to 'source3/lib/tdb/rules.mk') 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 *~ */*~ -- cgit