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
|
Description: Allow debhelper to build with hardening options.
Modify Makefile to allow CFLAGS, CPPFLAGS, LDFLAGS to be passed in.
Author: Paul Martin <pm@debian.org>
Index: radioclk-1.0.ds1/Makefile
===================================================================
--- radioclk-1.0.ds1.orig/Makefile 2003-01-24 02:03:24.000000000 +0000
+++ radioclk-1.0.ds1/Makefile 2012-05-16 22:44:06.118198045 +0100
@@ -8,25 +8,13 @@
INSTALL = /usr/bin/install
DESTDIR = /usr/local
MANDESTDIR = /usr/local/
-CFLAGS= -Wall -g
+CFLAGS += -Wall -g
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
|