Revert r28121 as it removes an optimization
[reactos.git] / reactos / ReactOS.rbuild
1 <?xml version="1.0"?>
2 <!DOCTYPE project SYSTEM "tools/rbuild/project.dtd">
3 <project name="ReactOS" makefile="makefile.auto" xmlns:xi="http://www.w3.org/2001/XInclude">
4 <xi:include href="config.rbuild">
5 <xi:fallback>
6 <xi:include href="config.template.rbuild" />
7 </xi:fallback>
8 </xi:include>
9
10 <xi:include href="baseaddress.rbuild" />
11
12 <define name="_M_IX86" />
13 <define name="_X86_" />
14 <define name="__i386__" />
15 <define name="_REACTOS_" />
16 <if property="MP" value="1">
17 <define name="CONFIG_SMP" value="1" />
18 </if>
19 <if property="DBG" value="1">
20 <define name="DBG" value="1" />
21 <define name="_SEH_ENABLE_TRACE" />
22 <property name="DBG_OR_KDBG" value="true" />
23 </if>
24 <if property="KDBG" value="1">
25 <define name="KDBG" value="1" />
26 <property name="DBG_OR_KDBG" value="true" />
27 </if>
28
29 <if property="GDB" value="0">
30 <if property="OPTIMIZE" value="1">
31 <compilerflag>-Os</compilerflag>
32 <compilerflag>-ftracer</compilerflag>
33 <compilerflag>-momit-leaf-frame-pointer</compilerflag>
34 <compilerflag>-mpreferred-stack-boundary=2</compilerflag>
35 </if>
36 <if property="OPTIMIZE" value="2">
37 <compilerflag>-Os</compilerflag>
38 <compilerflag>-mpreferred-stack-boundary=2</compilerflag>
39 </if>
40 <if property="OPTIMIZE" value="3">
41 <compilerflag>-O1</compilerflag>
42 <compilerflag>-mpreferred-stack-boundary=2</compilerflag>
43 </if>
44 <if property="OPTIMIZE" value="4">
45 <compilerflag>-O2</compilerflag>
46 <compilerflag>-mpreferred-stack-boundary=2</compilerflag>
47 </if>
48 <if property="OPTIMIZE" value="5">
49 <compilerflag>-O3</compilerflag>
50 <compilerflag>-mpreferred-stack-boundary=2</compilerflag>
51 </if>
52 </if>
53
54 <compilerflag>-Wno-strict-aliasing</compilerflag>
55 <compilerflag>-Wpointer-arith</compilerflag>
56 <linkerflag>-enable-stdcall-fixup</linkerflag>
57
58 <include>.</include>
59 <include>include</include>
60 <include>include/psdk</include>
61 <include root="intermediate">include/psdk</include>
62 <include>include/dxsdk</include>
63 <include>include/crt</include>
64 <include>include/ddk</include>
65 <include>include/GL</include>
66 <include>include/ndk</include>
67 <include>include/reactos</include>
68 <include>include/reactos/libs</include>
69
70 <directory name="base">
71 <xi:include href="base/base.rbuild" />
72 </directory>
73 <directory name="boot">
74 <xi:include href="boot/boot.rbuild" />
75 </directory>
76 <directory name="dll">
77 <xi:include href="dll/dll.rbuild" />
78 </directory>
79 <directory name="drivers">
80 <xi:include href="drivers/drivers.rbuild" />
81 </directory>
82 <directory name="hal">
83 <xi:include href="hal/hal.rbuild" />
84 </directory>
85 <directory name="include">
86 <xi:include href="include/directory.rbuild" />
87 </directory>
88 <directory name="lib">
89 <xi:include href="lib/lib.rbuild" />
90 </directory>
91 <directory name="media">
92 <xi:include href="media/media.rbuild" />
93 </directory>
94 <directory name="modules">
95 <xi:include href="modules/directory.rbuild" />
96 </directory>
97 <directory name="ntoskrnl">
98 <xi:include href="ntoskrnl/ntoskrnl.rbuild" />
99 </directory>
100 <directory name="subsystems">
101 <xi:include href="subsystems/subsystems.rbuild" />
102 </directory>
103
104 </project>