summaryrefslogtreecommitdiff
path: root/lib/tevent/rules.mk
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-12-16 16:10:22 +0100
committerStefan Metzmacher <metze@samba.org>2008-12-17 13:31:28 +0100
commit504f8816e3058b9358a18ef42e442753fe2657ba (patch)
treec2e50faf775bfb44fcb5c9fa923402f5c07c99ad /lib/tevent/rules.mk
parent09e6dfb8e8d1447306951e34e4e2211037edb9be (diff)
downloadsamba-504f8816e3058b9358a18ef42e442753fe2657ba.tar.gz
samba-504f8816e3058b9358a18ef42e442753fe2657ba.tar.bz2
samba-504f8816e3058b9358a18ef42e442753fe2657ba.zip
s4:lib/events: move to toplevel directory as lib/tevent/
This commit will not compile on its own. metze
Diffstat (limited to 'lib/tevent/rules.mk')
-rw-r--r--lib/tevent/rules.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/tevent/rules.mk b/lib/tevent/rules.mk
new file mode 100644
index 0000000000..cfe548039b
--- /dev/null
+++ b/lib/tevent/rules.mk
@@ -0,0 +1,21 @@
+.SUFFIXES: .i _wrap.c
+
+.i_wrap.c:
+ $(SWIG) -O -Wall -python -keyword $<
+
+showflags::
+ @echo 'libevents 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 *~ */*~