1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
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
|