- Added automatic debug flags to CFLAGS if DEBUG is set in shell

diff --git a/programs/Makefile b/programs/Makefile
index 7027743..e6771ce 100644
--- a/programs/Makefile
+++ b/programs/Makefile
@@ -7,6 +7,10 @@
 OFLAGS	= -O
 LDFLAGS	+= -L../library -lpolarssl $(SYS_LDFLAGS)
 
+ifdef DEBUG
+CFLAGS += -g3
+endif
+
 APPS =	aes/aescrypt2	aes/crypt_and_hash	\
 	hash/hello			hash/generic_sum	\
 	hash/md5sum			hash/sha1sum		\