modified dll/win32/srclient/srclient_main.c
[reactos.git] / reactos / ReactOS-i386.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="ReactOS-generic.rbuild" />
11
12 <define name="_M_IX86" />
13 <define name="_X86_" />
14 <define name="__i386__" />
15 <define name="TARGET_i386" host="true" />
16
17 <define name="USE_COMPILER_EXCEPTIONS" />
18
19 <property name="NTOSKRNL_SHARED" value="-file-alignment=0x1000 -section-alignment=0x1000 -shared"/>
20 <property name="PLATFORM" value="PC"/>
21
22 <group compilerset="gcc">
23 <if property="OPTIMIZE" value="1">
24 <compilerflag>-Os</compilerflag>
25 <compilerflag>-ftracer</compilerflag>
26 <compilerflag>-momit-leaf-frame-pointer</compilerflag>
27 </if>
28 <if property="OPTIMIZE" value="2">
29 <compilerflag>-Os</compilerflag>
30 </if>
31 <if property="OPTIMIZE" value="3">
32 <compilerflag>-O1</compilerflag>
33 </if>
34 <if property="OPTIMIZE" value="4">
35 <compilerflag>-O2</compilerflag>
36 </if>
37 <if property="OPTIMIZE" value="5">
38 <compilerflag>-O3</compilerflag>
39 </if>
40
41 <compilerflag>-mpreferred-stack-boundary=2</compilerflag>
42 <compilerflag>-fno-strict-aliasing</compilerflag>
43 <compilerflag>-Wno-strict-aliasing</compilerflag>
44 <compilerflag>-Wpointer-arith</compilerflag>
45 <compilerflag>-Wno-multichar</compilerflag>
46 <!-- compilerflag>-H</compilerflag> enable this for header traces -->
47 </group>
48
49 <group compilerset="msc">
50 <if property="OPTIMIZE" value="1">
51 <compilerflag>/O1</compilerflag>
52 </if>
53 <if property="OPTIMIZE" value="2">
54 <compilerflag>/O2</compilerflag>
55 </if>
56 <if property="OPTIMIZE" value="3">
57 <compilerflag>/Ox /GS-</compilerflag>
58 <compilerflag>/Ot</compilerflag>
59 </if>
60 <if property="OPTIMIZE" value="4">
61 <compilerflag>/Ox /GS-</compilerflag>
62 <compilerflag>/Os</compilerflag>
63 </if>
64 <if property="OPTIMIZE" value="5">
65 <compilerflag>/Ox /GS-</compilerflag>
66 <compilerflag>/Os</compilerflag>
67 <compilerflag>/Ob2</compilerflag>
68 <compilerflag>/GF</compilerflag>
69 <compilerflag>/Gy</compilerflag>
70 </if>
71
72 <compilerflag>/GS-</compilerflag>
73 <compilerflag>/Zl</compilerflag>
74 <compilerflag>/Zi</compilerflag>
75 <compilerflag>/Wall</compilerflag>
76 </group>
77
78 <group linkerset="ld">
79 <linkerflag>-disable-stdcall-fixup</linkerflag>
80 </group>
81
82 <define name="_USE_32BIT_TIME_T" />
83 </project>