[master] 22dddf3 Update Makefile.phk to handle varnishtop

Martin Blix Grydeland martin at varnish-software.com
Wed Jan 29 15:19:54 CET 2014


commit 22dddf3c55ada965940aa339d7467a84037b1483
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Wed Jan 29 15:12:39 2014 +0100

    Update Makefile.phk to handle varnishtop

diff --git a/bin/Makefile.phk b/bin/Makefile.phk
index 933c9d8..5380231 100644
--- a/bin/Makefile.phk
+++ b/bin/Makefile.phk
@@ -6,7 +6,7 @@ SUBDIRS += varnishncsa
 SUBDIRS += varnishtest 
 SUBDIRS += varnishstat
 # SUBDIRS += varnishhist 
-# SUBDIRS += varnishtop
+SUBDIRS += varnishtop
 
 TOPDIR = $(CURDIR)/..
 include $(TOPDIR)/Makefile.inc.phk
diff --git a/bin/varnishtop/Makefile.phk b/bin/varnishtop/Makefile.phk
index 1b922f3..3c5684c 100644
--- a/bin/varnishtop/Makefile.phk
+++ b/bin/varnishtop/Makefile.phk
@@ -1,9 +1,15 @@
-PROG_SRC = varnishtop.c
+PROG_SRC += varnishtop.c
+PROG_SRC += varnishtop_options.c
 
-LD_ADD	+= ${LIB_VARNISH}
+LD_ADD	+= ${LIB_VARNISHTOOLS}
 LD_ADD	+= ${LIB_VARNISHAPI}
+LD_ADD	+= ${LIB_VARNISH}
 LD_ADD	+= ${LIB_PCRE}
-LD_ADD	+= ${LIB_CURSES}
+LD_ADD	+= -lm
+
+TODO_ALL += build_man
 
 TOPDIR  = $(CURDIR)/../..
 include $(TOPDIR)/Makefile.inc.phk
+
+.PHONY: build_man



More information about the varnish-commit mailing list