diff options
author | laforge <laforge> | 2000-08-10 11:45:49 +0000 |
---|---|---|
committer | laforge <laforge> | 2000-08-10 11:45:49 +0000 |
commit | de923c5f36f5244e888b616de42b6a1cbf045372 (patch) | |
tree | 040fd9216087374470af2f6345d8922084b4623c /ulogd/Makefile | |
parent | ec20233e75f69011f41c58a2edcbcd29be484768 (diff) |
Initial revision
Diffstat (limited to 'ulogd/Makefile')
-rw-r--r-- | ulogd/Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/ulogd/Makefile b/ulogd/Makefile new file mode 100644 index 0000000..9cb52f6 --- /dev/null +++ b/ulogd/Makefile @@ -0,0 +1,33 @@ +# Path of libipulog (from iptables) +LIBIPULOG=../libipulog + +# Names of the plugins to be compiled +ULOGD_SL:=BASE OPRINT + + +# Normally You should not need to change anything below +# +CC = gcc +CFLAGS = -I. -I$(LIBIPULOG)/include -g -Wall +SH_CFLAGS:=$(CFLAGS) -fPIC + +SHARED_LIBS+=$(foreach T,$(ULOGD_SL),extensions/ulogd_$(T).so) + +all: $(SHARED_LIBS) ulogd + +$(SHARED_LIBS): %.so: %_sh.o + ld -shared -o $@ $< + +%_sh.o: %.c + gcc $(SH_CFLAGS) -o $@ -c $< + +ulogd: ulogd.c ../libipulog/libipulog.a ulogd.h + $(CC) $(CFLAGS) -rdynamic -ldl -i ulogd.c $(LIBIPULOG)/libipulog.a -o ulogd + +clean: + rm -f ulogd extensions/*.o extensions/*.so + +install: all + mkdir -p /usr/local/lib/ulogd && cp extensions/*.so /usr/local/lib/ulogd + cp ulogd /usr/local/sbin + |