Move some more autogenerated files to intermediate directory
authorHervé Poussineau <hpoussin@reactos.org>
Fri, 3 Aug 2007 11:54:33 +0000 (11:54 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Fri, 3 Aug 2007 11:54:33 +0000 (11:54 +0000)
Remove POSTAUTO hack in Makefile

svn path=/trunk/; revision=28126

reactos/Makefile
reactos/ReactOS-i386.rbuild
reactos/dll/ntdll/ntdll.rbuild
reactos/dll/win32/kernel32/kernel32.rbuild
reactos/lib/win32ksys/win32ksys.rbuild
reactos/ntoskrnl/ntoskrnl.rbuild
reactos/subsystems/win32/win32k/win32k.rbuild
reactos/tools/buildno/buildno.mak
reactos/tools/gendib/gendib.mak
reactos/tools/nci/nci.mak
reactos/tools/rbuild/project.cpp

index d85357f..b4c5859 100644 (file)
@@ -391,11 +391,11 @@ endif
 
 NTOSKRNL_MC = ntoskrnl$(SEP)ntoskrnl.mc
 KERNEL32_MC = dll$(SEP)win32$(SEP)kernel32$(SEP)kernel32.mc
-BUILDNO_H = include$(SEP)reactos$(SEP)buildno.h
-BUGCODES_H = include$(SEP)reactos$(SEP)bugcodes.h
-BUGCODES_RC = ntoskrnl$(SEP)bugcodes.rc
-ERRCODES_H = include$(SEP)reactos$(SEP)errcodes.h
-ERRCODES_RC = dll$(SEP)win32$(SEP)kernel32$(SEP)errcodes.rc
+BUILDNO_H = $(INTERMEDIATE_)include$(SEP)reactos$(SEP)buildno.h
+BUGCODES_H = $(INTERMEDIATE_)include$(SEP)reactos$(SEP)bugcodes.h
+BUGCODES_RC = $(INTERMEDIATE_)ntoskrnl$(SEP)bugcodes.rc
+ERRCODES_H = $(INTERMEDIATE_)include$(SEP)reactos$(SEP)errcodes.h
+ERRCODES_RC = $(INTERMEDIATE_)dll$(SEP)win32$(SEP)kernel32$(SEP)errcodes.rc
 
 
 include lib/lib.mak
@@ -414,15 +414,10 @@ PREAUTO := \
        $(GENDIB_DIB_FILES) \
        $(NCI_SERVICE_FILES)
 
-POSTAUTO : \
-       psdk \
-       $(IDL_FILES)
-
 $(ROS_AUTOMAKE): $(RBUILD_TARGET) $(PREAUTO) $(XMLBUILDFILES)
        ${mkdir} $(INTERMEDIATE_)media$(SEP)inf 2>$(NUL)
        $(ECHO_RBUILD)
        $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -rReactOS-$(ARCH).rbuild mingw
-       @$(MAKE) POSTAUTO
 
 world: all bootcd livecd
 
@@ -494,10 +489,14 @@ msvc: $(RBUILD_TARGET)
        $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) msvc
 
 $(BUGCODES_H) $(BUGCODES_RC): $(WMC_TARGET) $(NTOSKRNL_MC)
+       ${mkdir} $(INTERMEDIATE_)include$(SEP)reactos 2>$(NUL)
+       ${mkdir} $(INTERMEDIATE_)ntoskrnl 2>$(NUL)
        $(ECHO_WMC)
        $(Q)$(WMC_TARGET) -i -H $(BUGCODES_H) -o $(BUGCODES_RC) $(NTOSKRNL_MC)
 
 $(ERRCODES_H) $(ERRCODES_RC): $(WMC_TARGET) $(KERNEL32_MC)
+       ${mkdir} $(INTERMEDIATE_)include$(SEP)reactos 2>$(NUL)
+       ${mkdir} $(INTERMEDIATE_)dll$(SEP)win32$(SEP)kernel32 2>$(NUL)
        $(ECHO_WMC)
        $(Q)$(WMC_TARGET) -i -U -H $(ERRCODES_H) -o $(ERRCODES_RC) $(KERNEL32_MC)
 
index 4deb521..c5ca322 100644 (file)
@@ -65,6 +65,7 @@
   <include>include/GL</include>
   <include>include/ndk</include>
   <include>include/reactos</include>
+  <include root="intermediate">include/reactos</include>
   <include>include/reactos/libs</include>
 
   <directory name="base">
index e5d0a75..cac50c9 100644 (file)
     <directory name="inc">
         <pch>ntdll.h</pch>
     </directory>
-    <if property="ARCH" value="i386">
-        <directory name="i386">
-            <file>napi.S</file>
-        </directory>
-    </if>
-    <if property="ARCH" value="powerpc">
-        <directory name="powerpc">
-            <file>napi.S</file>
-        </directory>
-    </if>
-    <if property="ARCH" value="mips">
-        <directory name="mips">
-            <file>napi.S</file>
-        </directory>
-    </if>
+
+    <directory name="." root="intermediate">
+        <file>napi.S</file>
+    </directory>
 </module>
index 9b49a31..768f51a 100644 (file)
 <module name="kernel32" type="win32dll" baseaddress="${BASEADDRESS_KERNEL32}" installbase="system32" installname="kernel32.dll">
        <importlibrary definition="kernel32.def" />
        <include base="kernel32">.</include>
+       <include base="kernel32" root="intermediate">.</include>
        <include base="kernel32">include</include>
        <define name="_DISABLE_TIDENTS" />
        <define name="__USE_W32API" />
index 6d51489..b24750d 100644 (file)
@@ -3,20 +3,7 @@
        <define name="__REACTOS__" />
        <define name="__USE_W32API" />
 
-               <if property="ARCH" value="i386">
-                       <directory name="i386">
-                               <file>win32k.S</file>
-                       </directory>
-               </if>
-               <if property="ARCH" value="powerpc">
-                       <directory name="powerpc">
-                               <file>win32k.S</file>
-                       </directory>
-               </if>
-               <if property="ARCH" value="mips">
-                       <directory name="mips">
-                               <file>win32k.S</file>
-                       </directory>
-               </if>
-
+       <directory name="." root="intermediate">
+               <file>win32k.S</file>
+       </directory>
 </module>
index 90acbe8..6b41ca5 100644 (file)
@@ -14,6 +14,7 @@
     </if>
     <include base="cmlib">.</include>
     <include base="ntoskrnl">include</include>
+    <include base="ntoskrnl" root="intermediate"></include>
     <include base="ReactOS">include/reactos/drivers</include>
     <library>csq</library>
     <library>hal</library>
         <file>dbgkutil.c</file>
         <file>dbgkobj.c</file>
     </directory>
+    <directory name="ex" root="intermediate">
+        <file>zw.S</file>
+    </directory>
     <directory name="ex">
         <if property="ARCH" value="i386">
             <directory name="i386">
                 <file>interlck_asm.S</file>
                 <file>fastinterlck_asm.S</file>
                 <file>ioport.S</file>
-                <file>zw.S</file>
-            </directory>
-        </if>
-        <if property="ARCH" value="powerpc">
-            <directory name="powerpc">
-                <file>zw.S</file>
-            </directory>
-        </if>
-        <if property="ARCH" value="mips">
-            <directory name="mips">
-                <file>zw.S</file>
             </directory>
         </if>
             <file>atom.c</file>
index 67f9d4e..4b3f7db 100644 (file)
        <define name="_WIN32K_" />
        <pch>w32k.h</pch>
 
+       <directory name="dib" root="intermediate">
+               <file>dib8gen.c</file>
+               <file>dib16gen.c</file>
+               <file>dib32gen.c</file>
+       </directory>
+
        <directory name="dib">
                <file>dib1bpp.c</file>
                <file>dib4bpp.c</file>
                <file>dib8bpp.c</file>
-               <file>dib8gen.c</file>
                <file>dib16bpp.c</file>
-               <file>dib16gen.c</file>
                <file>dib24bpp.c</file>
                <file>dib32bpp.c</file>
-               <file>dib32gen.c</file>
                <file>dib.c</file>
 
                <if property="ARCH" value="i386">
index f37d6c2..e6394c8 100644 (file)
@@ -46,5 +46,6 @@ buildno_clean:
 clean: buildno_clean
 
 $(BUILDNO_H): $(BUILDNO_TARGET)
+       ${mkdir} $(INTERMEDIATE_)include$(SEP)reactos 2>$(NUL)
        $(ECHO_BUILDNO)
        $(Q)$(BUILDNO_TARGET) $(BUILDNO_QUIET) $(BUILDNO_H)
index 697d8ba..3a91e15 100644 (file)
@@ -41,7 +41,7 @@ gendib_clean:
        -@$(rm) $(GENDIB_TARGET) $(GENDIB_OBJECTS) 2>$(NUL)
 clean: gendib_clean
 
-GENDIB_DIB_DIR = subsystems$(SEP)win32$(SEP)win32k$(SEP)dib
+GENDIB_DIB_DIR = $(INTERMEDIATE_)subsystems$(SEP)win32$(SEP)win32k$(SEP)dib
 
 GENDIB_DIB_FILES = \
        $(GENDIB_DIB_DIR)$(SEP)dib32gen.c \
@@ -49,5 +49,6 @@ GENDIB_DIB_FILES = \
        $(GENDIB_DIB_DIR)$(SEP)dib8gen.c
 
 $(GENDIB_DIB_FILES): $(GENDIB_TARGET)
+       ${mkdir} $(GENDIB_DIB_DIR) 2>$(NUL)
        $(ECHO_GENDIB)
        $(Q)$(GENDIB_TARGET) $(GENDIB_DIB_DIR)
index cf3f473..9ad9cf4 100644 (file)
@@ -43,16 +43,16 @@ clean: nci_clean
 
 # WIN32K.SYS
 WIN32K_SVC_DB = subsystems$(SEP)win32$(SEP)win32k$(SEP)w32ksvc.db
-WIN32K_SERVICE_TABLE = subsystems$(SEP)win32$(SEP)win32k$(SEP)include$(SEP)napi.h
-WIN32K_STUBS = lib$(SEP)win32ksys$(SEP)$(ARCH)$(SEP)win32k.S
+WIN32K_SERVICE_TABLE = $(INTERMEDIATE_)subsystems$(SEP)win32$(SEP)win32k$(SEP)include$(SEP)napi.h
+WIN32K_STUBS = $(INTERMEDIATE_)lib$(SEP)win32ksys$(SEP)win32k.S
 
 
 
 # NTOSKRNL.EXE
 KERNEL_SVC_DB = ntoskrnl$(SEP)sysfuncs.lst
-KERNEL_SERVICE_TABLE = ntoskrnl$(SEP)include$(SEP)internal$(SEP)napi.h
-NTDLL_STUBS = dll$(SEP)ntdll$(SEP)$(ARCH)$(SEP)napi.S
-KERNEL_STUBS = ntoskrnl$(SEP)ex$(SEP)$(ARCH)$(SEP)zw.S
+KERNEL_SERVICE_TABLE = $(INTERMEDIATE_)ntoskrnl$(SEP)include$(SEP)internal$(SEP)napi.h
+NTDLL_STUBS = $(INTERMEDIATE_)dll$(SEP)ntdll$(SEP)napi.S
+KERNEL_STUBS = $(INTERMEDIATE_)ntoskrnl$(SEP)ex$(SEP)zw.S
 
 NCI_SERVICE_FILES = \
        $(KERNEL_SERVICE_TABLE) \
@@ -64,11 +64,11 @@ NCI_SERVICE_FILES = \
 
 $(NCI_SERVICE_FILES): $(NCI_TARGET) $(KERNEL_SVC_DB) $(WIN32K_SVC_DB)
        $(ECHO_NCI)
-       ${mkdir} dll$(SEP)ntdll$(SEP)$(ARCH) 2>$(NUL)
-       ${mkdir} ntoskrnl$(SEP)ex$(SEP)$(ARCH) 2>$(NUL)
-       ${mkdir} dll$(SEP)win32$(SEP)gdi32$(SEP)misc$(SEP)$(ARCH) 2>$(NUL)
-       ${mkdir} dll$(SEP)win32$(SEP)user32$(SEP)misc$(SEP)$(ARCH) 2>$(NUL)
-       ${mkdir} lib$(SEP)win32ksys$(SEP)$(ARCH) 2>$(NUL)
+       ${mkdir} $(INTERMEDIATE_)ntoskrnl$(SEP)include$(SEP)internal 2>$(NUL)
+       ${mkdir} $(INTERMEDIATE_)dll$(SEP)ntdll 2>$(NUL)
+       ${mkdir} $(INTERMEDIATE_)ntoskrnl$(SEP)ex$(SEP) 2>$(NUL)
+       ${mkdir} $(INTERMEDIATE_)subsystems$(SEP)win32$(SEP)win32k$(SEP)include 2>$(NUL)
+       ${mkdir} $(INTERMEDIATE_)lib$(SEP)win32ksys 2>$(NUL)
 
        $(Q)$(NCI_TARGET) -arch $(ARCH) \
                $(KERNEL_SVC_DB) \
index 4a20129..d68d4ac 100644 (file)
@@ -240,7 +240,7 @@ Project::WriteConfigurationFile ()
 
        s = s + sprintf ( s, "#endif /* __INCLUDE_CONFIG_H */\n" );
 
-       FileSupportCode::WriteIfChanged ( buf, "include" + sSep + "roscfg.h" );
+       FileSupportCode::WriteIfChanged ( buf, Environment::GetIntermediatePath() + sSep + "include" + sSep + "roscfg.h" );
 
        free ( buf );
 }