summaryrefslogtreecommitdiffstats
path: root/ctdb/lib/tevent/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/lib/tevent/rules.mk')
-rw-r--r--ctdb/lib/tevent/rules.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/ctdb/lib/tevent/rules.mk b/ctdb/lib/tevent/rules.mk
new file mode 100644
index 0000000000..c197e930a3
--- /dev/null
+++ b/ctdb/lib/tevent/rules.mk
@@ -0,0 +1,18 @@
+.SUFFIXES: .i _wrap.c
+
+showflags::
+ @echo 'libtevent 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) $(ABI_CHECK) -c $< -o $@
+
+distclean::
+ rm -f *~ */*~