Description: Enable hardening
Author: Petter Reinholdtsen <pere@hungry.com>
Bug-Debian: http://bugs.debian.org/763536
Last-Update: 2014-09-30

--- ldap2zone-0.2.orig/Makefile
+++ ldap2zone-0.2/Makefile
@@ -1,4 +1,14 @@
 all: ldap2zone
 
+CFLAGS = -W -Wall -g
+LIBS = -lldap -llber
+LDFLAGS =
+
+CFLAGS += `dpkg-buildflags --get CFLAGS`
+CFLAGS += `dpkg-buildflags --get CPPFLAGS`
+LDFLAGS += `dpkg-buildflags --get LDFLAGS`
+
 ldap2zone: ldap2zone.c
-	gcc -Wall ldap2zone.c -o ldap2zone -lldap -llber
+	gcc $(CFLAGS) ldap2zone.c -o ldap2zone $(LDFLAGS) $(LIBS)
+clean:
+	rm -f ldap2zone
