Description: add GCC hardening and fix the install path.
Author: Joao Eriberto Mota Filho <eriberto@debian.org>
Last-Update: 2015-07-20
Index: pipebench-0.40/Makefile
===================================================================
--- pipebench-0.40.orig/Makefile
+++ pipebench-0.40/Makefile
@@ -1,16 +1,16 @@
 # $Id: Makefile,v 1.2 2002/12/15 19:58:36 marvin Exp $
 
 CC=gcc
-CFLAGS=-Wall -w -pedantic
+CFLAGS+=-Wall -w -pedantic
 
 all: pipebench
 doc: pipebench.1
 install: pipebench
-	cp pipebench /usr/local/bin/
-	cp pipebench.1 /usr/local/man/man1/
+	cp pipebench $(DESTDIR)/usr/bin/
+	cp pipebench.1 $(DESTDIR)/usr/share/man/man1/
 
 pipebench: pipebench.c
-	$(CC) $(CFLAGS) -o pipebench pipebench.c
+	$(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) -o pipebench pipebench.c
 
 pipebench.1: pipebench.yodl
 	yodl2man -o pipebench.1 pipebench.yodl
