Build a simple program with profiling information
Closes #123
Michael Grünewald
9 years ago
36 | 36 |
.endif
|
37 | 37 |
|
38 | 38 |
WITH_DEBUG?= no
|
|
39 |
WITH_PROFILE?= no
|
39 | 40 |
|
40 | 41 |
.if ${WITH_DEBUG} == yes
|
41 | 42 |
CFLAGS+= -g
|
42 | 43 |
.endif
|
43 | 44 |
|
|
45 |
.if ${WITH_PROFILE} == yes && !empty(CC:M*gcc*)
|
|
46 |
CFLAGS+= -p
|
|
47 |
.endif
|
|
48 |
|
44 | 49 |
.endif # !target(__<langc.uses.mk>__)
|
45 | 50 |
|
46 | 51 |
### End of file `langc.uses.mk'
|
|
0 |
### TestProgramProfile.mk -- The obnoxious hello world program
|
|
1 |
|
|
2 |
# Author: Michael Grünewald
|
|
3 |
# Date: Fri Nov 7 19:58:34 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_PROFILE= yes
|
|
17 |
.include "TestProgram.mk"
|
|
18 |
|
|
19 |
### End of file `TestProgram.mk'
|