From: Paride Legovini <paride@debian.org>
Date: Tue, 3 Apr 2018 14:35:14 +0200
Subject: Allow debhelper to build with hardening options.

Modify Makefile to allow CFLAGS, CPPFLAGS, LDFLAGS to be passed in.
Original Author: Paul Martin <pm@debian.org>
---
 Makefile | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/Makefile b/Makefile
index 67020b2..5582ec5 100644
--- a/Makefile
+++ b/Makefile
@@ -8,25 +8,12 @@ CC = /usr/bin/gcc
 INSTALL = /usr/bin/install
 DESTDIR = /usr/local
 MANDESTDIR = /usr/local/
-CFLAGS= -Wall
+CFLAGS += -Wall
 INSTALL-BIN = $(INSTALL)
 
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-CFLAGS += -O0
-else
-CFLAGS += -O2
-endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-INSTALL_BIN += -s
-endif
-
-.c.o:
-	$(CC) $(CFLAGS) -c $<
-
 all: radioclkd
 
 radioclkd: radioclkd.o
-	$(CC) -o $@ radioclkd.o
 
 install: install-bin install-man
 
