Merge 12735:15568 from xmlbuildsystem branch

svn path=/trunk/; revision=15583
This commit is contained in:
Casper Hornstrup 2005-05-28 15:18:30 +00:00
commit 2990d277fb
650 changed files with 25367 additions and 14232 deletions

View file

@ -7,67 +7,72 @@ ReactOS from http://www.reactos.com.
2. Building ReactOS
To build from Windows run 'make' (wihout the quotes) from the top directory.
To build from unix, edit rules.mak and change the PREFIX variable to the
correct value for your cross-compiler. Run 'export HOST=mingw32-linux' to
tell the ReactOS build system that it is building ReactOS on a linux machine.
Now run 'make'.
2.1 Building the binaries
To build ReactOS run 'make' (wihout the quotes) if you are building on Linux
or 'mingw32-make' if you are building on Windows (or ReactOS) from the top
directory.
2.2 Building a bootable CD image
To build a bootable CD image run 'make bootcd' (wihout the quotes) if you are
building on Linux or 'mingw32-make bootcd' if you are building on Windows (or
ReactOS) from the top directory. This will create a CD image with a filename,
ReactOS.iso, in the top directory.
3. Installation
The system can only be installed on the first partition on the first harddisk.
The partition must be formatted as FAT16 or FAT32. The system can only be
started from DOS and not from a Windows DOS-prompt.
ReactOS can only be installed on a machine that has a FAT16 or FAT32 partition
as the active (bootable) partition. The partition on which ReactOS is to be
installed (which may or may not be the bootable partition) must also be
formatted as FAT16 or FAT32. ReactOS Setup can format the partitions if
needed.
ReactOS can be installed from the source distribution or from the binary
ReactOS can be installed from the source distribution or from the bootable CD
distribution. The two ways to install ReactOS are explained below.
3.1 Installation from sources
To install ReactOS after building it, type 'make install'. This will create
the directory 'reactos' in the top directory. Copy this directory to the root
of your first partition on your first harddisk. This is usually c:\ on a
Windows machine.
If you don't have an existing ReactOS installation you want to upgrade, then
build a bootable CD as described above. Burn the CD image, boot from it, and
follow the instructions to install ReactOS.
If you don't want to copy the files manually every time you run a 'make install',
you can specify the directory where the files are to be copied to during
installation.
If you have an existing ReactOS installation you want to upgrade, then to
install ReactOS after building it, type 'make install' or
'mingw32-make install'. This will create the directory 'reactos' in the top
directory. Copy the contents of this directory over the existing installation.
In rules.mak find the variable INSTALL_DIR and change the assigned value to the
name of the directory where the files are to be copied to. If you are using
Windows this could be:
If you don't want to copy the files manually every time you run a
'make install' or 'mingw32-make install', then you can specify the directory
where the files are to be copied to during installation.
INSTALL_DIR = c:\reactos
Set the ROS_INSTALL environment variable. If you are on Windows this could be
done by:
If you are on linux this could be:
set ROS_INSTALL=c:\reactos
INSTALL_DIR = /mnt/windows/reactos
If you are on Linux this could be done by:
Save the changes to rules.mak and run 'make install' to install the files to
the new location. If you don't want to change rules.mak, you can specify the
installtion directory when invoking make. Run
'make INSTALL_DIR=c:\reactos install' to install to c:\reactos.
export ROS_INSTALL=/mnt/windows/reactos
Now run 'make install' or 'mingw32-make install' to install the files to the
new location.
3.2 Installation from binany distribution
3.2 Installation from bootable CD distribution
To install ReactOS from the binary distribution, extract the archive contents
to c:\reactos. Remember to extract the files with full paths.
4. Booting ReactOS
Startup in DOS mode. 'cd' to c:\reactos and type 'boot' and press <enter>.
A simple shell is started where you can use simple commands like 'cd' and 'dir'.
To install ReactOS from the bootable CD distribution, extract the archive
contents. Then burn the CD image, boot from it, and follow instructions.
5. Help
If you run into problems or have suggestions for making ReactOS better, please
surf to the address below and subscribe to one or more of the mailing lists.
visit the address below and subscribe to one or more of the mailing lists.
http://www.reactos.com/index.php?tab=discussion&section=lists
http://www.reactos.com/en/content/view/full/66
ReactOS Development Team

View file

@ -1,5 +0,0 @@
# Main jamfile for ReactOS
SubDir ROS_TOP ;
SubInclude ROS_TOP Lib ;

View file

@ -1,54 +0,0 @@
# customization for ReactOS goes here
# The SharedLibrary and SharedLibraryFromObjects rules were
# borrowed from here:
# http://www.differentpla.net/~roger/devel/jam/tutorial/shared_lib/index.html
SUFSHR = .dll ;
RM = rm ; # rm comes with MinGW, and the default del doesn't work in some cases
rule SharedLibrary
{
SharedLibraryFromObjects $(<) : $(>:S=$(SUFOBJ)) ;
Objects $(>) ;
}
rule SharedLibraryFromObjects
{
local _s _t ;
# Add grist to file names
# Add suffix to dll
_s = [ FGristFiles $(>) ] ;
_t = [ FAppendSuffix $(<) : $(SUFSHR) ] ;
if $(_t) != $(<)
{
DEPENDS $(<) : $(_t) ;
NOTFILE $(<) ;
}
# make compiled sources a dependency of target
DEPENDS exe : $(_t) ;
DEPENDS $(_t) : $(_s) ;
MakeLocate $(_t) : $(LOCATE_TARGET) ;
Clean clean : $(_t) ;
Link $(_t) : $(_s) ;
}
# nasm needs to know the output file first, or it doesn't
# recognize -I :(
actions As
{
$(AS) -o $(<) $(ASFLAGS) -I$(HDRS) $(>)
}
AS = nasm ;
# why isn't DEFINES working? :(
#DEFINES += _M_IX86 ;
CCFLAGS += -D_M_IX86 ;

File diff suppressed because it is too large Load diff

68
reactos/ReactOS.xml Normal file
View file

@ -0,0 +1,68 @@
<?xml version="1.0"?>
<!DOCTYPE project SYSTEM "tools/rbuild/project.dtd">
<project name="ReactOS" makefile="makefile.auto" xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="config.xml">
<xi:fallback>
<xi:include href="config.template.xml" />
</xi:fallback>
</xi:include>
<xi:include href="baseaddress.xml" />
<define name="_M_IX86" />
<if property="DBG" value="1">
<define name="DBG" value="1" />
<property name="DBG_OR_KDBG" value="true" />
</if>
<if property="DBG" value="0">
<compilerflag>-Wno-strict-aliasing</compilerflag>
<compilerflag>-ftracer</compilerflag>
<compilerflag>-momit-leaf-frame-pointer</compilerflag>
<compilerflag>-mpreferred-stack-boundary=2</compilerflag>
</if>
<if property="KDBG" value="1">
<define name="KDBG" value="1" />
<property name="DBG_OR_KDBG" value="true" />
</if>
<include>include</include>
<include>w32api/include</include>
<include>w32api/include/ddk</include>
<directory name="apps">
<xi:include href="apps/directory.xml" />
</directory>
<directory name="boot">
<xi:include href="boot/boot.xml" />
</directory>
<directory name="bootdata">
<xi:include href="bootdata/bootdata.xml" />
</directory>
<directory name="drivers">
<xi:include href="drivers/directory.xml" />
</directory>
<directory name="hal">
<xi:include href="hal/directory.xml" />
</directory>
<directory name="include">
<xi:include href="include/directory.xml" />
</directory>
<directory name="lib">
<xi:include href="lib/directory.xml" />
</directory>
<directory name="media">
<xi:include href="media/directory.xml" />
</directory>
<directory name="ntoskrnl">
<xi:include href="ntoskrnl/ntoskrnl.xml" />
</directory>
<directory name="regtests">
<xi:include href="regtests/directory.xml" />
</directory>
<directory name="services">
<xi:include href="services/directory.xml" />
</directory>
<directory name="subsys">
<xi:include href="subsys/directory.xml" />
</directory>
</project>

View file

@ -0,0 +1,3 @@
<directory name="utils">
<xi:include href="utils/directory.xml" />
</directory>

View file

@ -0,0 +1,3 @@
<directory name="net">
<xi:include href="net/directory.xml" />
</directory>

View file

@ -87,7 +87,7 @@ int main(int argc, char *argv[])
DWORD dwUptime = SnmpSvcGetUptime();
_tprintf(_T("SNMP uptime: %d\n"), dwUptime);
_tprintf(_T("SNMP uptime: %ld\n"), dwUptime);
SnmpUtilMemFree(pCache);
} else {

View file

@ -0,0 +1,9 @@
<module name="arp" type="win32cui" installbase="system32" installname="arp.exe">
<include base="arp">.</include>
<define name="__USE_W32API" />
<library>kernel32</library>
<library>user32</library>
<library>snmpapi</library>
<file>arp.c</file>
<file>arp.rc</file>
</module>

View file

@ -1,19 +0,0 @@
PATH_TO_TOP = ../../../..
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = arp
TARGET_INSTALLDIR = system32
TARGET_CFLAGS = -D__USE_W32API
TARGET_SDKLIBS = user32.a snmpapi.a
TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -0,0 +1,27 @@
<directory name="arp">
<xi:include href="arp/arp.xml" />
</directory>
<directory name="finger">
<xi:include href="finger/finger.xml" />
</directory>
<directory name="ftp">
<xi:include href="ftp/ftp.xml" />
</directory>
<directory name="ipconfig">
<xi:include href="ipconfig/ipconfig.xml" />
</directory>
<directory name="netstat">
<xi:include href="netstat/netstat.xml" />
</directory>
<directory name="ping">
<xi:include href="ping/ping.xml" />
</directory>
<directory name="route">
<xi:include href="route/route.xml" />
</directory>
<directory name="telnet">
<xi:include href="telnet/telnet.xml" />
</directory>
<directory name="whois">
<xi:include href="whois/whois.xml" />
</directory>

View file

@ -41,16 +41,6 @@
* Had to remove local handling. Otherwise, same as whois.
*/
#ifndef lint
static char copyright[] =
"@(#) Copyright (c) 1989, 1993\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
static char sccsid[] = "@(#)finger.c 8.5 (Berkeley) 5/4/95";
#endif /* not lint */
/*
* Finger prints out information about users. It is not portable since
* certain fields (e.g. the full user name, office, and phone numbers) are

View file

@ -0,0 +1,11 @@
<module name="finger" type="win32cui" installbase="system32" installname="finger.exe">
<include base="finger">.</include>
<define name="__USE_W32_SOCKETS" />
<library>kernel32</library>
<library>ws2_32</library>
<file>finger.c</file>
<file>err.c</file>
<file>getopt.c</file>
<file>net.c</file>
<file>finger.rc</file>
</module>

View file

@ -1,24 +0,0 @@
PATH_TO_TOP = ../../../..
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = finger
TARGET_SDKLIBS = ws2_32.a
TARGET_INSTALLDIR = system32
TARGET_CFLAGS = -D__USE_W32_SOCKETS
TARGET_OBJECTS = $(TARGET_NAME).o \
err.o \
getopt.o \
net.o
TARGET_GCCLIBS = iberty
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -33,11 +33,6 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#ifndef lint
static char sccsid[] = "@(#)net.c 8.4 (Berkeley) 4/28/95";
#endif /* not lint */
#include <sys/types.h>
#include <winsock2.h>
#include "unistd.h"

View file

@ -0,0 +1,15 @@
<module name="ftp" type="win32cui" installbase="system32" installname="ftp.exe" warnings="true">
<include base="ftp">.</include>
<define name="__USE_W32API" />
<library>kernel32</library>
<library>ws2_32</library>
<library>iphlpapi</library>
<file>cmds.c</file>
<file>cmdtab.c</file>
<file>domacro.c</file>
<file>fake.c</file>
<file>ftp.c</file>
<file>main.c</file>
<file>ruserpass.c</file>
<file>ftp.rc</file>
</module>

View file

@ -1,29 +1,5 @@
PATH_TO_TOP = ../../../..
# This file is automatically generated.
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = ftp
TARGET_INSTALLDIR = system32
TARGET_CFLAGS = -D__USE_W32API
TARGET_SDKLIBS = ws2_32.a iphlpapi.a
# ntdll.a
TARGET_OBJECTS = \
cmds.o \
cmdtab.o \
domacro.o \
fake.o \
ftp.o \
main.o \
ruserpass.o
TARGET_GCCLIBS =
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
TOP = ..\..\..\..
DEFAULT = ftp
include $(TOP)/proxy.mak

View file

@ -0,0 +1,10 @@
<module name="ipconfig" type="win32cui" installbase="system32" installname="ipconfig.exe" warnings="true">
<include base="ipconfig">.</include>
<define name="__USE_W32API" />
<library>kernel32</library>
<library>user32</library>
<library>iphlpapi</library>
<file>ipconfig.c</file>
<file>trace.c</file>
<file>ipconfig.rc</file>
</module>

View file

@ -1,19 +0,0 @@
PATH_TO_TOP = ../../../..
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = ipconfig
TARGET_INSTALLDIR = system32
TARGET_CFLAGS = -D__USE_W32API
TARGET_SDKLIBS = user32.a iphlpapi.a
TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,22 +0,0 @@
PATH_TO_TOP = ../../../..
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = netstat
TARGET_INSTALLDIR = system32
TARGET_CFLAGS = \
-D__USE_W32API \
-D_WIN32_IE=0x600 \
-D_WIN32_WINNT=0x501
TARGET_SDKLIBS = user32.a snmpapi.a iphlpapi.a ws2_32.a
TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -0,0 +1,14 @@
<module name="netstat" type="win32cui" installbase="system32" installname="netstat.exe" warnings="true">
<include base="netstat">.</include>
<define name="__USE_W32API" />
<define name="_WIN32_IE">0x600</define>
<define name="_WIN32_WINNT">0x501</define>
<library>kernel32</library>
<library>user32</library>
<library>ws2_32</library>
<library>snmpapi</library>
<library>iphlpapi</library>
<file>netstat.c</file>
<file>trace.c</file>
<file>netstat.rc</file>
</module>

View file

@ -1,19 +0,0 @@
PATH_TO_TOP = ../../../..
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = ping
TARGET_INSTALLDIR = system32
TARGET_CFLAGS = -D__USE_W32API -D__USE_W32_SOCKETS
TARGET_SDKLIBS = ws2_32.a
TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -113,7 +113,7 @@ VOID DisplayBuffer(
UINT i;
PCHAR p;
printf("Buffer (0x%X) Size (0x%X).\n", Buffer, Size);
printf("Buffer (0x%p) Size (0x%lX).\n", Buffer, Size);
p = (PCHAR)Buffer;
for (i = 0; i < Size; i++) {
@ -386,7 +386,6 @@ VOID QueryTime(PLARGE_INTEGER Time)
VOID TimeToMsString(LPSTR String, LARGE_INTEGER Time)
{
UINT i, Length;
CHAR Convstr[40];
LARGE_INTEGER LargeTime;

View file

@ -0,0 +1,11 @@
<module name="ping" type="win32cui" installbase="system32" installname="ping.exe">
<include base="ping">.</include>
<define name="__USE_W32API" />
<define name="__USE_W32_SOCKETS" />
<define name="_WIN32_IE">0x600</define>
<define name="_WIN32_WINNT">0x501</define>
<library>kernel32</library>
<library>ws2_32</library>
<file>ping.c</file>
<file>ping.rc</file>
</module>

View file

@ -1,19 +0,0 @@
PATH_TO_TOP = ../../../..
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = route
TARGET_INSTALLDIR = system32
TARGET_SDKLIBS = ws2_32.a iphlpapi.a ntdll.a
TARGET_OBJECTS = $(TARGET_NAME).o
TARGET_CFLAGS = -D__USE_W32API
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -35,8 +35,7 @@ int print_routes() {
PMIB_IPFORWARDTABLE IpForwardTable;
DWORD Error;
ULONG Size = 0;
char Destination[IPBUF], Gateway[IPBUF], Netmask[IPBUF],
Index[IPBUF], Metric[IPBUF];
char Destination[IPBUF], Gateway[IPBUF], Netmask[IPBUF];
int i;
if( (Error = GetIpForwardTable( NULL, &Size, TRUE )) ==
@ -63,7 +62,7 @@ int print_routes() {
inet_ntoa( IN_ADDR_OF(IpForwardTable->table[i].
dwForwardNextHop) ) );
printf( "%-16s%-16s%-16s%-10d%-10d\n",
printf( "%-16s%-16s%-16s%-10ld%-10ld\n",
Destination,
Netmask,
Gateway,

View file

@ -0,0 +1,9 @@
<module name="route" type="win32cui" warnings="true">
<include base="route">.</include>
<define name="__USE_W32API" />
<library>kernel32</library>
<library>ws2_32</library>
<library>iphlpapi</library>
<file>route.c</file>
<file>route.rc</file>
</module>

View file

@ -1,41 +0,0 @@
PATH_TO_TOP = ../../../..
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = telnet
TARGET_INSTALLDIR = system32
TARGET_SDKLIBS = ws2_32.a
TARGET_CPPFLAGS = -D__REACTOS__ -D__USE_W32API -Wall
TARGET_GCCLIBS = stdc++
TARGET_OBJECTS = \
src/ansiprsr.o \
src/keytrans.o \
src/tcharmap.o \
src/tconsole.o \
src/tkeydef.o \
src/tkeymap.o \
src/tmapldr.o \
src/tmouse.o \
src/tnclass.o \
src/tnclip.o \
src/tncon.o \
src/tnconfig.o \
src/tnerror.o \
src/tnetwork.o \
src/tnmain.o \
src/tnmisc.o \
src/tscript.o \
src/tscroll.o \
src/ttelhndl.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -0,0 +1,29 @@
<module name="telnet" type="win32cui" installbase="system32" installname="telnet.exe">
<include base="telnet">.</include>
<define name="__USE_W32API" />
<define name="__REACTOS__" />
<library>kernel32</library>
<library>ws2_32</library>
<directory name="src">
<file>ansiprsr.cpp</file>
<file>keytrans.cpp</file>
<file>tcharmap.cpp</file>
<file>tconsole.cpp</file>
<file>tkeydef.cpp</file>
<file>tkeymap.cpp</file>
<file>tmapldr.cpp</file>
<file>tmouse.cpp</file>
<file>tnclass.cpp</file>
<file>tnclip.cpp</file>
<file>tncon.cpp</file>
<file>tnconfig.cpp</file>
<file>tnerror.cpp</file>
<file>tnetwork.cpp</file>
<file>tnmain.cpp</file>
<file>tnmisc.cpp</file>
<file>tscript.cpp</file>
<file>tscroll.cpp</file>
<file>ttelhndl.cpp</file>
</directory>
<file>telnet.rc</file>
</module>

View file

@ -1,19 +0,0 @@
PATH_TO_TOP = ../../../..
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = whois
TARGET_INSTALLDIR = system32
TARGET_SDKLIBS = ws2_32.a
TARGET_OBJECTS = $(TARGET_NAME).o
TARGET_GCCLIBS = iberty
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -36,16 +36,6 @@
* more convenient fdopen()/fprintf() to send()/recv().
*/
#ifndef lint
static char copyright[] =
"@(#) Copyright (c) 1980, 1993\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
static char sccsid[] = "@(#)whois.c 8.1 (Berkeley) 6/6/93";
#endif /* not lint */
#include <sys/types.h>
#include <winsock2.h>
/* #include <sys/socket.h> */
@ -161,6 +151,7 @@ int main(int argc, char **argv)
putchar(ch);
leave(0);
return 0;
}
void usage()

View file

@ -0,0 +1,7 @@
<module name="whois" type="win32cui" installbase="system32" installname="whois.exe">
<include base="whois">.</include>
<library>kernel32</library>
<library>ws2_32</library>
<file>whois.c</file>
<file>whois.rc</file>
</module>

View file

@ -1,97 +0,0 @@
# $Id$
#
# Please try to keep this up2date. Please clean up
# after yourself.
# REACTOS
TARGET_BASE_LIB_DINPUT8 =0x00400000
TARGET_BASE_LIB_DXDIAGN =0x00400000
TARGET_BASE_LIB_NOTIFYHOOK =0x08000000
TARGET_BASE_LIB_SECURE32 =0x10000000
TARGET_BASE_LIB_DEVENUM =0x35680000
TARGET_BASE_LIB_DSOUND =0x50000000
TARGET_BASE_LIB_GLU32 =0x50000000
TARGET_BASE_LIB_OPENGL32 =0x50000000
TARGET_BASE_LIB_EXT_SLAYER =0x5C7E0000
TARGET_BASE_LIB_SERIALUI =0x5CDA0000
TARGET_BASE_LIB_DINPUT =0x5F580000
TARGET_BASE_LIB_CPL_TIMEDATE =0x64DA0000
TARGET_BASE_LIB_CPL_SYSDM =0x64DD0000
TARGET_BASE_LIB_CPL_NCPL =0x64EA0000
TARGET_BASE_LIB_CPL_MAIN =0x64F40000
TARGET_BASE_LIB_CPL_INTL =0x64FB0000
TARGET_BASE_LIB_CPL_DESK =0x65080000
TARGET_BASE_LIB_CPL_APPWIZ =0x65100000
TARGET_BASE_LIB_CPL_ACCESS =0x65180000
TARGET_BASE_LIB_HID =0x688F0000
TARGET_BASE_PSX_LIB_PSXDLL =0x68eb0000
TARGET_BASE_LIB_PSAPI =0x68f70000
TARGET_BASE_LIB_MSIMG32 =0x69cc0000
TARGET_BASE_LIB_NETPLWIZ =0x6a240000
TARGET_BASE_LIB_UNICODE =0x6b200000
TARGET_BASE_VGA_DISPLAY =0x70000000
TARGET_BASE_LIB_CARDS =0x701a0000
TARGET_BASE_LIB_WININET =0x70200000
TARGET_BASE_LIB_ACLUI =0x71550000
TARGET_BASE_LIB_SHDOCVW =0x71700000
TARGET_BASE_LIB_MSWSOCK =0x71a30000
TARGET_BASE_LIB_WSOCK32 =0x71ab0000
TARGET_BASE_LIB_ACLEDIT =0x71b70000
TARGET_BASE_LIB_NETAPI32 =0x71c00000
TARGET_BASE_LIB_WINFAX =0x722C0000
TARGET_BASE_LIB_DEVMGR =0x72a90000
TARGET_BASE_LIB_WINSCARD =0x723D0000
TARGET_BASE_LIB_COREDLL =0x73d80000
TARGET_BASE_LIB_LZEXPAND =0x73d80000
TARGET_BASE_LIB_USERENV =0x74850000
TARGET_BASE_LIB_SYSSETUP =0x74a30000
TARGET_BASE_LIB_OLEDLG =0x74d00000
TARGET_BASE_LIB_SAMLIB =0x750C0000
TARGET_BASE_LIB_CABINET =0x75120000
TARGET_BASE_LIB_MSGINA =0x75970000
TARGET_BASE_LIB_COMMCTRL =0x75e60000
TARGET_BASE_LIB_IMM32 =0x75e60000
TARGET_BASE_LIB_RPCRT4 =0x76000000
TARGET_BASE_LIB_MIDIMAP =0x76600000
TARGET_BASE_LIB_SHLWAPI =0x76120000
TARGET_BASE_LIB_COMCTL32 =0x76160000
TARGET_BASE_LIB_COMDLG32 =0x76200000
TARGET_BASE_LIB_OLEAUT32 =0x76260000
TARGET_BASE_LIB_D3D8THK =0x76340000
TARGET_BASE_LIB_RICHEDIT =0x76340000
TARGET_BASE_LIB_TWAIN_32 =0x76380000
TARGET_BASE_LIB_LSASRV =0x76540000
TARGET_BASE_LIB_MPR =0x76620000
TARGET_BASE_LIB_ODBC32 =0x76660000
TARGET_BASE_LIB_SETUPAPI =0x76660000
TARGET_BASE_LIB_GDIPLUS =0x76a00000
TARGET_BASE_LIB_IMAGEHLP =0x76c90000
TARGET_BASE_LIB_FMIFS =0x76df0000
TARGET_BASE_LIB_SHELL32 =0x77200000
TARGET_BASE_LIB_IPHLPAPI =0x77380000
TARGET_BASE_LIB_MSACM =0x77400000
TARGET_BASE_LIB_MMDRV =0x77500000
TARGET_BASE_LIB_CRTDLL =0x77630000
TARGET_BASE_LIB_PACKET =0x77780000
TARGET_BASE_LIB_W2_32 =0x77780000
TARGET_BASE_LIB_MSAFD =0x777a0000
TARGET_BASE_LIB_IPRTPRIO =0x777c0000
TARGET_BASE_LIB_SNMPAPI =0x777c0000
TARGET_BASE_LIB_WINMM =0x777c0000
TARGET_BASE_LIB_WS2HELP =0x777c0000
TARGET_BASE_LIB_WSHIRDA =0x777c0000
TARGET_BASE_NET_WSHTCPIP =0x777c0000
TARGET_BASE_LIB_WINSPOOL =0x77800000
TARGET_BASE_LIB_OLE32 =0x77a50000
TARGET_BASE_LIB_OLEPRO32 =0x77a50000
TARGET_BASE_LIB_VERSION =0x77a90000
TARGET_BASE_LIB_ADVAPI32 =0x77dc0000
TARGET_BASE_LIB_USER32 =0x77e50000
TARGET_BASE_LIB_GDI32 =0x77ee0000
TARGET_BASE_LIB_DNSAPI =0x77f00000
TARGET_BASE_LIB_MSVCRT =0x78000000
TARGET_BASE_LIB_MSVCRT20 =0x78500000
TARGET_BASE_LIB_EXPAT =0x79000000
TARGET_BASE_LIB_KERNEL32 =0x7C800000
TARGET_BASE_LIB_NTDLL =0x7C900000

103
reactos/baseaddress.xml Normal file
View file

@ -0,0 +1,103 @@
<property name="BASEADDRESS_REGTESTS" value="0x07000000" />
<property name="BASEADDRESS_NOTIFYHOOK" value="0x08000000" />
<property name="BASEADDRESS_DEVENUM" value="0x35680000" />
<property name="BASEADDRESS_DINPUT" value="0x5F580000" />
<property name="BASEADDRESS_TIMEDATE" value="0x64DA0000" />
<property name="BASEADDRESS_SYSDM" value="0x64DD0000" />
<property name="BASEADDRESS_MAIN" value="0x64F40000" />
<property name="BASEADDRESS_INTL" value="0x64FB0000" />
<property name="BASEADDRESS_DESK" value="0x65080000" />
<property name="BASEADDRESS_APPWIZ" value="0x65100000" />
<property name="BASEADDRESS_ACCESS" value="0x65180000" />
<property name="BASEADDRESS_PSAPI" value="0x68f70000" />
<property name="BASEADDRESS_MSIMG32" value="0x69cc0000" />
<property name="BASEADDRESS_UNICODE" value="0x6b200000" />
<property name="BASEADDRESS_ADVPACK" value="0x6b300000" />
<property name="BASEADDRESS_CONTROL" value="0x6b310000" />
<property name="BASEADDRESS_NCPA" value="0x6b320000" />
<property name="BASEADDRESS_DBGHELP" value="0x6b330000" />
<property name="BASEADDRESS_DINPUT8" value="0x6b340000" />
<property name="BASEADDRESS_DXDIAGN" value="0x6b350000" />
<property name="BASEADDRESS_DSOUND" value="0x6b360000" />
<property name="BASEADDRESS_GLU32" value="0x6b370000" />
<property name="BASEADDRESS_MESA32" value="0x6b380000" />
<property name="BASEADDRESS_OPENGL32" value="0x6b390000" />
<property name="BASEADDRESS_SECUR32" value="0x6b3A0000" />
<property name="BASEADDRESS_SMDLL" value="0x6b3B0000" />
<property name="BASEADDRESS_URLMON" value="0x6b3C0000" />
<property name="BASEADDRESS_SERIALUI" value="0x6b3D0000" />
<property name="BASEADDRESS_CARDS" value="0x701a0000" />
<property name="BASEADDRESS_WININET" value="0x70200000" />
<property name="BASEADDRESS_ACLUI" value="0x71550000" />
<property name="BASEADDRESS_SHDOCVW" value="0x71700000" />
<property name="BASEADDRESS_WSOCK32" value="0x71ab0000" />
<property name="BASEADDRESS_ACLEDIT" value="0x71b70000" />
<property name="BASEADDRESS_NETAPI32" value="0x71c00000" />
<property name="BASEADDRESS_LZ32" value="0x73d80000" />
<property name="BASEADDRESS_USERENV" value="0x74850000" />
<property name="BASEADDRESS_SYSSETUP" value="0x74a30000" />
<property name="BASEADDRESS_SAMLIB" value="0x750C0000" />
<property name="BASEADDRESS_CABINET" value="0x75120000" />
<property name="BASEADDRESS_MSGINA" value="0x75970000" />
<property name="BASEADDRESS_IMM32" value="0x75e60000" />
<property name="BASEADDRESS_RPCRT4" value="0x76000000" />
<property name="BASEADDRESS_SHLWAPI" value="0x76120000" />
<property name="BASEADDRESS_COMCTL32" value="0x76160000" />
<property name="BASEADDRESS_COMDLG32" value="0x76200000" />
<property name="BASEADDRESS_OLEAUT32" value="0x76260000" />
<property name="BASEADDRESS_RICHED32" value="0x76340000" />
<property name="BASEADDRESS_RICHED20" value="0x76360000" />
<property name="BASEADDRESS_TWAIN_32" value="0x76380000" />
<property name="BASEADDRESS_MIDIMAP" value="0x76600000" />
<property name="BASEADDRESS_MPR" value="0x76620000" />
<property name="BASEADDRESS_SETUPAPI" value="0x76660000" />
<property name="BASEADDRESS_GDIPLUS" value="0x76a00000" />
<property name="BASEADDRESS_IMAGEHLP" value="0x76c90000" />
<property name="BASEADDRESS_FMIFS" value="0x76df0000" />
<property name="BASEADDRESS_SHELL32" value="0x77260000" />
<property name="BASEADDRESS_IPHLPAPI" value="0x77300000" />
<property name="BASEADDRESS_MMDRV" value="0x77500000" />
<property name="BASEADDRESS_CRTDLL" value="0x77630000" />
<property name="BASEADDRESS_MSAFD" value="0x777a0000" />
<property name="BASEADDRESS_MSI" value="0x777b0000" />
<property name="BASEADDRESS_SNMPAPI" value="0x777c0000" />
<property name="BASEADDRESS_WINMM" value="0x777d0000" />
<property name="BASEADDRESS_WS2HELP" value="0x777e0000" />
<property name="BASEADDRESS_WSHIRDA" value="0x777f0000" />
<property name="BASEADDRESS_WINSPOOL" value="0x77800000" />
<property name="BASEADDRESS_VERSION" value="0x77a90000" />
<property name="BASEADDRESS_WS2_32" value="0x77aa0000" />
<property name="BASEADDRESS_OLE32" value="0x77a50000" />
<property name="BASEADDRESS_OLEPRO32" value="0x77aa0000" />
<property name="BASEADDRESS_ADVAPI32" value="0x77dc0000" />
<property name="BASEADDRESS_USER32" value="0x77e50000" />
<property name="BASEADDRESS_GDI32" value="0x77ee0000" />
<property name="BASEADDRESS_DNSAPI" value="0x77f00000" />
<property name="BASEADDRESS_KERNEL32" value="0x77800000" />
<property name="BASEADDRESS_MSVCRT" value="0x78000000" />
<property name="BASEADDRESS_MSVCRT20" value="0x78500000" />
<property name="BASEADDRESS_NTDLL" value="0x7C900000" />
<property name="BASEADDRESS_FREETYPE" value="0x7F000000" />
<property name="BASEADDRESS_SLAYER" value="0x5C7E0000" />
<property name="BASEADDRESS_NCPL" value="0x64EA0000" />
<property name="BASEADDRESS_HID" value="0x688F0000" />
<property name="BASEADDRESS_PSXDLL" value="0x68eb0000" />
<property name="BASEADDRESS_NETPLWIZ" value="0x6a240000" />
<property name="BASEADDRESS_DISPLAY" value="DISPLAY" />
<property name="BASEADDRESS_ACLUI" value="0x71550000" />
<property name="BASEADDRESS_MSWSOCK" value="0x71a30000" />
<property name="BASEADDRESS_WINFAX" value="0x722C0000" />
<property name="BASEADDRESS_DEVMGR" value="0x72a90000" />
<property name="BASEADDRESS_WINSCARD" value="0x723D0000" />
<property name="BASEADDRESS_COREDLL" value="0x73d80000" />
<property name="BASEADDRESS_OLEDLG" value="0x74d00000" />
<property name="BASEADDRESS_COMMCTRL" value="0x75e60000" />
<property name="BASEADDRESS_D3D8THK" value="0x76340000" />
<property name="BASEADDRESS_LSASRV" value="0x76540000" />
<property name="BASEADDRESS_ODBC32" value="0x76660000" />
<property name="BASEADDRESS_MSACM32" value="0x77400000" />
<property name="BASEADDRESS_PACKET" value="0x77780000" />
<property name="BASEADDRESS_W2_32" value="0x77780000" />
<property name="BASEADDRESS_IPRTPRIO" value="0x777c0000" />
<property name="BASEADDRESS_WSHTCPIP" value="0x777c0000" />

3
reactos/boot/boot.xml Normal file
View file

@ -0,0 +1,3 @@
<directory name="freeldr">
<xi:include href="freeldr/freeldr.xml" />
</directory>

View file

@ -1,32 +0,0 @@
#
# FreeLoader
# Copyright (C) 1999, 2000, 2001 Brian Palmer <brianp@sginet.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
PATH_TO_TOP = ../../..
include ../rules.mak
BOOTCD_DIR = $(PATH_TO_TOP)/../bootcd
.PHONY : clean bootcd
ifeq ($(ARCH),powerpc)
include Makefile.powerpc
else
include Makefile.i386
endif

View file

@ -0,0 +1,20 @@
<module name="dosmbr" type="bootsector" >
<bootstrap base="loader" nameoncd="dosmbr.bin" />
<file>dosmbr.asm</file>
</module>
<module name="ext2" type="bootsector">
<bootstrap base="loader" nameoncd="ext2.bin" />
<file>ext2.asm</file>
</module>
<module name="fat32" type="bootsector">
<bootstrap base="loader" nameoncd="fat32.bin" />
<file>fat32.asm</file>
</module>
<module name="fat" type="bootsector">
<bootstrap base="loader" nameoncd="fat.bin" />
<file>fat.asm</file>
</module>
<module name="isoboot" type="bootsector">
<bootstrap base="loader" nameoncd="isoboot.bin" />
<file>isoboot.asm</file>
</module>

View file

@ -0,0 +1,12 @@
<directory name="bootsect">
<xi:include href="bootsect/bootsect.xml" />
</directory>
<directory name="freeldr">
<xi:include href="freeldr/freeldr_startup.xml" />
<xi:include href="freeldr/freeldr_base64k.xml" />
<xi:include href="freeldr/freeldr_base.xml" />
<xi:include href="freeldr/freeldr_main.xml" />
<xi:include href="freeldr/setupldr_main.xml" />
<xi:include href="freeldr/freeldr.xml" />
<xi:include href="freeldr/setupldr.xml" />
</directory>

View file

@ -1,299 +0,0 @@
#
# FreeLoader
# Copyright (C) 1998-2002 Brian Palmer <brianp@sginet.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
PATH_TO_TOP = ../../..
include ../rules.mak
TARGET = i386
ifeq ($(DEBUG),)
# Debugging information on (bigger binary)
#DEBUG = yes
# Debugging information off (smaller binary)
DEBUG = no
endif
SRCDIR = .
BOOTCD_DIR = $(PATH_TO_TOP)/bootcd
TOOLSDIR = $(SRCDIR)/../tools
DEPTOOL = $(subst /,$(SEP),$(FREELDR_TOOLS_PATH))$(SEP)deptool
TOOLS = $(DEPTOOL)
preall : all
.PHONY: BUILD_TOOLS
BUILD_TOOLS:
@$(MAKE) --no-print-directory -C $(FREELDR_TOOLS_PATH)
#############################################
.PHONY : clean
clean:
@-$(RM) $(ALL_OBJS)
@-$(RM) $(ALL_OBJS:.o=.d)
@-$(RM) freeldr.exe
@-$(RM) freeldr.sys
@-$(RM) freeldr.map
@-$(RM) setupldr.exe
@-$(RM) setupldr.sys
@-$(RM) setupldr.map
@$(MAKE) --no-print-directory -C $(FREELDR_TOOLS_PATH)
@echo freeldr: Clean ALL done.
#############################################
.PHONY : bootcd
bootcd : bootcd_dirs setup_loader boot_loader
.PHONY : bootcd_dirs
bootcd_dirs:
$(MKDIR) $(BOOTCD_DIR)
$(MKDIR) $(BOOTCD_DIR)/disk
$(MKDIR) $(BOOTCD_DIR)/disk/reactos
$(MKDIR) $(BOOTCD_DIR)/disk/install
$(MKDIR) $(BOOTCD_DIR)/disk/bootdisk
$(MKDIR) $(BOOTCD_DIR)/disk/loader
.PHONY : boot_loader
boot_loader : freeldr.sys
$(CP) freeldr.sys $(BOOTCD_DIR)/disk/loader/freeldr.sys
$(CP) ../freeldr.ini $(BOOTCD_DIR)/disk/loader/freeldr.ini
.PHONY : setup_loader
setup_loader : setupldr.sys
$(CP) setupldr.sys $(BOOTCD_DIR)/disk/loader/setupldr.sys
COMPILER_OPTIONS = -Wall -Werror -nostdlib -ffreestanding -fno-builtin -fno-inline \
-fno-zero-initialized-in-bss -O1 -MD
# FreeLoader does not use any of the standard libraries, includes, or built-in functions
ifeq ($(DEBUG),yes)
COMPILER_DEBUG_DEFINES = -DDEBUG
else
COMPILER_DEBUG_DEFINES =
endif
COMPILER_DEFINES = -D__$(TARGET)__ $(COMPILER_DEBUG_DEFINES)
COMPILER_INCLUDES = -I$(SRCDIR)/include -I$(PATH_TO_TOP)/w32api/include -I$(PATH_TO_TOP)/include -I$(PATH_TO_TOP)/ntoskrnl/include
CFLAGS = $(COMPILER_OPTIONS) \
$(COMPILER_DEFINES) \
$(COMPILER_INCLUDES)
LINKER_OPTIONS = -N -Ttext=0x8000
LFLAGS = $(LINKER_OPTIONS)
ifeq ($(HOST),mingw32-linux)
NASMFLAGS = -f win32
else
NASMFLAGS = -f elf
endif
# fathelp.o must come first in the link line because it contains bootsector helper code
# arch.o must come second in the link line because it contains the startup code
ARCH_I386_OBJS = fathelp.o \
arch.o \
i386idt.o \
i386trap.o \
i386cpu.o \
i386pnp.o \
boot.o \
linux.o \
mb.o \
i386rtl.o \
i386vid.o \
drvmap.o \
int386.o \
i386disk.o \
portio.o \
hardware.o \
hwacpi.o \
hwapm.o \
hwcpu.o \
hwpci.o \
archmach.o \
machpc.o \
machxbox.o \
pccons.o \
pcdisk.o \
pcmem.o \
pcrtc.o \
pcvideo.o \
xboxcons.o \
xboxdisk.o \
xboxfont.o \
xboxhw.o \
xboxmem.o \
xboxrtc.o \
xboxvideo.o \
_alloca.o # For Mingw32 builds
ARCH_OBJS = $(addprefix i386/,$(ARCH_I386_OBJS))
RTL_OBJS = print.o \
stdlib.o \
string.o \
list.o \
memcmp.o \
memcpy.o \
memmove.o \
memset.o
FS_OBJS = fs.o \
fat.o \
iso.o \
ext2.o \
ntfs.o \
fsrec.o
UI_OBJS = tui.o \
tuimenu.o \
ui.o \
gui.o
REACTOS_OBJS = arcname.o \
binhive.o \
registry.o
COMM_OBJS = rs232.o
DISK_OBJS = disk.o \
partition.o
MM_OBJS = mm.o \
meminit.o
CACHE_OBJS = cache.o \
blocklist.o
INIFILE_OBJS = inifile.o \
ini_init.o \
parse.o
INFFILE_OBJS = inffile.o
VIDEO_OBJS = video.o \
fade.o \
palette.o \
pixel.o \
bank.o
# libgcc2.o contains code (__udivdi3, __umoddi3) necessary to do
# 64-bit division on the i386 (and other 32-bit) architectures
# This code was taken from the GCC v3.1 source
MATH_OBJS = libgcc2.o
BASE_OBJS = freeldr.o \
debug.o \
multiboot.o \
version.o \
cmdline.o \
machine.o
FREELDR_OBJS = bootmgr.o \
drivemap.o \
miscboot.o \
options.o \
linuxboot.o \
oslist.o \
custom.o
ROSLDR_OBJS = reactos.o
SETUPLDR_OBJS = setupldr.o
COMMON_OBJS = $(addprefix arch/,$(ARCH_OBJS)) \
$(addprefix rtl/,$(RTL_OBJS)) \
$(addprefix fs/,$(FS_OBJS)) \
$(addprefix ui/,$(UI_OBJS)) \
$(addprefix reactos/,$(REACTOS_OBJS)) \
$(addprefix comm/,$(COMM_OBJS)) \
$(addprefix disk/,$(DISK_OBJS)) \
$(addprefix mm/,$(MM_OBJS)) \
$(addprefix cache/,$(CACHE_OBJS)) \
$(addprefix video/,$(VIDEO_OBJS)) \
$(addprefix math/,$(MATH_OBJS)) \
$(BASE_OBJS)
SPECIAL_OBJS = $(addprefix inifile/,$(INIFILE_OBJS)) \
$(addprefix inffile/,$(INFFILE_OBJS)) \
$(FREELDR_OBJS) \
$(addprefix reactos/,$(ROSLDR_OBJS)) \
$(addprefix reactos/,$(SETUPLDR_OBJS))
F_OBJS = $(COMMON_OBJS) \
$(addprefix inifile/,$(INIFILE_OBJS)) \
$(addprefix reactos/,$(ROSLDR_OBJS)) \
$(FREELDR_OBJS)
S_OBJS = $(COMMON_OBJS) \
$(addprefix inifile/,$(INIFILE_OBJS)) \
$(addprefix inffile/,$(INFFILE_OBJS)) \
$(addprefix reactos/,$(SETUPLDR_OBJS))
ALL_OBJS = $(COMMON_OBJS) \
$(SPECIAL_OBJS)
all : freeldr.sys setupldr.sys
@echo freeldr: Make ALL done.
freeldr.sys : $(ALL_OBJS) $(PATH_TO_TOP)/dk/w32/lib/librossym.a
@echo freeldr: LINKING $@
@$(LD) $(LFLAGS) -o freeldr.exe $(F_OBJS) $(PATH_TO_TOP)/dk/w32/lib/librossym.a
ifeq ($(FULL_MAP),yes)
@$(OBJDUMP) -d -S freeldr.exe > freeldr.map
else
@$(NM) --numeric-sort freeldr.exe > freeldr.map
endif
@$(OBJCOPY) -O binary freeldr.exe freeldr.sys
setupldr.sys : $(ALL_OBJS)
@echo freeldr: LINKING $@
@$(LD) $(LFLAGS) -Map setupldr.map -o setupldr.exe $(S_OBJS)
ifeq ($(FULL_MAP),yes)
@$(OBJDUMP) -d -S setupldr.exe > setupldr.map
else
@$(NM) --numeric-sort setupldr.exe > setupldr.map
endif
@$(OBJCOPY) -O binary setupldr.exe setupldr.sys
%.o :: %.c
@echo freeldr: Compiling $*
@$(CC) $(CFLAGS) -o $@ -c $<
@$(DEPTOOL) $*.d
%.o :: %.S
@echo freeldr: Assembling $*
@$(CC) $(CFLAGS) -o $@ -c $<
@$(DEPTOOL) $*.d
%.o :: %.asm
@echo freeldr: Assembling $*
@$(NASM_CMD) $(NASMFLAGS) -o $@ $<

View file

@ -0,0 +1,8 @@
<module name="freeldr" type="bootloader">
<bootstrap base="loader" />
<library>freeldr_startup</library>
<library>freeldr_base64k</library>
<library>freeldr_base</library>
<library>freeldr_main</library>
<library>rossym</library>
</module>

View file

@ -0,0 +1,109 @@
<module name="freeldr_base" type="objectlibrary" warnings="true">
<include base="freeldr_base">include</include>
<include base="freeldr_base">cache</include>
<include base="ntoskrnl">include</include>
<define name="__USE_W32API" />
<compilerflag>-nostdlib</compilerflag>
<compilerflag>-ffreestanding</compilerflag>
<compilerflag>-fno-builtin</compilerflag>
<compilerflag>-fno-inline</compilerflag>
<compilerflag>-fno-zero-initialized-in-bss</compilerflag>
<compilerflag>-Os</compilerflag>
<directory name="arch">
<if property="ARCH" value="i386">
<directory name="i386">
<file>_alloca.S</file>
<file>archmach.c</file>
<file>hardware.c</file>
<file>hwacpi.c</file>
<file>hwapm.c</file>
<file>hwcpu.c</file>
<file>hwpci.c</file>
<file>i386disk.c</file>
<file>i386rtl.c</file>
<file>i386vid.c</file>
<file>machpc.c</file>
<file>machxbox.c</file>
<file>pccons.c</file>
<file>pcdisk.c</file>
<file>pcmem.c</file>
<file>pcrtc.c</file>
<file>pcvideo.c</file>
<file>portio.c</file>
<file>xboxcons.c</file>
<file>xboxdisk.c</file>
<file>xboxfont.c</file>
<file>xboxhw.c</file>
<file>xboxmem.c</file>
<file>xboxrtc.c</file>
<file>xboxvideo.c</file>
</directory>
</if>
</directory>
<directory name="cache">
<file>blocklist.c</file>
<file>cache.c</file>
</directory>
<directory name="comm">
<file>rs232.c</file>
</directory>
<directory name="disk">
<file>disk.c</file>
<file>partition.c</file>
</directory>
<directory name="fs">
<file>ext2.c</file>
<file>fat.c</file>
<file>fs.c</file>
<file>fsrec.c</file>
<file>iso.c</file>
<file>ntfs.c</file>
</directory>
<directory name="inifile">
<file>ini_init.c</file>
<file>inifile.c</file>
<file>parse.c</file>
</directory>
<directory name="math">
<file>libgcc2.c</file>
</directory>
<directory name="mm">
<file>meminit.c</file>
<file>mm.c</file>
</directory>
<directory name="reactos">
<file>arcname.c</file>
<file>binhive.c</file>
<file>reactos.c</file>
<file>registry.c</file>
</directory>
<directory name="rtl">
<file>list.c</file>
<file>memcmp.c</file>
<file>memcpy.c</file>
<file>memmove.c</file>
<file>memset.c</file>
<file>print.c</file>
<file>stdlib.c</file>
<file>string.c</file>
</directory>
<directory name="ui">
<file>gui.c</file>
<file>tui.c</file>
<file>tuimenu.c</file>
<file>ui.c</file>
</directory>
<directory name="video">
<file>bank.c</file>
<file>fade.c</file>
<file>palette.c</file>
<file>pixel.c</file>
<file>video.c</file>
</directory>
<file>freeldr.c</file>
<file>debug.c</file>
<file>multiboot.c</file>
<file>version.c</file>
<file>cmdline.c</file>
<file>machine.c</file>
</module>

View file

@ -0,0 +1,26 @@
<module name="freeldr_base64k" type="objectlibrary">
<include base="freeldr_base64k">include</include>
<include base="ntoskrnl">include</include>
<define name="__USE_W32API" />
<compilerflag>-nostdlib</compilerflag>
<compilerflag>-ffreestanding</compilerflag>
<compilerflag>-fno-builtin</compilerflag>
<compilerflag>-fno-inline</compilerflag>
<compilerflag>-fno-zero-initialized-in-bss</compilerflag>
<compilerflag>-Os</compilerflag>
<directory name="arch">
<if property="ARCH" value="i386">
<directory name="i386">
<file>boot.S</file>
<file>drvmap.S</file>
<file>i386cpu.S</file>
<file>i386idt.S</file>
<file>i386pnp.S</file>
<file>i386trap.S</file>
<file>int386.S</file>
<file>linux.S</file>
<file>mb.S</file>
</directory>
</if>
</directory>
</module>

View file

@ -0,0 +1,18 @@
<module name="freeldr_main" type="objectlibrary">
<include base="freeldr_main">include</include>
<include base="ntoskrnl">include</include>
<define name="__USE_W32API" />
<compilerflag>-nostdlib</compilerflag>
<compilerflag>-ffreestanding</compilerflag>
<compilerflag>-fno-builtin</compilerflag>
<compilerflag>-fno-inline</compilerflag>
<compilerflag>-fno-zero-initialized-in-bss</compilerflag>
<compilerflag>-Os</compilerflag>
<file>bootmgr.c</file>
<file>drivemap.c</file>
<file>miscboot.c</file>
<file>options.c</file>
<file>linuxboot.c</file>
<file>oslist.c</file>
<file>custom.c</file>
</module>

View file

@ -0,0 +1,18 @@
<module name="freeldr_startup" type="objectlibrary">
<include base="freeldr_startup">include</include>
<include base="ntoskrnl">include</include>
<define name="__USE_W32API" />
<compilerflag>-nostdlib</compilerflag>
<compilerflag>-ffreestanding</compilerflag>
<compilerflag>-fno-builtin</compilerflag>
<compilerflag>-fno-inline</compilerflag>
<compilerflag>-fno-zero-initialized-in-bss</compilerflag>
<directory name="arch">
<if property="ARCH" value="i386">
<directory name="i386">
<file first="true">fathelp.asm</file>
<file>arch.S</file>
</directory>
</if>
</directory>
</module>

View file

@ -0,0 +1,8 @@
<module name="setupldr" type="bootloader">
<bootstrap base="loader" />
<library>freeldr_startup</library>
<library>freeldr_base64k</library>
<library>freeldr_base</library>
<library>setupldr_main</library>
<library>rossym</library>
</module>

View file

@ -0,0 +1,17 @@
<module name="setupldr_main" type="objectlibrary">
<include base="setupldr_main">include</include>
<include base="ntoskrnl">include</include>
<define name="__USE_W32API" />
<compilerflag>-nostdlib</compilerflag>
<compilerflag>-ffreestanding</compilerflag>
<compilerflag>-fno-builtin</compilerflag>
<compilerflag>-fno-inline</compilerflag>
<compilerflag>-fno-zero-initialized-in-bss</compilerflag>
<compilerflag>-Os</compilerflag>
<directory name="inffile">
<file>inffile.c</file>
</directory>
<directory name="reactos">
<file>setupldr.c</file>
</directory>
</module>

View file

@ -0,0 +1,2 @@
<module name="bootcd" type="iso">
</module>

View file

@ -0,0 +1,14 @@
<cdfile>autorun.inf</cdfile>
<cdfile>icon.ico</cdfile>
<cdfile>readme.txt</cdfile>
<cdfile base="reactos">hivecls.inf</cdfile>
<cdfile base="reactos">hivedef.inf</cdfile>
<cdfile base="reactos">hivesft.inf</cdfile>
<cdfile base="reactos">hivesys.inf</cdfile>
<cdfile base="reactos">txtsetup.sif</cdfile>
<directory name="bootcd">
<xi:include href="bootcd/bootcd.xml" />
</directory>
<directory name="livecd">
<xi:include href="livecd/livecd.xml" />
</directory>

View file

@ -0,0 +1,2 @@
<module name="livecd" type="liveiso">
</module>

View file

@ -1,39 +0,0 @@
#
# Architecture to build for
#
# Specify one of: i386
# Possible values in the future: alpha,i386,m68k,mips,powerpc
ARCH := i386
#
# Which cpu should reactos optimize for
# example : i486, i586, pentium, pentium2, pentium3, pentium4
# athlon-xp, athlon-mp, k6-2,
#
# see gcc manual for more cpu names and which cpus it can
# be optimized for.
#
OARCH := i486
#
# Whether to compile in the kernel debugger
#
KDBG := 0
#
# Whether to compile for debugging
# Enabling this enables ASSERTS, GDB and Special Debug Routines
#
DBG := 1
#
# Whether to compile a multiprocessor or single processor version
#
CONFIG_SMP := 0
#
# Which version of NDIS do we support up to?
#
#NDISVERSION=NDIS50

View file

@ -0,0 +1,39 @@
<!--
This file is a template used as a starting point for compile-time
configuration of ReactOS. Make a copy of this file and name it config.xml.
Then change the options in config.xml. If you don't have a config.xml file,
then the defaults in this file, config.template.xml, will be used instead.
Boolean options can obtain the values 0 (disabled) or 1 (enabled). String
options can obtain any value specified in the comment before it.
-->
<!--
Architecture to build for. Specify one of:
i386
-->
<property name="ARCH" value="i386" />
<!--
Which CPU ReactOS should be optimized for. Specify one of:
i486, i586, pentium, pentium2, pentum3, pentium4, athlon-xp, athlon-mp,
k6-2
See GCC manual for more CPU names and which CPUs GCC can optimize for.
-->
<property name="OARCH" value="i486" />
<!--
Whether to compile in the integrated kernel debugger.
-->
<property name="KDBG" value="0" />
<!--
Whether to compile for debugging. No compiler optimizations will be
performed.
-->
<property name="DBG" value="0" />

View file

@ -0,0 +1,136 @@
<module name="acpi" type="kernelmodedriver" installbase="system32/drivers" installname="acpi.sys" warnings="true">
<include base="acpi">include</include>
<include base="acpi">ospm/include</include>
<library>ntoskrnl</library>
<library>hal</library>
<directory name="dispatcher">
<file>dsfield.c</file>
<file>dsmethod.c</file>
<file>dsmthdat.c</file>
<file>dsobject.c</file>
<file>dsopcode.c</file>
<file>dsutils.c</file>
<file>dswexec.c</file>
<file>dswload.c</file>
<file>dswscope.c</file>
<file>dswstate.c</file>
</directory>
<directory name="events">
<file>evevent.c</file>
<file>evmisc.c</file>
<file>evregion.c</file>
<file>evrgnini.c</file>
<file>evsci.c</file>
<file>evxface.c</file>
<file>evxfevnt.c</file>
<file>evxfregn.c</file>
</directory>
<directory name="executer">
<file>amconfig.c</file>
<file>amconvrt.c</file>
<file>amcreate.c</file>
<file>amdump.c</file>
<file>amdyadic.c</file>
<file>amfield.c</file>
<file>amfldio.c</file>
<file>ammisc.c</file>
<file>ammonad.c</file>
<file>ammutex.c</file>
<file>amnames.c</file>
<file>amprep.c</file>
<file>amregion.c</file>
<file>amresnte.c</file>
<file>amresolv.c</file>
<file>amresop.c</file>
<file>amstore.c</file>
<file>amstoren.c</file>
<file>amstorob.c</file>
<file>amsystem.c</file>
<file>amutils.c</file>
<file>amxface.c</file>
</directory>
<directory name="hardware">
<file>hwacpi.c</file>
<file>hwgpe.c</file>
<file>hwregs.c</file>
<file>hwsleep.c</file>
<file>hwtimer.c</file>
</directory>
<directory name="namespace">
<file>nsaccess.c</file>
<file>nsalloc.c</file>
<file>nseval.c</file>
<file>nsinit.c</file>
<file>nsload.c</file>
<file>nsnames.c</file>
<file>nsobject.c</file>
<file>nssearch.c</file>
<file>nsutils.c</file>
<file>nswalk.c</file>
<file>nsxfname.c</file>
<file>nsxfobj.c</file>
</directory>
<directory name="ospm">
<directory name="busmgr">
<file>bm.c</file>
<file>bmnotify.c</file>
<file>bmpm.c</file>
<file>bmpower.c</file>
<file>bmrequest.c</file>
<file>bmsearch.c</file>
<file>bmutils.c</file>
<file>bmxface.c</file>
</directory>
<file>acpienum.c</file>
<file>acpisys.c</file>
<file>bn.c</file>
<file>fdo.c</file>
<file>osl.c</file>
<file>pdo.c</file>
</directory>
<directory name="parser">
<file>psargs.c</file>
<file>psopcode.c</file>
<file>psparse.c</file>
<file>psscope.c</file>
<file>pstree.c</file>
<file>psutils.c</file>
<file>pswalk.c</file>
<file>psxface.c</file>
</directory>
<directory name="resource">
<file>rsaddr.c</file>
<file>rscalc.c</file>
<file>rscreate.c</file>
<file>rsdump.c</file>
<file>rsio.c</file>
<file>rsirq.c</file>
<file>rslist.c</file>
<file>rsmemory.c</file>
<file>rsmisc.c</file>
<file>rsutils.c</file>
<file>rsxface.c</file>
</directory>
<directory name="tables">
<file>tbconvrt.c</file>
<file>tbget.c</file>
<file>tbinstal.c</file>
<file>tbutils.c</file>
<file>tbxface.c</file>
<file>tbxfroot.c</file>
</directory>
<directory name="utils">
<file>cmalloc.c</file>
<file>cmclib.c</file>
<file>cmcopy.c</file>
<file>cmdebug.c</file>
<file>cmdelete.c</file>
<file>cmeval.c</file>
<file>cmglobal.c</file>
<file>cminit.c</file>
<file>cmobject.c</file>
<file>cmutils.c</file>
<file>cmxface.c</file>
</directory>
<file>acpi.rc</file>
</module>

View file

@ -1,151 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
TARGET_TYPE = driver
TARGET_NAME = acpi
TARGET_CFLAGS = -I./include -I./ospm/include
TARGET_DDKLIBS = ntoskrnl.a
OBJECTS_OSPM_BUSMGR = \
ospm/busmgr/bm.o \
ospm/busmgr/bmnotify.o \
ospm/busmgr/bmpm.o \
ospm/busmgr/bmpower.o \
ospm/busmgr/bmrequest.o \
ospm/busmgr/bmsearch.o \
ospm/busmgr/bmutils.o \
ospm/busmgr/bmxface.o
OBJECTS_OSPM = \
$(OBJECTS_OSPM_BUSMGR) \
ospm/acpienum.o \
ospm/acpisys.o \
ospm/bn.o \
ospm/fdo.o \
ospm/osl.o \
ospm/pdo.o
OBJECTS_DISPATCHER = \
dispatcher/dsfield.o \
dispatcher/dsmethod.o \
dispatcher/dsmthdat.o \
dispatcher/dsobject.o \
dispatcher/dsopcode.o \
dispatcher/dsutils.o \
dispatcher/dswexec.o \
dispatcher/dswload.o \
dispatcher/dswscope.o \
dispatcher/dswstate.o
OBJECTS_EVENTS = \
events/evevent.o \
events/evmisc.o \
events/evregion.o \
events/evrgnini.o \
events/evsci.o \
events/evxface.o \
events/evxfevnt.o \
events/evxfregn.o
OBJECTS_EXECUTER = \
executer/amconfig.o \
executer/amconvrt.o \
executer/amcreate.o \
executer/amdump.o \
executer/amdyadic.o \
executer/amfield.o \
executer/amfldio.o \
executer/ammisc.o \
executer/ammonad.o \
executer/ammutex.o \
executer/amnames.o \
executer/amprep.o \
executer/amregion.o \
executer/amresnte.o \
executer/amresolv.o \
executer/amresop.o \
executer/amstore.o \
executer/amstoren.o \
executer/amstorob.o \
executer/amsystem.o \
executer/amutils.o \
executer/amxface.o
OBJECTS_HARDWARE = \
hardware/hwacpi.o \
hardware/hwgpe.o \
hardware/hwregs.o \
hardware/hwsleep.o \
hardware/hwtimer.o
OBJECTS_NAMESPACE = \
namespace/nsaccess.o \
namespace/nsalloc.o \
namespace/nseval.o \
namespace/nsinit.o \
namespace/nsload.o \
namespace/nsnames.o \
namespace/nsobject.o \
namespace/nssearch.o \
namespace/nsutils.o \
namespace/nswalk.o \
namespace/nsxfname.o \
namespace/nsxfobj.o
OBJECTS_PARSER = \
parser/psargs.o \
parser/psopcode.o \
parser/psparse.o \
parser/psscope.o \
parser/pstree.o \
parser/psutils.o \
parser/pswalk.o \
parser/psxface.o
OBJECTS_RESOURCE = \
resource/rsaddr.o \
resource/rscalc.o \
resource/rscreate.o \
resource/rsdump.o \
resource/rsio.o \
resource/rsirq.o \
resource/rslist.o \
resource/rsmemory.o \
resource/rsmisc.o \
resource/rsutils.o \
resource/rsxface.o
OBJECTS_TABLES = \
tables/tbconvrt.o \
tables/tbget.o \
tables/tbinstal.o \
tables/tbutils.o \
tables/tbxface.o \
tables/tbxfroot.o
OBJECTS_UTILS = \
utils/cmalloc.o \
utils/cmclib.o \
utils/cmcopy.o \
utils/cmdebug.o \
utils/cmdelete.o \
utils/cmeval.o \
utils/cmglobal.o \
utils/cminit.o \
utils/cmobject.o \
utils/cmutils.o \
utils/cmxface.o
TARGET_OBJECTS = \
$(OBJECTS_OSPM) $(OBJECTS_DISPATCHER) $(OBJECTS_EVENTS) \
$(OBJECTS_EXECUTER) $(OBJECTS_HARDWARE) $(OBJECTS_NAMESPACE) \
$(OBJECTS_PARSER) $(OBJECTS_RESOURCE) $(OBJECTS_TABLES) \
$(OBJECTS_UTILS)
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -0,0 +1,12 @@
<directory name="acpi">
<xi:include href="acpi/acpi.xml" />
</directory>
<directory name="isapnp">
<xi:include href="isapnp/isapnp.xml" />
</directory>
<directory name="pci">
<xi:include href="pci/pci.xml" />
</directory>
<directory name="serenum">
<xi:include href="serenum/serenum.xml" />
</directory>

View file

@ -0,0 +1,8 @@
<module name="isapnp" type="kernelmodedriver" installbase="system32/drivers" installname="isapnp.sys">
<include base="isapnp">.</include>
<define name="__USE_W32API" />
<library>ntoskrnl</library>
<library>hal</library>
<file>isapnp.c</file>
<file>isapnp.rc</file>
</module>

View file

@ -1,15 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
TARGET_TYPE = driver
TARGET_NAME = isapnp
TARGET_OBJECTS = isapnp.o
TARGET_CFLAGS = -D__USE_W32API -Werror -Wall
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,15 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
TARGET_TYPE = driver
TARGET_NAME = pci
TARGET_CFLAGS = -Wall -Werror -D__USE_W32API
TARGET_OBJECTS = fdo.o pci.o pdo.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -0,0 +1,10 @@
<module name="pci" type="kernelmodedriver" installbase="system32/drivers" installname="pci.sys" warnings="true">
<include base="pci">.</include>
<define name="__USE_W32API" />
<library>ntoskrnl</library>
<library>hal</library>
<file>fdo.c</file>
<file>pci.c</file>
<file>pdo.c</file>
<file>pci.rc</file>
</module>

View file

@ -1,20 +1,5 @@
# $Id: makefile 12852 2005-01-06 13:58:04Z mf $
# This file is automatically generated.
PATH_TO_TOP = ../../..
TARGET_TYPE = driver
TARGET_NAME = serenum
TARGET_CFLAGS = -Wall -Werror -D__USE_W32API
TARGET_OBJECTS = \
detect.o \
fdo.o \
misc.o \
pdo.o \
serenum.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
TOP = ..\..\..
DEFAULT = serenum
include $(TOP)/proxy.mak

View file

@ -0,0 +1,12 @@
<module name="serenum" type="kernelmodedriver" installbase="system32/drivers" installname="serenum.sys">
<include base="serenum">.</include>
<define name="__USE_W32API" />
<library>ntoskrnl</library>
<library>hal</library>
<file>detect.c</file>
<file>fdo.c</file>
<file>misc.c</file>
<file>pdo.c</file>
<file>serenum.c</file>
<file>serenum.rc</file>
</module>

View file

@ -0,0 +1,7 @@
<module name="beep" type="kernelmodedriver" installbase="system32/drivers" installname="beep.sys">
<define name="__USE_W32API" />
<library>ntoskrnl</library>
<library>hal</library>
<file>beep.c</file>
<file>beep.rc</file>
</module>

View file

@ -1,15 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
TARGET_TYPE = driver
TARGET_NAME = beep
TARGET_OBJECTS = beep.o
TARGET_CFLAGS = -Wall -Werror -D__USE_W32API
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -0,0 +1,7 @@
<module name="blue" type="kernelmodedriver" installbase="system32/drivers" installname="blue.sys">
<bootstrap base="reactos" />
<library>ntoskrnl</library>
<library>hal</library>
<file>blue.c</file>
<file>blue.rc</file>
</module>

View file

@ -1,20 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
TARGET_BOOTSTRAP = yes
TARGET_TYPE = driver
TARGET_NAME = blue
TARGET_OBJECTS = blue.o
TARGET_CFLAGS = -Wall -Werror
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
DEP_OBJECTS := $(TARGET_OBJECTS)
include $(PATH_TO_TOP)/tools/depend.mk

View file

@ -1,15 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
TARGET_TYPE = driver
TARGET_NAME = bootvid
TARGET_OBJECTS = bootvid.o pixelsup_i386.o
TARGET_CFLAGS = -Wall -Werror
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -0,0 +1,8 @@
<module name="bootvid" type="kernelmodedriver" installbase="system32/drivers" installname="bootvid.sys">
<include base="bootvid">.</include>
<library>ntoskrnl</library>
<library>hal</library>
<file>bootvid.c</file>
<file>pixelsup_i386.S</file>
<file>bootvid.rc</file>
</module>

View file

@ -0,0 +1,7 @@
<module name="debugout" type="kernelmodedriver">
<include base="debugout">.</include>
<library>ntoskrnl</library>
<library>hal</library>
<file>debugout.c</file>
<file>debugout.rc</file>
</module>

View file

@ -1,15 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
TARGET_TYPE = driver
TARGET_NAME = debugout
TARGET_OBJECTS = debugout.o
TARGET_CFLAGS = -Wall -Werror
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -0,0 +1,33 @@
<directory name="beep">
<xi:include href="beep/beep.xml" />
</directory>
<directory name="blue">
<xi:include href="blue/blue.xml" />
</directory>
<directory name="bootvid">
<xi:include href="bootvid/bootvid.xml" />
</directory>
<directory name="debugout">
<xi:include href="debugout/debugout.xml" />
</directory>
<directory name="mpu401">
<xi:include href="mpu401/mpu401.xml" />
</directory>
<directory name="null">
<xi:include href="null/null.xml" />
</directory>
<directory name="parallel">
<xi:include href="parallel/parallel.xml" />
</directory>
<directory name="ramdrv">
<xi:include href="ramdrv/ramdrv.xml" />
</directory>
<directory name="serial">
<xi:include href="serial/serial.xml" />
</directory>
<directory name="sndblst">
<xi:include href="sndblst/sndblst.xml" />
</directory>
<directory name="sound">
<xi:include href="sound/sound.xml" />
</directory>

View file

@ -1,22 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
TARGET_BOOTSTRAP = yes
TARGET_TYPE = driver
TARGET_NAME = mpu401
TARGET_OBJECTS = mpu401.o \
portio.o \
settings.o
TARGET_CFLAGS = -Wall -Werror
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
DEP_OBJECTS := $(TARGET_OBJECTS)
include $(PATH_TO_TOP)/tools/depend.mk

View file

@ -0,0 +1,9 @@
<module name="mpu401" type="kernelmodedriver">
<include base="mpu401">.</include>
<library>ntoskrnl</library>
<library>hal</library>
<file>mpu401.c</file>
<file>portio.c</file>
<file>settings.c</file>
<file>mpu401.rc</file>
</module>

View file

@ -1,17 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
include $(PATH_TO_TOP)/rules.mak
TARGET_TYPE = driver
TARGET_NAME = null
TARGET_OBJECTS = null.o
TARGET_CFLAGS = -Wall -Werror -D__USE_W32API
TARGET_LIBS = $(SDK_PATH_LIB)/libpseh.a
include $(TOOLS_PATH)/helper.mk

View file

@ -0,0 +1,9 @@
<module name="null" type="kernelmodedriver" installbase="system32/drivers" installname="null.sys">
<include base="null">.</include>
<define name="__USE_W32API" />
<library>pseh</library>
<library>ntoskrnl</library>
<library>hal</library>
<file>null.c</file>
<file>null.rc</file>
</module>

View file

@ -1,13 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
TARGET_TYPE = driver
TARGET_NAME = parallel
TARGET_OBJECTS = parallel.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -0,0 +1,7 @@
<module name="parallel" type="kernelmodedriver">
<include base="parallel">.</include>
<library>ntoskrnl</library>
<library>hal</library>
<file>parallel.c</file>
<file>parallel.rc</file>
</module>

View file

@ -1,21 +0,0 @@
# $Id$
# $Id$
PATH_TO_TOP = ../../..
TARGET_TYPE = driver
TARGET_NAME = ramdrv
TARGET_OBJECTS = ramdrv.o
TARGET_DDKLIBS = unbzip2.a
TARGET_NORC = yes
TARGET_CFLAGS=-I../../../ntoskrnl/include -g
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -0,0 +1,5 @@
#define REACTOS_VERSION_DLL
#define REACTOS_STR_FILE_DESCRIPTION "RAM Disk Device Driver\0"
#define REACTOS_STR_INTERNAL_NAME "ramdrv\0"
#define REACTOS_STR_ORIGINAL_FILENAME "ramdrv.sys\0"
#include <reactos/version.rc>

View file

@ -0,0 +1,8 @@
<module name="ramdrv" type="kernelmodedriver">
<include base="ramdrv">.</include>
<library>ntoskrnl</library>
<library>hal</library>
<library>bzip2</library>
<file>ramdrv.c</file>
<file>ramdrv.rc</file>
</module>

View file

@ -1,27 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
TARGET_TYPE = driver
TARGET_NAME = serial
TARGET_OBJECTS = \
circularbuffer.o \
cleanup.o \
close.o \
create.o \
devctrl.o \
info.o \
legacy.o \
misc.o \
pnp.o \
power.o \
rw.o \
serial.o
TARGET_CFLAGS = -Wall -Werror -D__USE_W32API
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -0,0 +1,18 @@
<module name="serial" type="kernelmodedriver" installbase="system32/drivers" installname="serial.sys">
<define name="__USE_W32API" />
<library>ntoskrnl</library>
<library>hal</library>
<file>circularbuffer.c</file>
<file>cleanup.c</file>
<file>close.c</file>
<file>create.c</file>
<file>devctrl.c</file>
<file>info.c</file>
<file>legacy.c</file>
<file>misc.c</file>
<file>pnp.c</file>
<file>power.c</file>
<file>rw.c</file>
<file>serial.c</file>
<file>serial.rc</file>
</module>

View file

@ -50,8 +50,6 @@ BOOLEAN IsSpeakerEnabled(UINT BasePort)
VOID BeginPlayback(UINT BasePort, UINT BitDepth, UINT Channels, UINT BlockSize)
{
CHAR Command;
DPRINT("BeginPlayback(%d, %d, %d, %d)\n", BasePort, BitDepth, Channels, BlockSize);
// switch(BitDepth)

View file

@ -70,7 +70,6 @@ BOOLEAN CreateDMA(PDEVICE_OBJECT DeviceObject)
{
DEVICE_DESCRIPTION Desc;
ULONG MappedRegs = 0;
NTSTATUS Status;
PDEVICE_EXTENSION Device = DeviceObject->DeviceExtension;
KEVENT DMAEvent;
KIRQL OldIrql;

View file

@ -14,14 +14,6 @@ BOOLEAN CheckIRQ(PDEVICE_EXTENSION Parameters)
for (i = 0; ValidIRQs[i] != 0xffff; i ++)
{
UCHAR ThisIRQ = ValidIRQs[i];
UCHAR bConfig = (UCHAR)(0x40 |
(ThisIRQ == 7 ? 0x08 :
ThisIRQ == 9 ? 0x10 :
ThisIRQ == 10 ? 0x18 :
ThisIRQ == 11 ? 0x20 :
0));
// Consult the card
// OUTPORT(pHw, BOARD_CONFIG, bConfig);
@ -37,7 +29,6 @@ BOOLEAN CheckIRQ(PDEVICE_EXTENSION Parameters)
// else
// Compaq stuff?
{
UCHAR CompaqPIDR;
UCHAR Expected;
switch (Parameters->IRQ)
@ -59,9 +50,6 @@ BOOLEAN ISR(
IN PKINTERRUPT pInterrupt,
IN PVOID Context)
{
PDEVICE_OBJECT DeviceObject = (PDEVICE_OBJECT)Context;
PDEVICE_EXTENSION Parameters = DeviceObject->DeviceExtension;
DPRINT("*** Processing ISR ***\n");
// What do we do here then?

View file

@ -1,20 +0,0 @@
PATH_TO_TOP = ../../..
TARGET_BOOTSTRAP = yes
TARGET_CFLAGS = -Wall #-Werror
TARGET_TYPE = driver
TARGET_NAME = sndblst
TARGET_OBJECTS = sndblst.o \
portio.o \
settings.o \
dma.o \
irq.o \
card.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -83,7 +83,7 @@ WORD InitSoundCard(UINT BasePort)
{
// Check to make sure the reset was acknowledged:
for (TimeOut = SB_TIMEOUT;
Status = (SB_READ_DATA(BasePort) != SB_DSP_READY) && TimeOut > 0;
(Status = (SB_READ_DATA(BasePort) != SB_DSP_READY) && (TimeOut > 0));
TimeOut --);
}

View file

@ -292,8 +292,6 @@ NTSTATUS SaveSettings(
NT status STATUS_SUCCESS if successful
*/
{
NTSTATUS s;
DPRINT("SaveSettings() unimplemented\n");
// UNIMPLEMENTED;

View file

@ -294,8 +294,6 @@ BlasterDeviceControl(PDEVICE_OBJECT DeviceObject,
{
PIO_STACK_LOCATION Stack;
PDEVICE_EXTENSION DeviceExtension;
UINT ByteCount;
PBYTE Data;
DPRINT("BlasterDeviceControl() called!\n");

View file

@ -0,0 +1,12 @@
<module name="sndblst" type="kernelmodedriver" warnings="true">
<include base="sndblst">.</include>
<library>ntoskrnl</library>
<library>hal</library>
<file>card.c</file>
<file>dma.c</file>
<file>irq.c</file>
<file>portio.c</file>
<file>settings.c</file>
<file>sndblst.c</file>
<file>sndblst.rc</file>
</module>

View file

@ -11,8 +11,8 @@
* Minor build fix
*/
#include "dsp.h"
#include "sb16.h"
#include "dsp.h"
/************************************
* unsigned char read_dsp(void)
@ -25,6 +25,7 @@ unsigned char read_dsp(unsigned short base)
{
// while((inb(base+0x0e)&0x80)==0); //Wait until there is something to read
// return inb(base+0x0a);
return 0;
}
/************************************'

View file

@ -13,5 +13,5 @@ unsigned short base;
unsigned char irq,dma8,dma16;
unsigned char read_dsp(unsigned short base);
void write_dsp(unsigned short base,unsigned char data);
//sb_status detect_dsp(SB16* sb16);
sb_status detect_dsp(SB16* sb16);
sb_status reset_dsp(unsigned short base_address);

View file

@ -1,15 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
TARGET_TYPE = driver
TARGET_NAME = sb16
TARGET_OBJECTS = sb16.o dsp.o mixer.o sb_waveout.o sound.o wave.o
TARGET_CFLAGS = -Wall
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -11,8 +11,8 @@
* Minor build fixes
*/
#include "dsp.h"
#include "sb16.h"
#include "dsp.h"
#include "mixer.h"
unsigned char read_mixer(unsigned short base,unsigned char reg)
@ -20,6 +20,7 @@ unsigned char read_mixer(unsigned short base,unsigned char reg)
// outb(base+0x04,reg);
// return inb(base+0x05);
return 0;
}
unsigned char get_irq(SB16* sb16)

View file

@ -77,6 +77,7 @@ NTSTATUS ModuleEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
* RETURNS: Success or failure
*/
{
#if 0
PDEVICE_OBJECT DeviceObject;
NTSTATUS ret;
@ -86,7 +87,7 @@ NTSTATUS ModuleEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
DPRINT1("Soundblaster 16 not found\n");
return 0;
}
ret = IoCreateDevice(DriverObject,0,"\\Device\\WaveOut",FILE_DEVICE_WAVE_OUT,0,FALSE,&DeviceObject);
ret = IoCreateDevice(DriverObject,0,L"\\Device\\WaveOut",FILE_DEVICE_WAVE_OUT,0,FALSE,&DeviceObject);
if (ret!=STATUS_SUCCESS)
return(ret);
@ -96,7 +97,7 @@ NTSTATUS ModuleEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
DriverObject->MajorFunction[IRP_MJ_WRITE] = Dispatch;
DriverObject->MajorFunction[IRP_MJ_WRITE] = Dispatch;
DriverObject->DriverUnload = NULL;
#endif
return(STATUS_SUCCESS);
}

View file

@ -0,0 +1,11 @@
<module name="sound" type="kernelmodedriver">
<library>ntoskrnl</library>
<library>hal</library>
<file>dsp.c</file>
<file>mixer.c</file>
<file>sb16.c</file>
<file>sb_waveout.c</file>
<file>sound.c</file>
<file>wave.c</file>
<file>sb16.rc</file>
</module>

View file

@ -29,7 +29,7 @@ SB16 sb16;
ULONG OldIRQ;
PKINTERRUPT IrqObject;
BOOLEAN DMAOutputISR(PKINTERRUPT Interrupt, PVOID ServiceContext)
BOOLEAN STDCALL DMAOutputISR(PKINTERRUPT Interrupt, PVOID ServiceContext)
{
DPRINT1("interrupt\n");
return FALSE;
@ -42,7 +42,7 @@ void sb16_play(WAVE_HDR* wave)
KIRQL Dirql;
KAFFINITY Affinity;
PKINTERRUPT IrqObject;
unsigned int mask,newmask;
unsigned int newmask;
unsigned int i;
unsigned int tmp[255];

View file

@ -0,0 +1,24 @@
<directory name="bus">
<xi:include href="bus/directory.xml" />
</directory>
<directory name="dd">
<xi:include href="dd/directory.xml" />
</directory>
<directory name="fs">
<xi:include href="fs/directory.xml" />
</directory>
<directory name="input">
<xi:include href="input/directory.xml" />
</directory>
<directory name="lib">
<xi:include href="lib/directory.xml" />
</directory>
<directory name="net">
<xi:include href="net/directory.xml" />
</directory>
<directory name="storage">
<xi:include href="storage/directory.xml" />
</directory>
<directory name="video">
<xi:include href="video/directory.xml" />
</directory>

View file

@ -0,0 +1,19 @@
<module name="cdfs" type="kernelmodedriver" installbase="system32/drivers" installname="cdfs.sys">
<bootstrap base="reactos" />
<include base="cdfs">.</include>
<library>ntoskrnl</library>
<library>hal</library>
<file>cdfs.c</file>
<file>cleanup.c</file>
<file>close.c</file>
<file>common.c</file>
<file>create.c</file>
<file>dirctl.c</file>
<file>fcb.c</file>
<file>finfo.c</file>
<file>fsctl.c</file>
<file>misc.c</file>
<file>rw.c</file>
<file>volinfo.c</file>
<file>cdfs.rc</file>
</module>

View file

@ -1,24 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
TARGET_BOOTSTRAP = yes
TARGET_TYPE = driver
TARGET_NAME = cdfs
TARGET_OBJECTS = $(TARGET_NAME).o close.o common.o create.o dirctl.o \
fcb.o finfo.o fsctl.o misc.o rw.o volinfo.o cleanup.o
TARGET_CFLAGS = -Werror -Wall
DEP_OBJECTS = $(TARGET_OBJECTS)
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
include $(TOOLS_PATH)/depend.mk
# EOF

View file

@ -0,0 +1,21 @@
<directory name="cdfs">
<xi:include href="cdfs/cdfs.xml" />
</directory>
<directory name="fs_rec">
<xi:include href="fs_rec/fs_rec.xml" />
</directory>
<directory name="ms">
<xi:include href="ms/msfs.xml" />
</directory>
<directory name="mup">
<xi:include href="mup/mup.xml" />
</directory>
<directory name="np">
<xi:include href="np/npfs.xml" />
</directory>
<directory name="ntfs">
<xi:include href="ntfs/ntfs.xml" />
</directory>
<directory name="vfat">
<xi:include href="vfat/vfatfs.xml" />
</directory>

View file

@ -0,0 +1,12 @@
<module name="fs_rec" type="kernelmodedriver" installbase="system32/drivers" installname="fs_rec.sys">
<include base="fs_rec">.</include>
<library>ntoskrnl</library>
<library>hal</library>
<file>blockdev.c</file>
<file>cdfs.c</file>
<file>fat.c</file>
<file>fs_rec.c</file>
<file>ntfs.c</file>
<file>udfs.c</file>
<file>fs_rec.rc</file>
</module>

Some files were not shown because too many files have changed in this diff Show more