Description: use LDFLAGS in Makefile, add hardening
 patch the Makefile to use LDFLAGS and enable hardening
 CFLAGS
Author: Christian T. Steigies <cts@debian.org>
Last-Update: 2018-09-02
Index: madbomber/Makefile
===================================================================
--- madbomber.orig/Makefile
+++ madbomber/Makefile
@@ -35,6 +35,12 @@ CFLAGS=-Wall -g $(SDL_CFLAGS) \
 SDL_LIB=$(MIXER) $(IMAGE) $(SDL_LDFLAGS)
 
 
+# Debian hardening
+
+CFLAGS += `dpkg-buildflags --get CFLAGS`
+CFLAGS += `dpkg-buildflags --get CPPFLAGS`
+
+
 # Make commands:
 
 all:	$(TARGET)
@@ -78,7 +84,7 @@ clean:
 # Main executable:
 
 $(TARGET):	madbomber.o
-	$(CC) $(CFLAGS) madbomber.o -o $(TARGET) $(SDL_LIB) -lm
+	$(CC) $(CFLAGS) madbomber.o -o $(TARGET) $(SDL_LIB) -lm $(LDFLAGS)
 
 
 # Main object:
