summaryrefslogtreecommitdiff
path: root/lib/tevent/rules.mk
diff options
context:
space:
mode:
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 *~ */*~