By default don't build libnethogs (but document how to do it)

This commit is contained in:
Arnout Engelen
2016-07-12 23:34:31 +02:00
parent 57b668b478
commit 3a38086682
2 changed files with 14 additions and 7 deletions

View File

@@ -3,11 +3,9 @@ export VERSION := $(shell ./determineVersion.sh)
#export PREFIX := /usr #export PREFIX := /usr
export PREFIX ?= /usr/local export PREFIX ?= /usr/local
all: nethogs decpcap_test test all: decpcap_test test nethogs
$(MAKE) -C src -f MakeApp.mk $@
$(MAKE) -C src -f MakeLib.mk $@
.PHONY: tgz release .PHONY: tgz release check install install_lib install_dev uninstall uninstall_lib nethogs libnethogs decpcap_test test clean all
tgz: clean tgz: clean
git archive --prefix="nethogs-$(VERSION)/" -o "../nethogs-$(VERSION).tar.gz" HEAD git archive --prefix="nethogs-$(VERSION)/" -o "../nethogs-$(VERSION).tar.gz" HEAD
@@ -23,21 +21,28 @@ check:
install: install:
$(MAKE) -C src -f MakeApp.mk $@ $(MAKE) -C src -f MakeApp.mk $@
$(MAKE) -C src -f MakeLib.mk $@
$(MAKE) -C doc $@ $(MAKE) -C doc $@
install_lib:
$(MAKE) -C src -f MakeLib.mk install
install_dev: install_dev:
$(MAKE) -C src -f MakeLib.mk $@ $(MAKE) -C src -f MakeLib.mk $@
$(MAKE) -C doc $@ $(MAKE) -C doc $@
uninstall: uninstall:
$(MAKE) -C src -f MakeApp.mk $@ $(MAKE) -C src -f MakeApp.mk $@
$(MAKE) -C src -f MakeLib.mk $@
$(MAKE) -C doc $@ $(MAKE) -C doc $@
uninstall_lib:
$(MAKE) -C src -f MakeLib.mk uninstall
nethogs: nethogs:
$(MAKE) -C src -f MakeApp.mk $@ $(MAKE) -C src -f MakeApp.mk $@
libnethogs:
$(MAKE) -C src -f MakeLib.mk all
decpcap_test: decpcap_test:
$(MAKE) -C src -f MakeApp.mk $@ $(MAKE) -C src -f MakeApp.mk $@

View File

@@ -88,6 +88,8 @@ compatibility while we look for the right abstraction points. Packaging
libnethogs as an independent package is currently discouraged, as the chance libnethogs as an independent package is currently discouraged, as the chance
of different applications successfully using the same libnethogs are slim. of different applications successfully using the same libnethogs are slim.
Build it with `make libnethogs`, install with `make install_lib` or `make install_dev`.
libnethogs is being used in https://github.com/mb-gh/gnethogs libnethogs is being used in https://github.com/mb-gh/gnethogs
links links