Description: Accept Debian's hardening flags
Author: Simon Richter <sjr@debian.org>
Last-Update: 2013-01-14

Index: langford-0.0.20130221/Makefile
===================================================================
--- langford-0.0.20130221.orig/Makefile	2013-02-21 23:26:58.000000000 +0100
+++ langford-0.0.20130221/Makefile	2013-04-04 18:18:33.395471682 +0200
@@ -28,10 +28,10 @@
 	echo "Remember to run langford_init in order to initialize the device at /dev/langford"	
 
 langford_util: langford_util.cpp
-	g++ $< -ansi -Wall -g -o $@
+	$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
 
 langford_adc_util: langford_adc_util.cpp langford_spi.cpp
-	g++ langford_adc_util.cpp langford_spi.cpp -ansi -Wall -g -o $@
+	$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
 
 libs:
 	make -f libs/Makefile
Index: langford-0.0.20130221/libs/Makefile
===================================================================
--- langford-0.0.20130221.orig/libs/Makefile	2013-02-21 23:26:58.000000000 +0100
+++ langford-0.0.20130221/libs/Makefile	2013-04-04 18:18:33.395471682 +0200
@@ -5,10 +5,10 @@
 all: langford_rf_fsynth langford_rx_rf_bb_vga
 
 langford_rf_fsynth: $(FSYNTHSRC)
-	g++ -ansi -Wall $(FSYNTHSRC) -o langford_rf_fsynth
+	$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
 
 langford_rx_rf_bb_vga: $(VGASRC)
-	g++ -ansi -Wall $(VGASRC) -o langford_rx_rf_bb_vga
+	$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
 
 install: langford_rf_fsynth langford_rx_rf_bb_vga
 	sudo cp langford_rx_rf_bb_vga langford_rf_fsynth /usr/bin
