From 2aba4107915611b223daa8c27c52352f57b25bbc Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sat, 14 Jun 2008 11:23:31 -0400 Subject: This patch make it possible to build the events library completely standalone with no ties to internal samba4 functions Samba4 itself just uses the plain library, compatibility glue is in events_s4.c only (This used to be commit 7109b6a5a19eb2dbef4259104858b171298bad6e) --- source4/lib/events/rules.mk | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 source4/lib/events/rules.mk (limited to 'source4/lib/events/rules.mk') diff --git a/source4/lib/events/rules.mk b/source4/lib/events/rules.mk new file mode 100644 index 0000000000..cfe548039b --- /dev/null +++ b/source4/lib/events/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 *~ */*~ -- cgit