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

diff --git a/tests/Makefile b/tests/Makefile
index 3d2c1bf..a44d8dc 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -9,6 +9,10 @@
 OFLAGS	= -O
 LDFLAGS	+= -L../library -lpolarssl $(SYS_LDFLAGS)
 
+ifdef DEBUG
+CFLAGS += -g3
+endif
+
 APPS =	test_suite_aes			test_suite_arc4			\
 		test_suite_base64		test_suite_camellia		\
 		test_suite_cipher.aes	test_suite_cipher.camellia	\