]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
added install-devel target
authorJames Morris <jmorris@intercode.com.au>
Fri, 24 Nov 2000 14:34:02 +0000 (14:34 +0000)
committerJames Morris <jmorris@namei.org>
Fri, 24 Nov 2000 14:34:02 +0000 (14:34 +0000)
INSTALL
Makefile
libipq/Makefile

diff --git a/INSTALL b/INSTALL
index 353d825af236a3a1effbb2e6c90c1c04164d6316..29fd860d98514c437b6490e8407c90a71c269e44 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -33,3 +33,17 @@ Problems you may encounter:
 NOTE: make sure you build with at least the correct LIBDIR=
 specification, otherwise iptables(8) won't know where to find the
 dynamic objects.
+
+
+DEVELOPERS:
+===========
+
+0) If you wish to install iptables development libraries
+   and related components, type:
+       % make install-devel
+       
+Development libraries currently installed by the above are:
+  libipq: Userspace packet queueing API
+  
+
+  
index 868c23befe1d883900dced300f9317b120a9d3f1..60acf0ef6dc5304a2aeaafd390ada70cb0bf5be4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,7 @@ OLD_NETFILTER_VERSION:=1.1.1
 LIBDIR:=/usr/local/lib
 BINDIR:=/usr/local/bin
 MANDIR:=/usr/local/man
+INCDIR:=/usr/local/include
 
 COPT_FLAGS:=-O2 -DNDEBUG
 CFLAGS:=$(COPT_FLAGS) -Wall -Wunused -Iinclude/ -I$(KERNEL_DIR)/include -DNETFILTER_VERSION=\"$(NETFILTER_VERSION)\" #-g #-pg
@@ -92,6 +93,22 @@ EXTRA_DEPENDS+=iptables-standalone.d iptables.d
 iptables-standalone.d iptables.d: %.d: %.c
        @-$(CC) -M -MG $(CFLAGS) $< | sed -e 's@^.*\.o:@$*.d $*.o:@' > $@
 
+
+# Development Targets
+install-devel-man3: $(DEVEL_MAN3)
+       @[ -d $(DESTDIR)$(MANDIR)/man3 ] || mkdir -p $(DESTDIR)$(MANDIR)/man3
+       @cp -v $(DEVEL_MAN3) $(DESTDIR)$(MANDIR)/man3
+
+install-devel-headers: $(DEVEL_HEADERS)
+       @[ -d $(DESTDIR)$(INCDIR) ] || mkdir -p $(DESTDIR)$(INCDIR)
+       @cp -v $(DEVEL_HEADERS) $(DESTDIR)$(INCDIR)
+
+install-devel-libs: $(DEVEL_LIBS)
+       @[ -d $(DESTDIR)$(LIBDIR) ] || mkdir -p $(DESTDIR)$(LIBDIR)
+       @cp -v $(DEVEL_LIBS) $(DESTDIR)$(LIBDIR)
+
+install-devel: all install-devel-man3 install-devel-headers install-devel-libs
+
 distclean: clean
        @rm -f TAGS `find . -name '*~' -o -name '.*~'` `find . -name '*.rej'` `find . -name '*.d'` .makefirst
 
index 954e5e016090aedc2c1836722d438c0d436c02bc..64633f33736a0daa9bbf58ef2a4d86204a9b4582 100644 (file)
@@ -3,9 +3,26 @@
 EXTRAS+=libipq/libipq.a
 #CFLAGS+=-DDEBUG_LIBIPTQ
 
+DEVEL_MAN3+=libipq/ipq_create_handle.3 \
+       libipq/ipq_destroy_handle.3 \
+       libipq/ipq_errstr.3 \
+       libipq/ipq_get_msgerr.3 \
+       libipq/ipq_get_packet.3 \
+       libipq/ipq_message_type.3 \
+       libipq/ipq_perror.3 \
+       libipq/ipq_read.3 \
+       libipq/ipq_set_mode.3 \
+       libipq/ipq_set_verdict.3 \
+       libipq/libipq.3
+
+DEVEL_LIBS+=libipq/libipq.a
+
+DEVEL_HEADERS+=include/libipq/libipq.h
+
 ifndef TOPLEVEL_INCLUDED
 local:
        cd .. && $(MAKE) $(SHARED_LIBS) $(EXTRAS)
 else
 libipq/libipq.a: libipq/libipq.a(libipq/libipq.o)
 endif
+