diff options
author | James Morris <jmorris@intercode.com.au> | 2000-11-24 14:34:02 +0000 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2000-11-24 14:34:02 +0000 |
commit | c82e9ac60540a9b25cb5ab60f603606dc208d318 (patch) | |
tree | 4ae78a70b0ad3195ac1c10ae6fc3397e5489ce1a | |
parent | 949810c35a0871d9173764e2ac3b4d814f982b9e (diff) |
added install-devel target
-rw-r--r-- | INSTALL | 14 | ||||
-rw-r--r-- | Makefile | 17 | ||||
-rw-r--r-- | libipq/Makefile | 17 |
3 files changed, 48 insertions, 0 deletions
@@ -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 + + + @@ -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 954e5e01..64633f33 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 + |