Build a simple program with debugging information
Closes #122
Michael Grünewald
9 years ago
33 | 33 |
.if defined(_USES_profile_ARGS)
|
34 | 34 |
WITH_PROFILE= yes
|
35 | 35 |
.endif
|
|
36 |
.endif
|
36 | 37 |
|
|
38 |
WITH_DEBUG?= no
|
|
39 |
|
|
40 |
.if ${WITH_DEBUG} == yes
|
|
41 |
CFLAGS+= -g
|
37 | 42 |
.endif
|
|
43 |
|
38 | 44 |
.endif # !target(__<langc.uses.mk>__)
|
39 | 45 |
|
40 | 46 |
### End of file `langc.uses.mk'
|
14 | 14 |
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt
|
15 | 15 |
|
16 | 16 |
TEST= TestProgram
|
|
17 |
TEST+= TestProgramDebug
|
17 | 18 |
|
18 | 19 |
.include "test.mk"
|
19 | 20 |
|
|
0 |
### TestProgramDebug.mk -- The obnoxious hello world program
|
|
1 |
|
|
2 |
# Author: Michael Grünewald
|
|
3 |
# Date: Fri Nov 7 19:58:45 CET 2014
|
|
4 |
|
|
5 |
# BSD Owl Scripts (https://github.com/michipili/bsdowl)
|
|
6 |
# This file is part of BSD Owl Scripts
|
|
7 |
#
|
|
8 |
# Copyright © 2005–2014 Michael Grünewald
|
|
9 |
#
|
|
10 |
# This file must be used under the terms of the CeCILL-B.
|
|
11 |
# This source file is licensed as described in the file COPYING, which
|
|
12 |
# you should have received as part of this distribution. The terms
|
|
13 |
# are also available at
|
|
14 |
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt
|
|
15 |
|
|
16 |
WITH_DEBUG= yes
|
|
17 |
.include "TestProgram.mk"
|
|
18 |
|
|
19 |
### End of file `TestProgram.mk'
|