From 31cfe18fdf8d7d54aa16ae42b3b5fd0f6760ad07 Mon Sep 17 00:00:00 2001 From: jamesm Date: Fri, 24 Nov 2000 14:34:02 +0000 Subject: added install-devel target --- INSTALL | 14 ++++++++++++++ Makefile | 17 +++++++++++++++++ libipq/Makefile | 17 +++++++++++++++++ 3 files changed, 48 insertions(+) diff --git a/INSTALL b/INSTALL index 353d825..29fd860 100644 --- 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 + + + diff --git a/Makefile b/Makefile index 868c23b..60acf0e 100644 --- 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 diff --git a/libipq/Makefile b/libipq/Makefile index 954e5e0..64633f3 100644 --- a/libipq/Makefile +++ b/libipq/Makefile @@ -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 + -- cgit v1.2.3