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