diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-02-11 22:02:57 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-02-11 22:02:57 +0100 |
commit | 25641ec13d876924e90a6aaaa2aa2de2fedbd552 (patch) | |
tree | d641dae221a60ed5fca6686930dadb06cc78d014 /source4/lib/tdb/rules.mk | |
parent | 3e0f0091e58d26f555cd5908000294f51cce7c90 (diff) | |
download | samba-25641ec13d876924e90a6aaaa2aa2de2fedbd552.tar.gz samba-25641ec13d876924e90a6aaaa2aa2de2fedbd552.tar.bz2 samba-25641ec13d876924e90a6aaaa2aa2de2fedbd552.zip |
Split rules out of tdb Makefile.
(This used to be commit 9f233c14540cd4b2d5f4c7fe01e2d89cb220abc8)
Diffstat (limited to 'source4/lib/tdb/rules.mk')
-rw-r--r-- | source4/lib/tdb/rules.mk | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source4/lib/tdb/rules.mk b/source4/lib/tdb/rules.mk new file mode 100644 index 0000000000..7b765625df --- /dev/null +++ b/source4/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 *~ */*~ |