diff --git a/langc/langc.uses.mk b/langc/langc.uses.mk index 05e83c5..1595b79 100644 --- a/langc/langc.uses.mk +++ b/langc/langc.uses.mk @@ -34,8 +34,14 @@ .if defined(_USES_profile_ARGS) WITH_PROFILE= yes .endif +.endif +WITH_DEBUG?= no + +.if ${WITH_DEBUG} == yes +CFLAGS+= -g .endif + .endif # !target(____) ### End of file `langc.uses.mk' diff --git a/testsuite/langc/test_program/Makefile b/testsuite/langc/test_program/Makefile index 028f184..6f5b94f 100644 --- a/testsuite/langc/test_program/Makefile +++ b/testsuite/langc/test_program/Makefile @@ -15,6 +15,7 @@ # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt TEST= TestProgram +TEST+= TestProgramDebug .include "test.mk" diff --git a/testsuite/langc/test_program/TestProgramDebug.mk b/testsuite/langc/test_program/TestProgramDebug.mk new file mode 100644 index 0000000..55efbf1 --- /dev/null +++ b/testsuite/langc/test_program/TestProgramDebug.mk @@ -0,0 +1,20 @@ +### TestProgramDebug.mk -- The obnoxious hello world program + +# Author: Michael Grünewald +# Date: Fri Nov 7 19:58:45 CET 2014 + +# BSD Owl Scripts (https://github.com/michipili/bsdowl) +# This file is part of BSD Owl Scripts +# +# Copyright © 2005–2014 Michael Grünewald +# +# This file must be used under the terms of the CeCILL-B. +# This source file is licensed as described in the file COPYING, which +# you should have received as part of this distribution. The terms +# are also available at +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt + +WITH_DEBUG= yes +.include "TestProgram.mk" + +### End of file `TestProgram.mk'