Codebase list bsdowl / f7d765e
Build a simple program with profiling information Closes #123 Michael Grünewald 9 years ago
3 changed file(s) with 26 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3636 .endif
3737
3838 WITH_DEBUG?= no
39 WITH_PROFILE?= no
3940
4041 .if ${WITH_DEBUG} == yes
4142 CFLAGS+= -g
4243 .endif
4344
45 .if ${WITH_PROFILE} == yes && !empty(CC:M*gcc*)
46 CFLAGS+= -p
47 .endif
48
4449 .endif # !target(__<langc.uses.mk>__)
4550
4651 ### End of file `langc.uses.mk'
1515
1616 TEST= TestProgram
1717 TEST+= TestProgramDebug
18 TEST+= TestProgramProfile
1819
1920 .include "test.mk"
2021
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'