summaryrefslogtreecommitdiffstats
path: root/tevent/rules.mk
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-12-22 18:10:47 -0500
committerSimo Sorce <idra@samba.org>2008-12-22 18:52:47 -0500
commita93a69380dc6718c49879af628ed69f8e2b70797 (patch)
tree932359f1f8f75ade8437d7070e3feb1ffbac5898 /tevent/rules.mk
parent9e1e585aa2740bd55bd60d965bd6c271ee9caa2e (diff)
downloadsssd-a93a69380dc6718c49879af628ed69f8e2b70797.tar.gz
sssd-a93a69380dc6718c49879af628ed69f8e2b70797.tar.xz
sssd-a93a69380dc6718c49879af628ed69f8e2b70797.zip
rebase events to tevent and align to upstream
Diffstat (limited to 'tevent/rules.mk')
-rw-r--r--tevent/rules.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/tevent/rules.mk b/tevent/rules.mk
new file mode 100644
index 000000000..6fd990fbf
--- /dev/null
+++ b/tevent/rules.mk
@@ -0,0 +1,21 @@
+.SUFFIXES: .i _wrap.c
+
+.i_wrap.c:
+ $(SWIG) -O -Wall -python -keyword $<
+
+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) -c $< -o $@
+
+distclean::
+ rm -f *~ */*~