Importing all of DRL, including ulogd and all of its files.
[distributedratelimiting.git] / mysql / Makefile
1 #
2
3 #  Normally You should not need to change anything below
4 #
5 include ../Rules.make
6
7 CFLAGS+=-I.. -I../libipulog/include -I../include
8 SH_CFLAGS:=$(CFLAGS) -fPIC
9
10 SHARED_LIBS=ulogd_MYSQL.so
11
12 all: $(SHARED_LIBS)
13
14 distrib:
15
16 $(SHARED_LIBS): %.so: %_sh.o
17         $(LD) -shared $(MYSQL_LDFLAGS) -o $@ $< -lc
18
19 %_sh.o: %.c
20         $(CC) $(MYSQL_CFLAGS) $(SH_CFLAGS) -o $@ -c $<
21         
22 clean:
23         $(RM) $(SHARED_LIBS) *.o
24
25 distclean:
26         $(RM) Makefile
27
28 install: all
29         $(INSTALL) -m 755 -d $(DESTDIR)$(ULOGD_LIB_PATH)
30         $(INSTALL) -m 755 *.so $(DESTDIR)$(ULOGD_LIB_PATH)