Major update of the build system:

- Created helper makefile for all targets
- Made most makefiles simpler by using the helper makefile
- Moved build tools into ./tools

Updated installation instructions

svn path=/trunk/; revision=2185
This commit is contained in:
Casper Hornstrup 2001-08-21 20:13:17 +00:00
parent aaada25107
commit 3f69ca4cc4
124 changed files with 2989 additions and 4575 deletions

View file

@ -1,2 +1,8 @@
dist
errors
reactos
*.sys
*.exe
*.dll
*.a
*.o
*.coff

View file

@ -1,39 +1,74 @@
1. Build environment
To build the system you need either mingw32 installed on Windows or a
mingw32 cross compiler running on unix.
To build the system you need either mingw32 installed on Windows or a mingw32
cross compiler running on unix.
2. Building
To build from Windows run make. To build from unix, edit rules.mak and change
the PREFIX variable to the correct value for your cross-compiler, then run
'make'.
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, then run 'make'.
3. Installation
Installation isn't yet automated, sorry. The system can only be installed on
the first partition which must be formatted for DOS. Set up a directory
structure like the following
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.
make directories C:\reactos,C:\reactos\system32,C:\reactos\system32\drivers
ReactOS can be installed from the source distribution or from the binary
distribution. The two ways to install ReactOS are explained below.
Copy apps/system/shell/shell.exe to C:\reactos\system32
Copy subsys/smss/smss.exe to C:\reactos\system32
Copy apps/system/winlogon/winlogon.exe to C:\reactos\system32
Copy apps/system/services/services.exe to C:\reactos\system32
Copy services/input/keyboard/keyboard.sys to C:\reactos\system32\drivers
Copy services/dd/blue/blue.sys to C:\reactos\system32\drivers
Copy lib/ntdll/ntdll.dll to C:\reactos\system32
Copy lib/kernel32/kernel32.dll to C:\reactos\system32
Copy lib/crtdll/crtdll.dll to C:\reactos\system32
The system can only be started from DOS. Copy the following files,
services/dd/ide/ide.sys, services/fs/vfat/vfatfsd.sys
ntoskrnl/ntoskrnl.exe and loaders/dos/loadros.com, to a suitable
directory, such as C:\. The system can then be booted with the
command 'loadros.com ntoskrnl.exe ide.sys vfatfs.sys'.
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 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.
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:
INSTALL_DIR = c:\reactos
If you are on linux this could be:
INSTALL_DIR = /mnt/windows/reactos
Save the changes to rules.mak and run 'make install' to install the files to
the new location.
3.2 Installation from binany 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>.
ReactOS will now boot and when it has booted, you are asked for a username and
password. Just press <enter> twice as ReactOS does not currently have user
validation. A simple shell is started where you can use simple commands like
'cd' and 'dir'.
You may also want to try running the enhanced shell, cmd.exe, found in
the rosapps CVS module. For more information see the doc directory
the rosapps CVS module.
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.
http://www.reactos.com/home/mailing.html
ReactOS Development Team

View file

@ -2,23 +2,18 @@
# Global makefile
#
#
# Select your host
#
#HOST = mingw32-linux
#HOST = mingw32-windows
PATH_TO_TOP = .
include rules.mak
include $(PATH_TO_TOP)/rules.mak
#
# Required to run the system
#
COMPONENTS = iface_native iface_additional ntoskrnl
COMPONENTS = iface_native iface_additional hallib ntoskrnl
HALS = halx86
BUS = acpi isapnp
DLLS = ntdll kernel32 advapi32 crtdll msvcrt fmifs gdi32 msafd \
ole32 oleaut32 secur32 shell32 user32 ws2_32
ole32 oleaut32 secur32 shell32 user32 ws2_32 version
SUBSYS = smss win32k csrss
#
@ -46,7 +41,7 @@ INPUT_DRIVERS = keyboard mouclass psaux
FS_DRIVERS = vfat ms np
#NET_DRIVERS = ndis tdi tcpip tditest wshtcpip afd
NET_DRIVERS = ndis tcpip tditest wshtcpip afd
NET_DRIVERS = ndis tdi tcpip tditest wshtcpip afd
#NET_DEVICE_DRIVERS = ne2000
NET_DEVICE_DRIVERS = ne2000
@ -59,64 +54,44 @@ STORAGE_DRIVERS = class2 scsiport disk
#
# system applications (required for startup)
#
#SYS_APPS = shell winlogon services
SYS_APPS = shell winlogon services
#SYS_APPS = lsass services shell winlogon
SYS_APPS = services shell winlogon
APPS = args hello test cat bench apc shm lpc thread event file gditest \
pteb consume dump_shared_data vmtest regtest alive mstest nptest \
objdir atomtest
#NET_APPS = ping roshttpd telnet
NET_APPS = ping
NET_APPS = ping roshttpd
KERNEL_SERVICES = $(DEVICE_DRIVERS) $(INPUT_DRIVERS) $(FS_DRIVERS) \
KERNEL_SERVICES = $(DEVICE_DRIVERS) $(INPUT_DRIVERS) $(FS_DRIVERS) \
$(NET_DRIVERS) $(NET_DEVICE_DRIVERS) $(STORAGE_DRIVERS)
all: rdel$(EXE_POSTFIX) buildno $(COMPONENTS) $(BUS) $(DLLS) \
$(SUBSYS) $(LOADERS) $(KERNEL_SERVICES) $(SYS_APPS) $(APPS) $(NET_APPS)
all: tools buildno dk $(COMPONENTS) $(HALS) $(BUS) $(DLLS) $(SUBSYS) \
$(LOADERS) $(KERNEL_SERVICES) $(SYS_APPS) $(APPS) $(NET_APPS)
.PHONY: all
clean: rdel$(EXE_POSTFIX) buildno_clean $(COMPONENTS:%=%_clean) \
$(BUS:%=%_clean) $(DLLS:%=%_clean) \
clean: buildno_clean dk_clean $(HALS:%=%_clean) \
$(COMPONENTS:%=%_clean) $(BUS:%=%_clean) $(DLLS:%=%_clean) \
$(LOADERS:%=%_clean) $(KERNEL_SERVICES:%=%_clean) $(SUBSYS:%=%_clean) \
$(SYS_APPS:%=%_clean) $(APPS:%=%_clean) $(NET_APPS:%=%_clean)
$(SYS_APPS:%=%_clean) $(APPS:%=%_clean) $(NET_APPS:%=%_clean) clean_after tools_clean
.PHONY: clean
clean_after:
$(RM) $(PATH_TO_TOP)/include/roscfg.h
ifeq ($(HOST),mingw32-linux)
rcopy$(EXE_POSTFIX): rcopy.c
$(HOST_CC) -g -DUNIX_PATHS rcopy.c -o rcopy$(EXE_POSTFIX)
endif
ifeq ($(HOST),mingw32-windows)
rcopy$(EXE_POSTFIX): rcopy.c
$(HOST_CC) -g -DDOS_PATHS rcopy.c -o rcopy$(EXE_POSTFIX)
endif
install: tools buildno install_dirs install_before \
$(COMPONENTS:%=%_install) $(HALS:%=%_install) $(BUS:%=%_install) \
$(DLLS:%=%_install) $(LOADERS:%=%_install) \
$(KERNEL_SERVICES:%=%_install) $(SUBSYS:%=%_install) \
$(SYS_APPS:%=%_install) $(APPS:%=%_install)
ifeq ($(HOST),mingw32-linux)
rmkdir$(EXE_POSTFIX): rmkdir.c
$(HOST_CC) -g -DUNIX_PATHS rmkdir.c -o rmkdir$(EXE_POSTFIX)
endif
ifeq ($(HOST),mingw32-windows)
rmkdir$(EXE_POSTFIX): rmkdir.c
$(HOST_CC) -g -DDOS_PATHS rmkdir.c -o rmkdir$(EXE_POSTFIX)
endif
rdel$(EXE_POSTFIX): rdel.c
$(HOST_CC) -g rdel.c -liberty -o rdel$(EXE_POSTFIX)
install: rcopy$(EXE_POSTFIX) rmkdir$(EXE_POSTFIX) make_install_dirs autoexec_install \
$(COMPONENTS:%=%_install) $(BUS:%=%_install) \
$(DLLS:%=%_install) $(LOADERS:%=%_install) \
$(KERNEL_SERVICES:%=%_install) $(SUBSYS:%=%_install) \
$(SYS_APPS:%=%_install) $(APPS:%=%_install)
dist: rcopy$(EXE_POSTFIX) clean_dist_dir make_dist_dirs $(COMPONENTS:%=%_dist) \
$(BUS:%=%_dist) $(DLLS:%=%_dist) \
dist: $(TOOLS_PATH)/rcopy$(EXE_POSTFIX) dist_clean dist_dirs \
$(HALS:%=%_dist) $(COMPONENTS:%=%_dist) $(BUS:%=%_dist) $(DLLS:%=%_dist) \
$(LOADERS:%=%_dist) $(KERNEL_SERVICES:%=%_dist) $(SUBSYS:%=%_dist) \
$(SYS_APPS:%=%_dist) $(APPS:%=%_dist) $(NET_APPS:%=%_dist)
.PHONY: all clean clean_before install dist
#
# Build number generator
#
@ -183,6 +158,61 @@ $(NET_APPS:%=%_install): %_install:
.PHONY: $(NET_APPS) $(NET_APPS:%=%_clean) $(NET_APPS:%=%_install) $(NET_APPS:%=%_dist)
#
# Tools
#
tools:
make -C tools
tools_clean:
make -C tools clean
tools_install:
tools_dist:
.PHONY: tools tools_clean tools_install tools_dist
#
# Developer Kits
#
dk:
$(RMKDIR) $(DK_PATH)
$(RMKDIR) $(DDK_PATH)
$(RMKDIR) $(DDK_PATH_LIB)
$(RMKDIR) $(DDK_PATH_INC)
$(RMKDIR) $(SDK_PATH)
$(RMKDIR) $(SDK_PATH_LIB)
$(RMKDIR) $(SDK_PATH_INC)
$(RMKDIR) $(XDK_PATH)
$(RMKDIR) $(XDK_PATH_LIB)
$(RMKDIR) $(XDK_PATH_INC)
# WARNING! Be very sure that there are no important files
# in these directories before cleaning them!!!
dk_clean:
$(RM) $(DDK_PATH_LIB)/*.a
# $(RM) $(DDK_PATH_INC)/*.h
$(RMDIR) $(DDK_PATH_LIB)
# $(RMDIR) $(DDK_PATH_INC)
$(RM) $(SDK_PATH_LIB)/*.a
# $(RM) $(SDK_PATH_INC)/*.h
$(RMDIR) $(SDK_PATH_LIB)
# $(RMDIR) $(SDK_PATH_INC)
$(RM) $(XDK_PATH_LIB)/*.a
# $(RM) $(XDK_PATH_INC)/*.h
$(RMDIR) $(XDK_PATH_LIB)
# $(RMDIR) $(XDK_PATH_INC)
dk_install:
dk_dist:
.PHONY: dk dk_clean dk_install dk_dist
#
# Interfaces
#
@ -368,6 +398,42 @@ ntoskrnl_dist:
.PHONY: ntoskrnl ntoskrnl_clean ntoskrnl_install ntoskrnl_dist
#
# Hardware Abstraction Layer import library
#
hallib:
make -C hal/hal
hallib_clean:
make -C hal/hal clean
hallib_install:
make -C hal/hal install
hallib_dist:
make -C hal/hal dist
.PHONY: hallib hallib_clean hallib_install hallib_dist
#
# Hardware Abstraction Layers
#
$(HALS): %:
make -C hal/$*
$(HALS:%=%_clean): %_clean:
make -C hal/$* clean
$(HALS:%=%_install): %_install:
make -C hal/$* install
$(HALS:%=%_dist): %_dist:
make -C hal/$* dist
.PHONY: $(HALS) $(HALS:%=%_clean) $(HALS:%=%_install) $(HALS:%=%_dist)
#
# Required DLLs
#
@ -406,54 +472,75 @@ $(SUBSYS:%=%_dist): %_dist:
$(SUBSYS:%=%_dist)
#
# Make an install floppy
# Create an installation
#
make_install_dirs:
./rmkdir $(FLOPPY_DIR)/dlls
./rmkdir $(FLOPPY_DIR)/apps
./rmkdir $(FLOPPY_DIR)/drivers
./rmkdir $(FLOPPY_DIR)/subsys
install_clean:
$(RM) $(INSTALL_DIR)/system32/drivers/*.*
$(RM) $(INSTALL_DIR)/system32/config/*.*
$(RM) $(INSTALL_DIR)/system32/*.*
$(RM) $(INSTALL_DIR)/symbols/*.*
$(RM) $(INSTALL_DIR)/media/fonts/*.*
$(RM) $(INSTALL_DIR)/media/*.*
$(RM) $(INSTALL_DIR)/bin/*.*
$(RM) $(INSTALL_DIR)/*.com
$(RM) $(INSTALL_DIR)/*.bat
$(RMDIR) $(INSTALL_DIR)/system32/drivers
$(RMDIR) $(INSTALL_DIR)/system32/config
$(RMDIR) $(INSTALL_DIR)/system32
$(RMDIR) $(INSTALL_DIR)/symbols
$(RMDIR) $(INSTALL_DIR)/media/fonts
$(RMDIR) $(INSTALL_DIR)/media
$(RMDIR) $(INSTALL_DIR)/bin
$(RMDIR) $(INSTALL_DIR)
.PHONY: make_install_dirs
install_dirs:
$(RMKDIR) $(INSTALL_DIR)
$(RMKDIR) $(INSTALL_DIR)/bin
$(RMKDIR) $(INSTALL_DIR)/media
$(RMKDIR) $(INSTALL_DIR)/media/fonts
$(RMKDIR) $(INSTALL_DIR)/symbols
$(RMKDIR) $(INSTALL_DIR)/system32
$(RMKDIR) $(INSTALL_DIR)/system32/config
$(RMKDIR) $(INSTALL_DIR)/system32/drivers
autoexec_install: $(FLOPPY_DIR)/autoexec.bat
install_before:
$(CP) boot.bat $(INSTALL_DIR)/boot.bat
$(CP) media/fonts/helb____.ttf $(INSTALL_DIR)/media/fonts/helb____.ttf
$(CP) media/fonts/timr____.ttf $(INSTALL_DIR)/media/fonts/timr____.ttf
.PHONY: install_clean install_dirs install_before
$(FLOPPY_DIR)/autoexec.bat: bootflop.bat
$(CP) bootflop.bat $(FLOPPY_DIR)/autoexec.bat
#
# Make a distribution saveset
#
clean_dist_dir:
ifeq ($(DOSCLI),yes)
- $(RM) $(DIST_DIR)\dlls\*.dll
- $(RM) $(DIST_DIR)\apps\*.exe
- $(RM) $(DIST_DIR)\drivers\*.sys
- $(RM) $(DIST_DIR)\subsys\*.exe
- $(RMDIR) $(DIST_DIR)\dlls
- $(RMDIR) $(DIST_DIR)\apps
- $(RMDIR) $(DIST_DIR)\drivers
- $(RMDIR) $(DIST_DIR)\subsys
- $(RMDIR) $(DIST_DIR)
else
$(RM) -r $(DIST_DIR)
endif
dist_clean:
$(RM) $(DIST_DIR)/symbols/*.sym
$(RM) $(DIST_DIR)/drivers/*.sys
$(RM) $(DIST_DIR)/subsys/*.exe
$(RM) $(DIST_DIR)/dlls/*.dll
$(RM) $(DIST_DIR)/apps/*.exe
$(RM) $(DIST_DIR)/*.exe
$(RMDIR) $(DIST_DIR)/symbols
$(RMDIR) $(DIST_DIR)/subsys
$(RMDIR) $(DIST_DIR)/drivers
$(RMDIR) $(DIST_DIR)/dlls
$(RMDIR) $(DIST_DIR)/apps
$(RMDIR) $(DIST_DIR)
make_dist_dirs: ./rmkdir
./rmkdir $(DIST_DIR)
./rmkdir $(DIST_DIR)/dlls
./rmkdir $(DIST_DIR)/apps
./rmkdir $(DIST_DIR)/drivers
./rmkdir $(DIST_DIR)/dlls
./rmkdir $(DIST_DIR)/subsys
dist_dirs:
$(RMKDIR) $(DIST_DIR)
$(RMKDIR) $(DIST_DIR)/apps
$(RMKDIR) $(DIST_DIR)/dlls
$(RMKDIR) $(DIST_DIR)/drivers
$(RMKDIR) $(DIST_DIR)/subsys
$(RMKDIR) $(DIST_DIR)/symbols
.PHONY: dist_clean dist_dirs
.PHONY: clean_dist_dir make_dist_dirs
#
#
#
etags:
find . -name "*.[ch]" -print | etags --language=c -

View file

@ -1,47 +1,21 @@
#
#
#
PATH_TO_TOP=../..
# $Id: Makefile,v 1.4 2001/08/21 20:12:59 chorns Exp $
TARGET_NAME=alive
PATH_TO_TOP = ../..
OBJECTS=\
$(TARGET_NAME).o
TARGET_NORC = yes
LIBRARIES=\
$(PATH_TO_TOP)/lib/kernel32/kernel32.a\
$(PATH_TO_TOP)/lib/crtdll/crtdll.a\
$(PATH_TO_TOP)/lib/user32/user32.a
TARGET_TYPE = program
PROGS=\
$(TARGET_NAME).exe
TARGET_APPTYPE = console
BASE_CFLAGS = -I$(PATH_TO_TOP)/include
TARGET_NAME = alive
all: $(PROGS)
TARGET_SDKLIBS = kernel32.a crtdll.a user32.a
.phony: all
clean:
- $(RM) $(TARGET_NAME).o $(TARGET_NAME).exe $(TARGET_NAME).sym
.phony: clean
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
$(CP) $* $(FLOPPY_DIR)/apps/$*
dist: $(PROGS:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%)
$(PROGS:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%): $(PATH_TO_TOP)/$(DIST_DIR)/apps/%: %
$(CP) $* $(PATH_TO_TOP)/$(DIST_DIR)/apps/$*
$(TARGET_NAME).exe: $(OBJECTS)
$(CC)\
$(OBJECTS)\
$(LIBRARIES)\
-o $(TARGET_NAME).exe
$(NM) --numeric-sort $(TARGET_NAME).exe > $(TARGET_NAME).sym
TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View file

@ -1,38 +1,21 @@
#
#
#
# $Id: makefile,v 1.8 2001/08/21 20:12:59 chorns Exp $
PATH_TO_TOP = ../..
CFLAGS = -g
TARGET_NORC = yes
OBJECTS= apc.o
PROGS= apc.exe
TARGET_TYPE = program
BASE_CFLAGS = -I../../include
LIBS = ../../lib/crtdll/crtdll.a ../../lib/kernel32/kernel32.a \
../../lib/ntdll/ntdll.a
TARGET_APPTYPE = console
all: $(PROGS)
TARGET_NAME = apc
.phony: all
TARGET_SDKLIBS = ntdll.a kernel32.a
clean:
- $(RM) apc.o apc.exe apc.sym
TARGET_OBJECTS = $(TARGET_NAME).o
.phony: clean
include $(PATH_TO_TOP)/rules.mak
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
include $(TOOLS_PATH)/helper.mk
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
$(CP) $* $(FLOPPY_DIR)/apps/$*
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
$(CP) $* ../../$(DIST_DIR)/apps/$*
apc.exe: $(OBJECTS) $(LIBS)
$(CC) $(OBJECTS) $(LIBS) -o apc.exe
$(NM) --numeric-sort apc.exe > apc.sym
include ../../rules.mak
# EOF

View file

@ -1,34 +1,19 @@
#
#
#
# $Id: makefile,v 1.14 2001/08/21 20:13:00 chorns Exp $
PATH_TO_TOP = ../..
OBJECTS= args.o
PROGS= args.exe
TARGET_NORC = yes
BASE_CFLAGS = -I../../include
TARGET_TYPE = program
all: $(PROGS)
TARGET_APPTYPE = console
.phony: all
TARGET_NAME = args
clean:
- $(RM) args.o args.exe args.sym
TARGET_OBJECTS = $(TARGET_NAME).o
.phony: clean
include $(PATH_TO_TOP)/rules.mak
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
include $(TOOLS_PATH)/helper.mk
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
$(CP) $* $(FLOPPY_DIR)/apps/$*
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
$(CP) $* ../../$(DIST_DIR)/apps/$*
args.exe: $(OBJECTS)
$(CC) $(OBJECTS) -o args.exe
$(NM) --numeric-sort args.exe > args.sym
include ../../rules.mak
# EOF

View file

@ -1,34 +1,21 @@
#
#
#
# $Id: makefile,v 1.3 2001/08/21 20:13:00 chorns Exp $
PATH_TO_TOP = ../..
OBJECTS = atomtest.o
PROGS = atomtest.exe
LIBS = ../../lib/crtdll/crtdll.a ../../lib/kernel32/kernel32.a \
../../lib/ntdll/ntdll.a
TARGET_NORC = yes
CLEAN_FILES = atomtest.o atomtest.exe
TARGET_TYPE = program
all: atomtest.exe
TARGET_APPTYPE = console
clean:
- $(RM) $(CLEAN_FILES)
TARGET_NAME = atomtest
.phony: clean
TARGET_SDKLIBS = ntdll.a kernel32.a crtdll.a
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
TARGET_OBJECTS = $(TARGET_NAME).o
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
$(CP) $* $(FLOPPY_DIR)/apps/$*
include $(PATH_TO_TOP)/rules.mak
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
include $(TOOLS_PATH)/helper.mk
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
$(CP) $* ../../$(DIST_DIR)/apps/$*
atomtest.exe: $(OBJECTS) $(LIBS)
$(CC) $(OBJECTS) $(LIBS) -o atomtest.exe
$(NM) --numeric-sort atomtest.exe > atomtest.sym
include ../../rules.mak
# EOF

View file

@ -1,31 +1,21 @@
#
#
#
# $Id: makefile,v 1.9 2001/08/21 20:13:00 chorns Exp $
PATH_TO_TOP = ../..
PROGS = bench-thread
TARGET_NORC = yes
all: $(PROGS:%=%.exe)
TARGET_TYPE = program
.phony: all
TARGET_APPTYPE = console
clean:
- $(RM) *.o *.exe *.sym
TARGET_NAME = bench-thread
.phony: clean
TARGET_SDKLIBS = kernel32.a
install: # $(PROGS:%=$(FLOPPY_DIR)/apps/%.exe)
TARGET_OBJECTS = $(TARGET_NAME).o
$(PROGS:%=$(FLOPPY_DIR)/apps/%.exe): $(FLOPPY_DIR)/apps/%.exe: %.exe
$(CP) $*.exe $(FLOPPY_DIR)/apps/$*.exe
include $(PATH_TO_TOP)/rules.mak
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%.exe)
include $(TOOLS_PATH)/helper.mk
$(PROGS:%=../../$(DIST_DIR)/apps/%.exe): ../../$(DIST_DIR)/apps/%.exe: %.exe
$(CP) $*.exe ../../$(DIST_DIR)/apps/$*.exe
bench-thread.exe: bench-thread.c
$(CC) $(CFLAGS) bench-thread.c -lkernel32 -o bench-thread.exe
$(NM) --numeric-sort bench-thread.exe > bench-thread.sym
include ../../rules.mak
# EOF

View file

@ -1,31 +1,19 @@
#
#
#
# $Id: Makefile,v 1.6 2001/08/21 20:13:00 chorns Exp $
PATH_TO_TOP = ../..
OBJECTS = consume.o
PROGS = consume.exe
LIBS =
CLEAN_FILES = consume.o consume.exe
TARGET_NORC = yes
all: consume.exe
TARGET_TYPE = program
clean:
- $(RM) $(CLEAN_FILES)
TARGET_APPTYPE = console
.phony: clean
TARGET_NAME = consume
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
TARGET_OBJECTS = $(TARGET_NAME).o
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
$(CP) $* $(FLOPPY_DIR)/apps/$*
include $(PATH_TO_TOP)/rules.mak
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
include $(TOOLS_PATH)/helper.mk
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
$(CP) $* ../../$(DIST_DIR)/apps/$*
consume.exe: $(OBJECTS)
$(CC) $(OBJECTS) -o consume.exe
include ../../rules.mak
# EOF

View file

@ -1,47 +1,21 @@
#
#
#
PATH_TO_TOP=../..
# $Id: Makefile,v 1.4 2001/08/21 20:13:00 chorns Exp $
TARGET_NAME=count
PATH_TO_TOP = ../..
OBJECTS=\
$(TARGET_NAME).o
TARGET_NORC = yes
LIBRARIES=\
$(PATH_TO_TOP)/lib/kernel32/kernel32.a\
$(PATH_TO_TOP)/lib/crtdll/crtdll.a\
$(PATH_TO_TOP)/lib/user32/user32.a
TARGET_TYPE = program
PROGS=\
$(TARGET_NAME).exe
TARGET_APPTYPE = console
BASE_CFLAGS = -I$(PATH_TO_TOP)/include
TARGET_NAME = count
all: $(PROGS)
TARGET_SDKLIBS = kernel32.a crtdll.a user32.a
.phony: all
clean:
- $(RM) $(TARGET_NAME).o $(TARGET_NAME).exe $(TARGET_NAME).sym
.phony: clean
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
$(CP) $* $(FLOPPY_DIR)/apps/$*
dist: $(PROGS:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%)
$(PROGS:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%): $(PATH_TO_TOP)/$(DIST_DIR)/apps/%: %
$(CP) $* $(PATH_TO_TOP)/$(DIST_DIR)/apps/$*
$(TARGET_NAME).exe: $(OBJECTS)
$(CC)\
$(OBJECTS)\
$(LIBRARIES)\
-o $(TARGET_NAME).exe
$(NM) --numeric-sort $(TARGET_NAME).exe > $(TARGET_NAME).sym
TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View file

@ -1,32 +1,20 @@
#
#
#
# $Id: makefile,v 1.5 2001/08/21 20:13:01 chorns Exp $
PATH_TO_TOP = ../..
OBJECTS = dump_shared_data.o
PROGS = dump_shared_data.exe
LIBS =
CLEAN_FILES = dump_shared_data.o dump_shared_data.exe
TARGET_NORC = yes
all: dump_shared_data.exe
TARGET_TYPE = program
clean:
- $(RM) $(CLEAN_FILES)
TARGET_APPTYPE = console
.phony: clean
TARGET_NAME = dump_shared_data
floppy: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
TARGET_OBJECTS = $(TARGET_NAME).o
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
$(CP) $* $(FLOPPY_DIR)/apps/$*
include $(PATH_TO_TOP)/rules.mak
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
include $(TOOLS_PATH)/helper.mk
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
$(CP) $* ../../$(DIST_DIR)/apps/$*
# EOF
dump_shared_data.exe: $(OBJECTS)
$(CC) $(OBJECTS) -o dump_shared_data.exe
BASE_CFLAGS = -I../../include
include ../../rules.mak

View file

@ -1,31 +1,21 @@
#
#
#
# $Id: makefile,v 1.6 2001/08/21 20:13:02 chorns Exp $
PATH_TO_TOP = ../..
PROGS = event
TARGET_NORC = yes
all: $(PROGS:%=%.exe)
TARGET_TYPE = program
.phony: all
TARGET_APPTYPE = console
clean:
- $(RM) *.o *.exe *.sym
TARGET_NAME = event
.phony: clean
TARGET_SDKLIBS = kernel32.a
install: # $(PROGS:%=$(FLOPPY_DIR)/apps/%.exe)
TARGET_OBJECTS = $(TARGET_NAME).o
$(PROGS:%=$(FLOPPY_DIR)/apps/%.exe): $(FLOPPY_DIR)/apps/%.exe: %.exe
$(CP) $*.exe $(FLOPPY_DIR)/apps/$*.exe
include $(PATH_TO_TOP)/rules.mak
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%.exe)
include $(TOOLS_PATH)/helper.mk
$(PROGS:%=../../$(DIST_DIR)/apps/%.exe): ../../$(DIST_DIR)/apps/%.exe: %.exe
$(CP) $*.exe ../../$(DIST_DIR)/apps/$*.exe
event.exe: event.c
$(CC) $(CFLAGS) event.c -lkernel32 -o event.exe
$(NM) --numeric-sort event.exe > event.sym
include ../../rules.mak
# EOF

View file

@ -1,43 +1,19 @@
#
#
#
# $Id: Makefile,v 1.7 2001/08/21 20:13:02 chorns Exp $
PATH_TO_TOP = ../..
OBJECTS= file.o
PROGS= file.exe
BASE_CFLAGS = -I../../include
all: $(PROGS)
.phony: all
clean:
- $(RM) file.o file.exe file.sym
.phony: clean
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
$(CP) $* $(FLOPPY_DIR)/apps/$*
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
$(CP) $* ../../$(DIST_DIR)/apps/$*
file.exe: $(OBJECTS)
$(CC) $(OBJECTS) $(BASE_CFLAGS) -o file.exe
$(NM) --numeric-sort file.exe > file.sym
include ../../rules.mak
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = file
TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View file

@ -1,35 +1,21 @@
#
#
#
# $Id: makefile,v 1.7 2001/08/21 20:13:02 chorns Exp $
PATH_TO_TOP = ../..
PROGS = gditest
TARGET_NORC = yes
OBJECTS =
LIBS= ../../lib/kernel32/kernel32.a ../../lib/gdi32/gdi32.a
CFLAGS = -I../../include
TARGET_TYPE = program
all: $(PROGS:%=%.exe)
TARGET_APPTYPE = console
.phony: all
TARGET_NAME = gditest
clean:
- $(RM) *.o *.exe *.sym
TARGET_SDKLIBS = kernel32.a gdi32.a
.phony: clean
TARGET_OBJECTS = $(TARGET_NAME).o
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%.exe)
include $(PATH_TO_TOP)/rules.mak
$(PROGS:%=$(FLOPPY_DIR)/apps/%.exe): $(FLOPPY_DIR)/apps/%.exe: %.exe
$(CP) $*.exe $(FLOPPY_DIR)/apps/$*.exe
include $(TOOLS_PATH)/helper.mk
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%.exe)
$(PROGS:%=../../$(DIST_DIR)/apps/%.exe): ../../$(DIST_DIR)/apps/%.exe: %.exe
$(CP) $*.exe ../../$(DIST_DIR)/apps/$*.exe
gditest.exe: gditest.c
$(CC) $(CFLAGS) gditest.c $(LIBS) -o gditest.exe
$(NM) --numeric-sort gditest.exe > gditest.sym
include ../../rules.mak
# EOF

View file

@ -1,31 +1,19 @@
#
#
#
# $Id: makefile,v 1.15 2001/08/21 20:13:03 chorns Exp $
PATH_TO_TOP = ../..
OBJECTS = hello.o
PROGS = hello.exe
LIBS =
CLEAN_FILES = hello.o hello.exe
TARGET_NORC = yes
all: hello.exe
TARGET_TYPE = program
clean:
- $(RM) $(CLEAN_FILES)
TARGET_APPTYPE = console
.phony: clean
TARGET_NAME = hello
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
TARGET_OBJECTS = $(TARGET_NAME).o
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
$(CP) $* $(FLOPPY_DIR)/apps/$*
include $(PATH_TO_TOP)/rules.mak
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
include $(TOOLS_PATH)/helper.mk
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
$(CP) $* ../../$(DIST_DIR)/apps/$*
hello.exe: $(OBJECTS)
$(CC) $(OBJECTS) -o hello.exe
include ../../rules.mak
# EOF

View file

@ -3,14 +3,18 @@
#
PATH_TO_TOP = ../..
include $(PATH_TO_TOP)/rules.mak
SRV_OBJECTS= lpcsrv.o
CLT_OBJECTS= lpcclt.o
PROGS= lpcsrv.exe lpcclt.exe
BASE_CFLAGS = -I../../include
LIBS = ../../lib/crtdll/crtdll.a ../../lib/kernel32/kernel32.a \
../../lib/ntdll/ntdll.a
BASE_CFLAGS = -I$(PATH_TO_TOP)/include
LIBS = $(SDK_PATH_LIB)/crtdll.a \
$(SDK_PATH_LIB)/kernel32.a \
$(SDK_PATH_LIB)/ntdll.a
all: $(PROGS)
@ -21,15 +25,15 @@ clean:
.phony: clean
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
install: $(PROGS:%=$(INSTALL_DIR)/bin/%)
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
$(CP) $* $(FLOPPY_DIR)/apps/$*
$(PROGS:%=$(INSTALL_DIR)/bin/%): $(INSTALL_DIR)/bin/%: %
$(CP) $* $(INSTALL_DIR)/bin/$*
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
dist: $(PROGS:%=$(DIST_DIR)/apps/%)
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
$(CP) $* ../../$(DIST_DIR)/apps/$*
$(PROGS:%=$(DIST_DIR)/apps/%): $(DIST_DIR)/apps/%: %
$(CP) $* $(DIST_DIR)/apps/$*
lpcsrv.exe: $(SRV_OBJECTS) $(LIBS)
$(CC) $(SRV_OBJECTS) $(LIBS) -o lpcsrv.exe
@ -38,6 +42,3 @@ lpcsrv.exe: $(SRV_OBJECTS) $(LIBS)
lpcclt.exe: $(CLT_OBJECTS) $(LIBS)
$(CC) $(CLT_OBJECTS) $(LIBS) -o lpcclt.exe
$(NM) --numeric-sort lpcclt.exe > lpcclt.sym
include ../../rules.mak

View file

@ -3,13 +3,18 @@
#
PATH_TO_TOP = ../..
include $(PATH_TO_TOP)/rules.mak
SRV_OBJECTS = msserver.o
CLT_OBJECTS = msclient.o
PROGS = msserver.exe msclient.exe
BASE_CFLAGS = -I../../include
LIBS = ../../lib/crtdll/crtdll.a ../../lib/kernel32/kernel32.a
BASE_CFLAGS = -I$(PATH_TO_TOP)/include
LIBS = $(SDK_PATH_LIB)/crtdll.a \
$(SDK_PATH_LIB)/kernel32.a \
$(SDK_PATH_LIB)/ntdll.a
all: $(PROGS)
@ -20,15 +25,15 @@ clean:
.phony: clean
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
install: $(PROGS:%=$(INSTALL_DIR)/bin/%)
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
$(CP) $* $(FLOPPY_DIR)/apps/$*
$(PROGS:%=$(INSTALL_DIR)/bin/%): $(INSTALL_DIR)/bin/%: %
$(CP) $* $(INSTALL_DIR)/bin/$*
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
dist: $(PROGS:%=$(DIST_DIR)/apps/%)
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
$(CP) $* ../../$(DIST_DIR)/apps/$*
$(PROGS:%=$(DIST_DIR)/apps/%): $(DIST_DIR)/apps/%: %
$(CP) $* $(DIST_DIR)/apps/$*
msserver.exe: $(SRV_OBJECTS) $(LIBS)
$(CC) $(SRV_OBJECTS) $(LIBS) -o msserver.exe
@ -37,6 +42,3 @@ msserver.exe: $(SRV_OBJECTS) $(LIBS)
msclient.exe: $(CLT_OBJECTS) $(LIBS)
$(CC) $(CLT_OBJECTS) $(LIBS) -o msclient.exe
$(NM) --numeric-sort msclient.exe > msclient.sym
include ../../rules.mak

View file

@ -3,13 +3,17 @@
#
PATH_TO_TOP = ../..
include $(PATH_TO_TOP)/rules.mak
SRV_OBJECTS = npserver.o
CLT_OBJECTS = npclient.o
PROGS = npserver.exe npclient.exe
BASE_CFLAGS = -I../../include
LIBS = ../../lib/crtdll/crtdll.a ../../lib/kernel32/kernel32.a
BASE_CFLAGS = -I$(PATH_TO_TOP)/include
LIBS = $(SDK_PATH_LIB)/crtdll.a \
$(SDK_PATH_LIB)/kernel32.a
all: $(PROGS)
@ -20,15 +24,15 @@ clean:
.phony: clean
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
install: $(PROGS:%=$(INSTALL_DIR)/bin/%)
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
$(CP) $* $(FLOPPY_DIR)/apps/$*
$(PROGS:%=$(INSTALL_DIR)/bin/%): $(INSTALL_DIR)/bin/%: %
$(CP) $* $(INSTALL_DIR)/bin/$*
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
dist: $(PROGS:%=$(DIST_DIR)/apps/%)
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
$(CP) $* ../../$(DIST_DIR)/apps/$*
$(PROGS:%=$(DIST_DIR)/apps/%): $(DIST_DIR)/apps/%: %
$(CP) $* $(DIST_DIR)/apps/$*
npserver.exe: $(SRV_OBJECTS) $(LIBS)
$(CC) $(SRV_OBJECTS) $(LIBS) -o npserver.exe
@ -37,6 +41,3 @@ npserver.exe: $(SRV_OBJECTS) $(LIBS)
npclient.exe: $(CLT_OBJECTS) $(LIBS)
$(CC) $(CLT_OBJECTS) $(LIBS) -o npclient.exe
$(NM) --numeric-sort npclient.exe > npclient.sym
include ../../rules.mak

View file

@ -1,31 +1,21 @@
#
#
#
# $Id: Makefile,v 1.6 2001/08/21 20:13:04 chorns Exp $
PATH_TO_TOP = ../..
OBJECTS = pteb.o
PROGS = pteb.exe
LIBS =
CLEAN_FILES = pteb.o pteb.exe
TARGET_NORC = yes
all: pteb.exe
TARGET_TYPE = program
clean:
- $(RM) $(CLEAN_FILES)
TARGET_APPTYPE = console
.phony: clean
TARGET_NAME = pteb
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
TARGET_SDKLIBS = ntdll.a kernel32.a crtdll.a
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
$(CP) $* $(FLOPPY_DIR)/apps/$*
TARGET_OBJECTS = $(TARGET_NAME).o
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
include $(PATH_TO_TOP)/rules.mak
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
$(CP) $* ../../$(DIST_DIR)/apps/$*
include $(TOOLS_PATH)/helper.mk
pteb.exe: $(OBJECTS)
$(CC) $(OBJECTS) -o pteb.exe
include ../../rules.mak
# EOF

View file

@ -1,36 +1,22 @@
#
#
#
# $Id: makefile,v 1.6 2001/08/21 20:13:04 chorns Exp $
PATH_TO_TOP = ../..
OBJECTS= regtest.o
PROGS= regtest.exe
LIBS= ../../lib/kernel32/kernel32.a ../../lib/ntdll/ntdll.a \
../../lib/advapi32/advapi32.a
TARGET_NORC = yes
BASE_CFLAGS = -I../../include
TARGET_TYPE = program
all: $(PROGS)
TARGET_APPTYPE = console
.phony: all
TARGET_NAME = regtest
clean:
- $(RM) *.o *.exe *.sym
TARGET_SDKLIBS = ntdll.a kernel32.a advapi32.a
.phony: clean
TARGET_OBJECTS = $(TARGET_NAME).o
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
include $(PATH_TO_TOP)/rules.mak
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
$(CP) $* $(FLOPPY_DIR)/apps/$*
include $(TOOLS_PATH)/helper.mk
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
$(CP) $* ../../$(DIST_DIR)/apps/$*
regtest.exe: $(OBJECTS) $(LIBS)
$(CC) $(OBJECTS) $(LIBS) -o regtest.exe
$(NM) --numeric-sort regtest.exe > regtest.sym
include ../../rules.mak
# EOF

View file

@ -3,14 +3,18 @@
#
PATH_TO_TOP = ../..
include $(PATH_TO_TOP)/rules.mak
SRV_OBJECTS= shmsrv.o
CLT_OBJECTS= shmclt.o
PROGS= shmsrv.exe shmclt.exe
BASE_CFLAGS = -I../../include
LIBS = ../../lib/crtdll/crtdll.a ../../lib/kernel32/kernel32.a \
../../lib/ntdll/ntdll.a
BASE_CFLAGS = -I$(PATH_TO_TOP)/include
LIBS = $(SDK_PATH_LIB)/crtdll.a \
$(SDK_PATH_LIB)/kernel32.a \
$(SDK_PATH_LIB)/ntdll.a
all: $(PROGS)
@ -21,15 +25,15 @@ clean:
.phony: clean
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
install: $(PROGS:%=$(INSTALL_DIR)/bin/%)
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
$(CP) $* $(FLOPPY_DIR)/apps/$*
$(PROGS:%=$(INSTALL_DIR)/bin/%): $(INSTALL_DIR)/bin/%: %
$(CP) $* $(INSTALL_DIR)/bin/$*
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
dist: $(PROGS:%=$(DIST_DIR)/apps/%)
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
$(CP) $* ../../$(DIST_DIR)/apps/$*
$(PROGS:%=$(DIST_DIR)/apps/%): $(DIST_DIR)/apps/%: %
$(CP) $* $(DIST_DIR)/apps/$*
shmsrv.exe: $(SRV_OBJECTS) $(LIBS)
$(CC) $(SRV_OBJECTS) $(LIBS) -o shmsrv.exe
@ -39,5 +43,4 @@ shmclt.exe: $(CLT_OBJECTS) $(LIBS)
$(CC) $(CLT_OBJECTS) $(LIBS) -o shmclt.exe
$(NM) --numeric-sort shmsrv.exe > shmclt.sym
include ../../rules.mak
# EOF

View file

@ -1,31 +1,21 @@
#
#
#
# $Id: makefile,v 1.6 2001/08/21 20:13:05 chorns Exp $
PATH_TO_TOP = ../..
PROGS = thread
TARGET_NORC = yes
all: $(PROGS:%=%.exe)
TARGET_TYPE = program
.phony: all
TARGET_APPTYPE = console
clean:
- $(RM) *.o *.exe *.sym
TARGET_NAME = thread
.phony: clean
TARGET_SDKLIBS = kernel32.a
install: # $(PROGS:%=$(FLOPPY_DIR)/apps/%.exe)
TARGET_OBJECTS = $(TARGET_NAME).o
$(PROGS:%=$(FLOPPY_DIR)/apps/%.exe): $(FLOPPY_DIR)/apps/%.exe: %.exe
$(CP) $*.exe $(FLOPPY_DIR)/apps/$*.exe
include $(PATH_TO_TOP)/rules.mak
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%.exe)
include $(TOOLS_PATH)/helper.mk
$(PROGS:%=../../$(DIST_DIR)/apps/%.exe): ../../$(DIST_DIR)/apps/%.exe: %.exe
$(CP) $*.exe ../../$(DIST_DIR)/apps/$*.exe
thread.exe: thread.c
$(CC) $(CFLAGS) thread.c -lkernel32 -o thread.exe
$(NM) --numeric-sort thread.exe > thread.sym
include ../../rules.mak
# EOF

View file

@ -1,31 +1,21 @@
#
#
#
# $Id: Makefile,v 1.4 2001/08/21 20:13:05 chorns Exp $
PATH_TO_TOP = ../..
OBJECTS = vmtest.o
PROGS = vmtest.exe
LIBS =
CLEAN_FILES = vmtest.o vmtest.exe
TARGET_NORC = yes
all: vmtest.exe
TARGET_TYPE = program
clean:
- $(RM) $(CLEAN_FILES)
TARGET_APPTYPE = console
.phony: clean
TARGET_NAME = vmtest
floppy: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
TARGET_SDKLIBS = ntdll.a kernel32.a crtdll.a
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
$(CP) $* $(FLOPPY_DIR)/apps/$*
TARGET_OBJECTS = $(TARGET_NAME).o
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
include $(PATH_TO_TOP)/rules.mak
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
$(CP) $* ../../$(DIST_DIR)/apps/$*
include $(TOOLS_PATH)/helper.mk
vmtest.exe: $(OBJECTS)
$(CC) $(OBJECTS) -o vmtest.exe
include ../../rules.mak
# EOF

View file

@ -1,34 +1,19 @@
#
#
#
# $Id: makefile,v 1.9 2001/08/21 20:13:00 chorns Exp $
PATH_TO_TOP = ../..
OBJECTS= cat.o
PROGS= cat.exe
TARGET_NORC = yes
all: cat.exe
TARGET_TYPE = program
.phony: all
TARGET_APPTYPE = console
clean:
- $(RM) cat.o cat.exe cat.sym
TARGET_NAME = cat
.phony: clean
TARGET_OBJECTS = $(TARGET_NAME).o
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
include $(PATH_TO_TOP)/rules.mak
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
$(CP) $* $(FLOPPY_DIR)/apps/$*
include $(TOOLS_PATH)/helper.mk
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
$(CP) $* ../../$(DIST_DIR)/apps/$*
.PHONY: floppy dist
cat.exe: $(OBJECTS) $(LIBS)
$(CC) $(OBJECTS) -o cat.exe
$(NM) --numeric-sort cat.exe > cat.sym
include ../../rules.mak
# EOF

View file

@ -1,37 +1,19 @@
#
# ReactOS Ping Utility
#
# $Id: makefile,v 1.7 2001/08/21 20:13:03 chorns Exp $
PATH_TO_TOP = ../../..
TARGETNAME=ping
CFLAGS = -I../../../include
TARGET_TYPE = program
OBJECTS = $(TARGETNAME).o $(TARGETNAME).coff
PROGS = $(TARGETNAME).exe
LIBS = ../../../lib/ntdll/ntdll.a \
../../../lib/ws2_32/ws2_32.a
TARGET_APPTYPE = console
CLEAN_FILES = $(TARGETNAME).o $(TARGETNAME).exe $(TARGETNAME).sym
TARGET_NAME = ping
all: $(TARGETNAME).exe
TARGET_SDKLIBS = ntdll.a ws2_32.a
clean:
- $(RM) $(CLEAN_FILES)
TARGET_OBJECTS = $(TARGET_NAME).o
.phony: clean
include $(PATH_TO_TOP)/rules.mak
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
include $(TOOLS_PATH)/helper.mk
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
$(CP) $* $(FLOPPY_DIR)/apps/$*
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
$(CP) $* ../../$(DIST_DIR)/apps/$*
$(TARGETNAME).exe: $(OBJECTS) $(LIBS)
$(CC) $(OBJECTS) $(LIBS) -o $(TARGETNAME).exe
$(NM) --numeric-sort $(TARGETNAME).exe > $(TARGETNAME).sym
include ../../../rules.mak
# EOF

View file

@ -1,49 +1,29 @@
#
# ReactOS HTTP Daemon
#
# $Id: makefile,v 1.5 2001/08/21 20:13:03 chorns Exp $
PATH_TO_TOP = ../../..
TARGETNAME=roshttpd
TARGET_PATH = common
CFLAGS = -Iinclude -DUNICODE -D_UNICODE -DDBG
TARGET_TYPE = program
MAIN_OBJECTS = $(TARGETNAME).o config.o error.o http.o httpd.o
COMMON_OBJECTS = common/list.o common/socket.o common/thread.o common/$(TARGETNAME).coff
TARGET_APPTYPE = console
OBJECTS = $(MAIN_OBJECTS) $(COMMON_OBJECTS)
PROGS = $(TARGETNAME).exe
LIBS = ../../../lib/kernel32/kernel32.a \
../../../lib/ws2_32/ws2_32.a \
../../../lib/user32/user32.a
TARGET_NAME = roshttpd
CLEAN_FILES = *.o $(TARGETNAME).exe $(TARGETNAME).sym common/*.o
TARGET_CPPFLAGS = -I./include -DUNICODE -D_UNICODE -DDBG
all: $(TARGETNAME).exe
TARGET_SDKLIBS = kernel32.a ws2_32.a user32.a
clean:
- $(RM) $(CLEAN_FILES)
MAIN_OBJECTS = roshttpd.o config.o error.o http.o httpd.o
.phony: clean
COMMON_OBJECTS = common/list.o common/socket.o common/thread.o
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
TARGET_OBJECTS = $(MAIN_OBJECTS) $(COMMON_OBJECTS)
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
ifeq ($(DOSCLI),yes)
$(CP) $* $(FLOPPY_DIR)\apps\$*
else
$(CP) $* $(FLOPPY_DIR)/apps/$*
endif
TARGET_CLEAN = common/*.o
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
include $(PATH_TO_TOP)/rules.mak
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
ifeq ($(DOSCLI),yes)
$(CP) $* ..\..\$(DIST_DIR)\apps\$*
else
$(CP) $* ../../$(DIST_DIR)/apps/$*
endif
include $(TOOLS_PATH)/helper.mk
$(TARGETNAME).exe: $(OBJECTS) $(LIBS)
$(CC) $(OBJECTS) $(LIBS) -o $(TARGETNAME).exe
include ../../../rules.mak
# EOF

View file

@ -1,73 +1,26 @@
# $Id: Makefile,v 1.2 2001/07/15 21:18:52 rex Exp $
#
# ReactOS Network Virtual Terminal (telnet) console client
#
PATH_TO_TOP=../../..
PATH_TO_LIB=$(PATH_TO_TOP)/lib
# $Id: Makefile,v 1.3 2001/08/21 20:13:03 chorns Exp $
TARGET_NAME=telnet
PATH_TO_TOP = ../../..
OBJECTS=\
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = telnet
TARGET_SDKLIBS = crtdll.a kernel32.a ws2_32.a
TARGET_OBJECTS = \
ansi.o \
console.o \
helpsock.o \
main.o \
nvt.o \
telnet.o \
vm.o \
$(TARGET_NAME).coff
LIBRARIES=\
$(PATH_TO_LIB)/crtdll/crtdll.a \
$(PATH_TO_LIB)/kernel32/kernel32.a \
$(PATH_TO_LIB)/ws2_32/ws2_32.a
PROGS=$(TARGET_NAME).exe
CLEAN_FILES = *.o $(TARGET_NAME).exe $(TARGET_NAME).sym
all: $(TARGET_NAME).exe
clean:
- $(RM) $(CLEAN_FILES)
.phony: clean
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
ifeq ($(DOSCLI),yes)
$(CP) $* $(FLOPPY_DIR)\apps\$*
else
$(CP) $* $(FLOPPY_DIR)/apps/$*
endif
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
ifeq ($(DOSCLI),yes)
$(CP) $* ..\..\$(DIST_DIR)\apps\$*
else
$(CP) $* ../../$(DIST_DIR)/apps/$*
endif
ansi.o: telnet.h
helpsock.o: telnet.h
main.o: telnet.h
nvt.o: telnet.h
telnet.o: telnet.h
telnet.coff: $(PATH_TO_TOP)/include/reactos/resource.h
vm.o: telnet.h
$(TARGET_NAME).exe: $(OBJECTS) $(LIBRARIES)
$(CC) $(OBJECTS) $(LIBRARIES) -o $(TARGET_NAME).exe
vm.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View file

@ -1,43 +1,21 @@
#
#
#
# $Id: makefile,v 1.8 2001/08/21 20:13:04 chorns Exp $
PATH_TO_TOP = ../..
TARGET_NAME=objdir
OBJECTS= $(TARGET_NAME).o
TARGET_NORC = yes
TARGET_TYPE = program
PROGS= $(TARGET_NAME).exe
TARGET_APPTYPE = console
BASE_CFLAGS = -I../../include -g
LIB_BASE=../../lib
LIBS = \
$(LIB_BASE)/ntdll/ntdll.a \
$(LIB_BASE)/kernel32/kernel32.a \
$(LIB_BASE)/crtdll/crtdll.a
TARGET_NAME = objdir
all: $(PROGS)
TARGET_SDKLIBS = ntdll.a kernel32.a crtdll.a
.phony: all
TARGET_OBJECTS = $(TARGET_NAME).o
clean:
- $(RM) $(TARGET_NAME).o $(TARGET_NAME).exe $(TARGET_NAME).sym
include $(PATH_TO_TOP)/rules.mak
.phony: clean
include $(TOOLS_PATH)/helper.mk
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
$(CP) $* $(FLOPPY_DIR)/apps/$*
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
$(CP) $* ../../$(DIST_DIR)/apps/$*
$(TARGET_NAME).exe: $(OBJECTS) $(LIBS)
$(CC) $(OBJECTS) $(LIBS) -o $(TARGET_NAME).exe
$(NM) --numeric-sort $(TARGET_NAME).exe > $(TARGET_NAME).sym
include ../../rules.mak
# EOF

View file

@ -1 +1 @@
loadros ntoskrnl.exe ide.sys vfatfs.sys
loadros system32\ntoskrnl.exe system32\hal.dll system32\drivers\ide.sys system32\drivers\vfatfs.sys

View file

@ -1,6 +1,8 @@
#
# Architecture to build for
#
# Specify one of: i386
# Possibble values in the future: alpha,i386,m68k,mips,powerpc
ARCH := i386
#

View file

@ -1,13 +1,31 @@
# $Id: makefile,v 1.6 2001/08/21 20:13:10 chorns Exp $
PATH_TO_TOP = ../../..
TARGET=acpi
TARGET_TYPE = driver
CFLAGS = -D__NTDRIVER__ -I./include -I./ospm/include
TARGET_NAME = acpi
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
TARGET_CFLAGS = -I./include -I./ospm/include
OBJECTS_PATH = objects
TARGET_OBJECTS = $(OBJECTS_PATH)/$(TARGET_NAME).o
TARGET_CLEAN = \
$(OBJECTS_PATH)/*.o \
dispatcher/*.o \
events/*.o \
executer/*.o \
hardware/*.o \
namespace/*.o \
ospm/*.o \
ospm/busmgr/*.o \
parser/*.o \
resource/*.o \
tables/*.o \
utils/*.o
OBJECTS_OSPM_BUSMGR = \
ospm/busmgr/bm.o \
@ -138,80 +156,76 @@ OBJECTS_UTILS = \
utils/cmxface.o
all: $(TARGET).sys
include $(PATH_TO_TOP)/rules.mak
.phony: all
$(OBJECTS_PATH):
mkdir $(OBJECTS_PATH)
include $(TOOLS_PATH)/helper.mk
#
# Build intermediate objects
#
$(OBJECTS_PATH)/ospm.o: $(OBJECTS_PATH) $(OBJECTS_OSPM)
$(OBJECTS_PATH)/ospm.o: $(OBJECTS_OSPM)
$(LD) \
-r \
-o $(OBJECTS_PATH)/ospm.o \
$(OBJECTS_OSPM)
$(OBJECTS_PATH)/dispatcher.o: $(OBJECTS_PATH) $(OBJECTS_DISPATCHER)
$(OBJECTS_PATH)/dispatcher.o: $(OBJECTS_DISPATCHER)
$(LD) \
-r \
-o $(OBJECTS_PATH)/dispatcher.o \
$(OBJECTS_DISPATCHER)
$(OBJECTS_PATH)/events.o: $(OBJECTS_PATH) $(OBJECTS_EVENTS)
$(OBJECTS_PATH)/events.o: $(OBJECTS_EVENTS)
$(LD) \
-r \
-o $(OBJECTS_PATH)/events.o \
$(OBJECTS_EVENTS)
$(OBJECTS_PATH)/executer.o: $(OBJECTS_PATH) $(OBJECTS_EXECUTER)
$(OBJECTS_PATH)/executer.o: $(OBJECTS_EXECUTER)
$(LD) \
-r \
-o $(OBJECTS_PATH)/executer.o \
$(OBJECTS_EXECUTER)
$(OBJECTS_PATH)/hardware.o: $(OBJECTS_PATH) $(OBJECTS_HARDWARE)
$(OBJECTS_PATH)/hardware.o: $(OBJECTS_HARDWARE)
$(LD) \
-r \
-o $(OBJECTS_PATH)/hardware.o \
$(OBJECTS_HARDWARE)
$(OBJECTS_PATH)/namespace.o: $(OBJECTS_PATH) $(OBJECTS_NAMESPACE)
$(OBJECTS_PATH)/namespace.o: $(OBJECTS_NAMESPACE)
$(LD) \
-r \
-o $(OBJECTS_PATH)/namespace.o \
$(OBJECTS_NAMESPACE)
$(OBJECTS_PATH)/parser.o: $(OBJECTS_PATH) $(OBJECTS_PARSER)
$(OBJECTS_PATH)/parser.o: $(OBJECTS_PARSER)
$(LD) \
-r \
-o $(OBJECTS_PATH)/parser.o \
$(OBJECTS_PARSER)
$(OBJECTS_PATH)/resource.o: $(OBJECTS_PATH) $(OBJECTS_RESOURCE)
$(OBJECTS_PATH)/resource.o: $(OBJECTS_RESOURCE)
$(LD) \
-r \
-o $(OBJECTS_PATH)/resource.o \
$(OBJECTS_RESOURCE)
$(OBJECTS_PATH)/tables.o: $(OBJECTS_PATH) $(OBJECTS_TABLES)
$(OBJECTS_PATH)/tables.o: $(OBJECTS_TABLES)
$(LD) \
-r \
-o $(OBJECTS_PATH)/tables.o \
$(OBJECTS_TABLES)
$(OBJECTS_PATH)/utils.o: $(OBJECTS_PATH) $(OBJECTS_UTILS)
$(OBJECTS_PATH)/utils.o: $(OBJECTS_UTILS)
$(LD) \
-r \
-o $(OBJECTS_PATH)/utils.o \
$(OBJECTS_UTILS)
OBJECTS := \
OBJECTS = \
$(OBJECTS_PATH)/ospm.o \
$(OBJECTS_PATH)/dispatcher.o \
$(OBJECTS_PATH)/events.o \
@ -221,70 +235,10 @@ OBJECTS := \
$(OBJECTS_PATH)/parser.o \
$(OBJECTS_PATH)/resource.o \
$(OBJECTS_PATH)/tables.o \
$(OBJECTS_PATH)/utils.o \
$(TARGET).coff
$(OBJECTS_PATH)/utils.o
$(OBJECTS_PATH)/$(TARGET_NAME).o: $(OBJECTS_PATH) $(OBJECTS)
$(LD) -r $(OBJECTS) -o $(OBJECTS_PATH)/$(TARGET_NAME).o
$(TARGET).coff: $(TARGET).rc $(PATH_TO_TOP)/include/reactos/resource.h
$(TARGET).sys: $(OBJECTS_PATH) $(OBJECTS) $(LIBS)
$(CC) \
-nostartfiles -nostdlib \
--subsystem=native \
-mdll \
--dll \
-Wl,-e,_DriverEntry@8 \
-Wl,--base-file,base.tmp \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
$(OBJECTS) $(LIBS) \
-o junk.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGET).sys \
--base-file base.tmp \
--output-exp temp.exp \
--kill-at
- $(RM) base.tmp
$(CC) \
-nostartfiles -nostdlib \
--subsystem=native \
-mdll \
--dll \
-Wl,--image-base,0x10000 \
-Wl,-e,_DriverEntry@8 \
-Wl,temp.exp \
-o $(TARGET).sys \
$(OBJECTS) $(LIBS)
- $(RM) temp.exp
- $(NM) --numeric-sort $(TARGET).sys > $(TARGET).sym
# $(STRIP) --strip-debug $(TARGET).sys
CLEAN_FILES = $(OBJECTS_PATH)/*.o dispatcher/*.o events/*.o executer/*.o hardware/*.o \
namespace/*.o ospm/*.o ospm/busmgr/*.o parser/*.o resource/*.o tables/*.o \
utils/*.o \
$(TARGET).o $(TARGET).a junk.tmp base.tmp temp.exp \
$(TARGET).sys $(TARGET).sym $(TARGET).coff
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
WITH_DEBUGGING=yes
WARNINGS_ARE_ERRORS = yes
include $(PATH_TO_TOP)/rules.mak
$(OBJECTS_PATH):
mkdir $(OBJECTS_PATH)

View file

@ -1,46 +1,13 @@
# $Id: makefile,v 1.4 2001/08/21 20:13:10 chorns Exp $
PATH_TO_TOP = ../../..
TARGET=isapnp
TARGET_TYPE = driver
CFLAGS = -D__NTDRIVER__ -I.
TARGET_NAME = isapnp
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
OBJECTS = \
isapnp.o \
$(TARGET).coff \
$(LIBS)
all: $(TARGET).sys.unstripped $(TARGET).sys
.phony: all
$(TARGET).coff: $(TARGET).rc $(PATH_TO_TOP)/include/reactos/resource.h
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS)
CLEAN_FILES = *.o $(TARGET).o $(TARGET).a junk.tmp base.tmp temp.exp \
$(TARGET).exe $(TARGET).nostrip.exe $(TARGET).sym $(TARGET).coff
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
WITH_DEBUGGING=yes
WARNINGS_ARE_ERRORS = yes
TARGET_OBJECTS = isapnp.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,36 +1,13 @@
# $Id: makefile,v 1.12 2001/07/25 06:19:24 ekohl Exp $
#
#
# $Id: makefile,v 1.13 2001/08/21 20:13:10 chorns Exp $
PATH_TO_TOP = ../../..
TARGET = beep
TARGET_TYPE = driver
CFLAGS = -D__NTDRIVER__
TARGET_NAME = beep
OBJECTS = beep.o beep.coff
TARGET_OBJECTS = beep.o
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
all: $(TARGET).sys $(TARGET).sys.unstripped
.PHONY: all
clean:
- $(RM) *.o *.sym beep.coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
WARNINGS_ARE_ERRORS = yes
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,36 +1,13 @@
# $Id: makefile,v 1.18 2001/07/25 06:19:34 ekohl Exp $
#
#
# $Id: makefile,v 1.19 2001/08/21 20:13:10 chorns Exp $
PATH_TO_TOP = ../../..
TARGET = blue
TARGET_TYPE = driver
CFLAGS = -D__NTDRIVER__
TARGET_NAME = blue
OBJECTS = $(TARGET).o $(TARGET).coff
TARGET_OBJECTS = blue.o
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
all: $(TARGET).sys $(TARGET).sys.unstripped
.phony: all
clean:
- $(RM) *.o *.sym $(TARGET).coff junk.tmp base.tmp temp.exp blue.sys blue.sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
WARNINGS_ARE_ERRORS = yes
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,42 +1,16 @@
# $Id: Makefile,v 1.9 2001/07/25 06:19:49 ekohl Exp $
#
#
# $Id: Makefile,v 1.10 2001/08/21 20:13:10 chorns Exp $
PATH_TO_TOP = ../../..
TARGET=floppy
TARGET_TYPE = driver
OBJECTS = floppy.o isr.o dpc.o $(TARGET).coff
TARGET_NAME = floppy
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
TARGET_OBJECTS = \
dpc.o \
floppy.o \
isr.o
CFLAGS = -D__NTDRIVER__ -I.
all: $(TARGET).sys
floppy.o: floppy.h
isr.o: floppy.h
dpc.o: floppy.h
.phony: all
clean:
- $(RM) *.o *.sym $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
WITH_DEBUGGING=yes
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,37 +1,15 @@
# $Id: makefile,v 1.24 2001/07/25 06:20:01 ekohl Exp $
#
#
# $Id: makefile,v 1.25 2001/08/21 20:13:11 chorns Exp $
PATH_TO_TOP = ../../..
TARGET=ide
TARGET_TYPE = driver
OBJECTS = $(TARGET).o $(TARGET).coff
TARGET_NAME = ide
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
TARGET_OBJECTS = ide.o
CFLAGS = -D__NTDRIVER__ -I. -g
TARGET_HEADERS = *.h
all: $(TARGET).sys.unstripped $(TARGET).sys
.phony: all
clean:
- $(RM) *.o *.sym $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
WITH_DEBUGGING=yes
WARNINGS_ARE_ERRORS = yes
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,40 +1,13 @@
#
#
#
# $Id: makefile,v 1.9 2001/08/21 20:13:11 chorns Exp $
PATH_TO_TOP = ../../..
TARGET=mouse
OBJECTS= mouse.o ../../../ntoskrnl/ntoskrnl.a
TARGET_TYPE = driver
all: mouse.o
TARGET_NAME = mouse
.phony: all
clean:
- $(RM) mouse.o junk.tmp base.tmp temp.exp mouse.sys
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: ../../../$(DIST_DIR)/drivers/$(TARGET).sys
../../../$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys ../../../$(DIST_DIR)/drivers/$(TARGET).sys
mouse.sys: $(OBJECTS)
$(CC) -specs=../../svc_specs -mdll -o junk.tmp -Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ -Wl,--defsym,_etext=etext \
-Wl,--base-file,base.tmp $(OBJECTS)
- $(RM) junk.tmp
$(DLLTOOL) --dllname mouse.sys --base-file base.tmp \
--output-exp temp.exp
- $(RM) base.tmp
$(CC) --verbose -Wl,--image-base,0x10000 -Wl,-e,_DriverEntry@8 \
-specs=../../svc_specs -mdll -o mouse.sys $(OBJECTS) -Wl,temp.exp
- $(RM) temp.exp
TARGET_OBJECTS = mouse.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,37 +1,13 @@
# $Id: makefile,v 1.13 2001/07/24 16:27:01 ekohl Exp $
#
#
# $Id: makefile,v 1.14 2001/08/21 20:13:11 chorns Exp $
PATH_TO_TOP = ../../..
TARGET = null
TARGET_TYPE = driver
OBJECTS = $(TARGET).o $(TARGET).coff
TARGET_NAME = null
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
CFLAGS = -D__NTDRIVER__
all: $(TARGET).sys $(TARGET).sys.unstripped
.phony: all
clean:
- $(RM) *.o *.sym $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
$(TARGET).coff: $(PATH_TO_TOP)/include/reactos/buildno.h $(TARGET).rc
TARGET_OBJECTS = null.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,37 +1,13 @@
# $Id: makefile,v 1.14 2001/07/24 16:27:41 ekohl Exp $
#
#
# $Id: makefile,v 1.15 2001/08/21 20:13:11 chorns Exp $
PATH_TO_TOP = ../../..
TARGET = parallel
TARGET_TYPE = driver
OBJECTS = $(TARGET).o $(TARGET).coff
TARGET_NAME = parallel
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
CFLAGS = -D__NTDRIVER__
all: $(TARGET).sys $(TARGET).sys.unstripped
.phony: all
clean:
- $(RM) *.o *.sym $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
$(TARGET).coff: $(PATH_TO_TOP)/include/reactos/buildno.h $(TARGET).rc
TARGET_OBJECTS = parallel.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,38 +1,15 @@
# $Id: makefile,v 1.4 2001/07/25 06:20:17 ekohl Exp $
#
#
# $Id: makefile,v 1.5 2001/08/21 20:13:11 chorns Exp $
# $Id: makefile,v 1.5 2001/08/21 20:13:11 chorns Exp $
PATH_TO_TOP = ../../..
TARGET = ramdrv
TARGET_TYPE = driver
OBJECTS = ramdrv.o
TARGET_NAME = ramdrv
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
TARGET_OBJECTS = ramdrv.o
CFLAGS = -D__NTDRIVER__ -I.
all: $(TARGET).sys
ramdrv.o: ramdrv.h
.phony: all
clean:
- $(RM) *.o *.sym *.coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
WITH_DEBUGGING=yes
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,31 +1,13 @@
#
#
#
# $Id: makefile,v 1.5 2001/08/21 20:13:11 chorns Exp $
PATH_TO_TOP = ../../..
OBJECTS= sdisk.o ../../../ntoskrnl/ntoskrnl.a
TARGET_TYPE = driver
all: sdisk.sys
TARGET_NAME = sdisk
.phony: all
TARGET_OBJECTS = sdisk.o
clean:
- $(RM) sdisk.o junk.tmp base.tmp temp.exp sdisk.sys
.phony: clean
sdisk.sys: $(OBJECTS)
$(CC) -specs=../../svc_specs -mdll -o junk.tmp -Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ -Wl,--defsym,_etext=etext \
-Wl,--base-file,base.tmp $(OBJECTS)
- $(RM) junk.tmp
$(DLLTOOL) --dllname sdisk.sys --base-file base.tmp \
--output-exp temp.exp
- $(RM) base.tmp
$(CC) --verbose -Wl,--image-base,0x10000 -Wl,-e,_DriverEntry@8 \
-specs=../../svc_specs -mdll -o sdisk.sys $(OBJECTS) -Wl,temp.exp
- $(RM) temp.exp
WIN32_LEAN_AND_MEAN = yes
include ../../../rules.mak
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,35 +1,13 @@
# $Id: makefile,v 1.14 2001/07/25 08:28:52 ekohl Exp $
#
#
# $Id: makefile,v 1.15 2001/08/21 20:13:11 chorns Exp $
PATH_TO_TOP = ../../..
TARGET = serial
TARGET_TYPE = driver
OBJECTS = $(TARGET).o $(TARGET).coff
TARGET_NAME = serial
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
CFLAGS = -D__NTDRIVER__
all: $(TARGET).sys $(TARGET).sys.unstripped
.phony: all
clean:
- $(RM) *.o *.sym $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
TARGET_OBJECTS = serial.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,35 +1,13 @@
#
#
#
# $Id: makefile,v 1.7 2001/08/21 20:13:12 chorns Exp $
PATH_TO_TOP = ../../..
TARGET = test
TARGET_TYPE = driver
OBJECTS = test.o
TARGET_NAME = test
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
CFLAGS =
all: $(TARGET).sys $(TARGET).sys.unstripped
.phony: all
clean:
- $(RM) *.o *.sym *.coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
TARGET_OBJECTS = test.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,88 +1,39 @@
# $Id: makefile,v 1.17 2001/07/26 16:52:07 ekohl Exp $
#
# Makefile for ReactOS vgaddi.dll
#
# $Id: makefile,v 1.18 2001/08/21 20:13:12 chorns Exp $
PATH_TO_TOP = ../../../..
TARGET = vgaddi
TARGET_BASE = 0x70000000
CFLAGS = -D__NTDRIVER__ -I.
MAIN_OBJECTS = main/enable.o
OTHER_OBJECTS = objects/screen.o objects/pointer.o objects/lineto.o objects/paint.o objects/bitblt.o \
vgavideo/vgavideo.o objects/transblt.o
RESOURCE_OBJECTS = $(TARGET).coff
TARGET_TYPE = gdi_driver
OBJECTS = $(MAIN_OBJECTS) $(OTHER_OBJECTS) $(RESOURCE_OBJECTS)
TARGET_NAME = vgaddi
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a \
$(PATH_TO_TOP)/subsys/win32k/win32k.a
MAIN_OBJECTS = \
main/enable.o
OTHER_OBJECTS = \
objects/screen.o \
objects/pointer.o \
objects/lineto.o \
objects/paint.o \
objects/bitblt.o \
objects/transblt.o
all: $(TARGET).dll $(TARGET).a
VGAVIDEO_OBJECTS = \
vgavideo/vgavideo.o
$(TARGET).a: $(OBJECTS)
$(AR) csr $(TARGET).a $(OBJECTS)
TARGET_OBJECTS = \
$(MAIN_OBJECTS) \
$(OTHER_OBJECTS) \
$(VGAVIDEO_OBJECTS)
$(TARGET).coff: $(TARGET).rc $(PATH_TO_TOP)/include/reactos/resource.h
$(TARGET).dll: $(OBJECTS) $(LIBS) $(TARGET).def
$(LD) -r $(OBJECTS) -o $(TARGET).o
$(DLLTOOL) \
--dllname $(TARGET).dll \
--def $(TARGET).def \
--kill-at \
--output-lib $(TARGET).a
$(CC) $(TARGET).o \
$(LIBS) \
-nostartfiles \
-nostdlib \
-mdll \
-o junk.tmp \
-Wl,--entry,_DrvEnableDriver \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
-Wl,--base-file,base.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGET).dll \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGET).edf
- $(RM) base.tmp
$(CC) $(TARGET).o \
$(LIBS) \
-nostartfiles \
-nostdlib \
-mdll \
-o $(TARGET).dll \
-Wl,--subsystem,native \
-Wl,--entry,_DrvEnableDriver \
-Wl,--image-base,0x70000000 \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGET).dll > $(TARGET).sym
CLEAN_FILES = *.o *.coff *.sym *.tmp *.dll main/*.o objects/*.o vgavideo/*.o *.a
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/dlls/$(TARGET).dll
$(FLOPPY_DIR)/dlls/$(TARGET).dll: $(TARGET).dll
$(CP) $(TARGET).dll $(FLOPPY_DIR)/dlls/$(TARGET).dll
dist: $(DIST_DIR)/dlls/$(TARGET).dll
$(DIST_DIR)/dlls/$(TARGET).dll: $(TARGET).dll
$(CP) $(TARGET).dll $(PATH_TO_TOP)/$(DIST_DIR)/dlls/$(TARGET).dll
TARGET_CLEAN = \
main/*.o \
objects/*.o \
vgavideo/*.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View file

@ -1,35 +1,18 @@
# $Id: makefile,v 1.8 2001/07/26 11:44:04 ekohl Exp $
#
#
# $Id: makefile,v 1.9 2001/08/21 20:13:12 chorns Exp $
PATH_TO_TOP = ../../../..
TARGET = vgamp
TARGET_TYPE = driver
CFLAGS = -D__NTDRIVER__
TARGET_NAME = vgamp
OBJECTS = vgamp.o initvga.o vgavideo.o $(TARGET).coff
TARGET_DDKLIBS = vidport.a
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a ../../vidport/vidport.a
all: $(TARGET).sys
.phony: all
clean:
- $(RM) *.o *.sym *.coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
TARGET_OBJECTS = \
initvga.o \
vgamp.o \
vgavideo.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,98 +1,15 @@
# $Id: makefile,v 1.14 2001/07/26 11:40:59 ekohl Exp $
#
#
# $Id: makefile,v 1.15 2001/08/21 20:13:12 chorns Exp $
PATH_TO_TOP = ../../..
TARGET = vidport
TARGET_TYPE = export_driver
OBJECTS = $(TARGET).o $(TARGET).coff
TARGET_NAME = vidport
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
TARGET_CFLAGS =
CFLAGS = -D__NTDRIVER__
all: $(TARGET).sys $(TARGET).sys.unstripped vidport.a
.phony: all
clean:
- $(RM) *.o *.a *.sym $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(TARGET).a: $(TARGET).def
$(DLLTOOL) \
--dllname $(TARGET).sys \
--def $(TARGET).def \
--kill-at \
--output-lib $(TARGET).a
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
$(CC) \
-nostartfiles -nostdlib -e _DriverEntry@8\
-mdll \
-o junk.tmp \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
-Wl,--base-file,base.tmp $^
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $@ \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGET).edf \
--kill-at
- $(RM) base.tmp
$(CC) \
--verbose \
-Wl,--subsystem,native \
-Wl,--image-base,0x10000 \
-Wl,-e,_DriverEntry@8 \
-Wl,temp.exp \
-nostartfiles -nostdlib -e _DriverEntry@8 \
-mdll \
-o $@.unstripped \
$^
- $(RM) temp.exp
- $(NM) --numeric-sort $@.unstripped > $@.sym
$(STRIP) --strip-debug $<
$(CC) \
-nostartfiles -nostdlib -e _DriverEntry@8 \
-mdll \
-o junk.tmp \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
-Wl,--base-file,base.tmp $^
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $@ \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGET).edf \
--kill-at
- $(RM) base.tmp
$(CC) \
--verbose \
-Wl,--subsystem,native \
-Wl,--image-base,0x10000 \
-Wl,-e,_DriverEntry@8 \
-Wl,temp.exp \
-nostartfiles -nostdlib -e _DriverEntry@8 \
-mdll \
-o $@ \
$^
- $(RM) temp.exp
TARGET_OBJECTS = vidport.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,61 +1,26 @@
# $Id: makefile,v 1.13 2001/07/24 16:29:25 ekohl Exp $
#
# Linux Ext2 IFS Driver
#
# $Id: makefile,v 1.14 2001/08/21 20:13:12 chorns Exp $
PATH_TO_TOP = ../../..
TARGETNAME=ext2fs
TARGET_TYPE = driver
OBJECTS = super.o blockdev.o inode.o file.o dir.o rw.o quota.o security.o \
attr.o ext2.coff
TARGET_NAME = ext2fs
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
TARGET_CFLAGS = -I./include -DDBG
CFLAGS = -D__NTDRIVER__ -g -Wall
all: $(TARGETNAME).sys
.phony: all
clean:
- $(RM) *.o ext2.coff junk.tmp base.tmp temp.exp $(TARGETNAME).sys
.phony: clean
ext2fs.sys: $(OBJECTS) $(LIBS)
$(CC) \
-nostartfiles \
-nostdlib \
--subsystem=native \
-mdll \
--dll \
-Wl,-e,_DriverEntry@8 \
-Wl,--base-file,base.tmp \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
-o junk.tmp \
$(OBJECTS) $(LIBS)
$(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGETNAME).sys \
--base-file base.tmp \
--output-exp temp.exp
$(RM) base.tmp
$(CC) \
-nostartfiles -nostdlib \
--subsystem=native \
-mdll \
--dll \
-Wl,--image-base,0x10000 \
-Wl,-e,_DriverEntry \
-Wl,temp.exp \
-o $(TARGETNAME).sys \
$(OBJECTS) $(LIBS)
$(RM) temp.exp
ext2.coff: $(PATH_TO_TOP)/include/reactos/buildno.h ext2.rc
TARGET_OBJECTS = \
attr.o \
blockdev.o \
dir.o \
file.o \
inode.o \
rw.o \
quota.o \
security.o \
super.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View file

@ -1,43 +1,22 @@
# $Id: Makefile,v 1.7 2001/07/24 16:30:36 ekohl Exp $
#
#
# $Id: Makefile,v 1.8 2001/08/21 20:13:12 chorns Exp $
PATH_TO_TOP = ../../..
TARGET = minixfs
TARGET_TYPE = driver
OBJECTS = $(TARGET).o minix.coff
TARGET_NAME = minixfs
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
TARGET_OBJECTS = \
bitops.o
block.o \
blockdev.o \
cache.o \
dir.o \
inode.o \
minixfs.o
mount.o \
rw.o
CFLAGS = -D__NTDRIVER__ -I. -g
all: $(TARGET).sys
.phony: all
clean:
- $(RM) *.o *.coff junk.tmp base.tmp temp.exp *.sym $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
MOBJECTS = block.o blockdev.o cache.o dir.o inode.o mount.o rw.o bitops.o
minixfs.o: $(MOBJECTS)
$(LD) -r -o minixfs.o $(MOBJECTS)
$(TARGET).sys: $(OBJECTS) minix.coff
minix.coff: $(PATH_TO_TOP)/include/reactos/buildno.h minix.rc
WITH_DEBUGGING=yes
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,38 +1,18 @@
# $Id: Makefile,v 1.6 2001/07/29 16:39:12 ekohl Exp $
#
# Mailslot File System
#
# $Id: Makefile,v 1.7 2001/08/21 20:13:12 chorns Exp $
PATH_TO_TOP = ../../..
TARGET = msfs
TARGET_TYPE = driver
OBJECTS = create.o finfo.o fsctrl.o msfs.o rw.o msfs.coff
TARGET_NAME = msfs
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
CFLAGS = -D__NTDRIVER__
all: $(TARGET).sys $(TARGET).sys.unstripped
.phony: all
clean:
- $(RM) *.o *.sym $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
msfs.coff: $(PATH_TO_TOP)/include/reactos/buildno.h msfs.rc
TARGET_OBJECTS = \
create.o \
finfo.o \
fsctrl.o \
msfs.o \
rw.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,38 +1,19 @@
# $Id: Makefile,v 1.11 2001/07/29 16:40:20 ekohl Exp $
#
# Named Pipes File System
#
PATH_TO_TOP=../../..
# $Id: Makefile,v 1.12 2001/08/21 20:13:13 chorns Exp $
TARGET = npfs
PATH_TO_TOP = ../../..
CFLAGS = -D__NTDRIVER__
TARGET_TYPE = driver
OBJECTS = create.o finfo.o fsctrl.o npfs.o rw.o volume.o npfs.coff
TARGET_NAME = npfs
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
all: $(TARGET).sys.unstripped $(TARGET).sys
.phony: all
clean:
- $(RM) *.o *.sym $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
npfs.coff: $(PATH_TO_TOP)/include/reactos/buildno.h npfs.rc
TARGET_OBJECTS = \
create.o \
finfo.o \
fsctrl.o \
npfs.o \
rw.o \
volume.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,20 +1,15 @@
#
#
#
OBJECTS = template.o
# $Id: makefile,v 1.6 2001/08/21 20:13:13 chorns Exp $
CFLAGS = -D__NTDRIVER__ -I../../../include
PATH_TO_TOP = ../../..
all: tfsd.o
TARGET_TYPE = driver
.phony: all
TARGET_NAME = template
clean:
- $(RM) template.o tfsd.o
TARGET_OBJECTS = $(TARGET_NAME).o
.phony: clean
include $(PATH_TO_TOP)/rules.mak
tfsd.o: template.o
$(LD) -r template.o -o tfsd.o
include $(TOOLS_PATH)/helper.mk
include ../../rules.mak
# EOF

View file

@ -1,112 +1,28 @@
# $Id: makefile,v 1.34 2001/07/24 16:32:16 ekohl Exp $
#
#
# $Id: makefile,v 1.35 2001/08/21 20:13:13 chorns Exp $
PATH_TO_TOP = ../../..
TARGET = vfatfs
TARGET_TYPE = driver
OBJECTS = blockdev.o cleanup.o close.o create.o dir.o direntry.o dirwr.o \
fat.o fcb.o finfo.o iface.o rw.o shutdown.o string.o volume.o \
$(TARGET).coff
TARGET_NAME = vfatfs
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
TARGET_OBJECTS = \
blockdev.o \
cleanup.o \
close.o \
create.o \
dir.o \
direntry.o \
dirwr.o \
fat.o \
fcb.o \
finfo.o \
iface.o \
rw.o \
shutdown.o \
string.o \
volume.o
CFLAGS = -D__NTDRIVER__ -g -Wall -Werror
all: $(TARGET).sys $(TARGET).sys.unstripped
.phony: all
clean:
- $(RM) *.o *.sym $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
#$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
$(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
$(LD) -r -o vfat.o $(OBJECTS)
$(CC) \
-nostartfiles \
-nostdlib \
--subsystem=native \
-mdll \
--dll \
-Wl,-e,_DriverEntry@8 \
-Wl,--base-file,base.tmp \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
vfat.o $(LIBS) \
-o junk.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGET).sys \
--base-file base.tmp \
--output-exp temp.exp \
--def vfatfs.def
- $(RM) base.tmp
$(CC) \
-nostartfiles -nostdlib \
--subsystem=native \
-mdll \
--dll \
-Wl,--image-base,0x10000 \
-Wl,-e,_DriverEntry@8 \
-Wl,temp.exp \
-o $(TARGET).sys.unstripped \
vfat.o $(LIBS)
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGET).sys.unstripped >$(TARGET).sym
$(TARGET).sys: $(OBJECTS) $(LIBS)
$(LD) -r -o vfat.o $(OBJECTS)
$(STRIP) --strip-debug vfat.o
$(CC) \
-nostartfiles \
-nostdlib \
--subsystem=native \
-mdll \
--dll \
-Wl,-e,_DriverEntry@8 \
-Wl,--base-file,base.tmp \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
vfat.o $(LIBS) \
-o junk.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGET).sys \
--base-file base.tmp \
--output-exp temp.exp \
--def vfatfs.def
- $(RM) base.tmp
$(CC) \
-nostartfiles -nostdlib \
--subsystem=native \
-mdll \
--dll \
-Wl,--image-base,0x10000 \
-Wl,-e,_DriverEntry@8 \
-Wl,temp.exp \
-o $(TARGET).sys \
vfat.o $(LIBS)
- $(RM) temp.exp
$(TARGET).coff: $(PATH_TO_TOP)/include/reactos/buildno.h vfatfs.rc
WITH_DEBUGGING=yes
WARNINGS_ARE_ERRORS = yes
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,38 +1,13 @@
# $Id: makefile,v 1.6 2001/07/24 18:37:46 ekohl Exp $
#
#
# $Id: makefile,v 1.7 2001/08/21 20:13:13 chorns Exp $
PATH_TO_TOP = ../../..
TARGET = keyboard
TARGET_TYPE = driver
OBJECTS = $(TARGET).o $(TARGET).coff
TARGET_NAME = keyboard
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
TARGET_OBJECTS = $(TARGET_NAME).o
CFLAGS = -D__NTDRIVER__ -O2 -I. -g
all: $(TARGET).sys $(TARGET).sys.unstripped
.phony: all
clean:
- $(RM) *.o *.sym $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
$(TARGET).coff: $(PATH_TO_TOP)/include/reactos/buildno.h $(TARGET).rc
WARNINGS_ARE_ERRORS = yes
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,37 +1,13 @@
# $Id: makefile,v 1.6 2001/07/24 18:38:04 ekohl Exp $
#
#
TARGET = mouclass
# $Id: makefile,v 1.7 2001/08/21 20:13:14 chorns Exp $
PATH_TO_TOP = ../../..
OBJECTS = $(TARGET).o $(TARGET).coff
TARGET_TYPE = driver
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
TARGET_NAME = mouclass
CFLAGS = -D__NTDRIVER__ -O2 -I.
all: $(TARGET).sys $(TARGET).sys.unstripped
.phony: all
clean:
- $(RM) *.o *.sym $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
$(TARGET).coff: $(PATH_TO_TOP)/include/reactos/buildno.h $(TARGET).rc
TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,37 +1,13 @@
# $Id: makefile,v 1.6 2001/07/24 18:38:40 ekohl Exp $
#
#
# $Id: makefile,v 1.7 2001/08/21 20:13:14 chorns Exp $
PATH_TO_TOP = ../../..
TARGET = psaux
TARGET_TYPE = driver
OBJECTS = $(TARGET).o controller.o mouse.o $(TARGET).coff
TARGET_NAME = psaux
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
CFLAGS = -D__NTDRIVER__ -O2 -I.
all: $(TARGET).sys $(TARGET).sys.unstripped
.phony: all
clean:
- $(RM) *.o *.sym $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
$(TARGET).coff: $(PATH_TO_TOP)/include/reactos/buildno.h $(TARGET).rc
TARGET_OBJECTS = $(TARGET_NAME).o controller.o mouse.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,37 +1,15 @@
# $Id: makefile,v 1.6 2001/07/24 18:39:02 ekohl Exp $
#
#
# $Id: makefile,v 1.7 2001/08/21 20:13:15 chorns Exp $
PATH_TO_TOP = ../../..
TARGET = sermouse
TARGET_TYPE = driver
OBJECTS = $(TARGET).o $(TARGET).coff
TARGET_NAME = sermouse
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
CFLAGS = -D__NTDRIVER__ -O2 -I.
all: $(TARGET).sys $(TARGET).sys.unstripped
.phony: all
clean:
- $(RM) *.o *.sym $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
$(TARGET).coff: $(PATH_TO_TOP)/include/reactos/buildno.h $(TARGET).rc
TARGET_OBJECTS = \
mouse.o
sermouse.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,81 +1,22 @@
# AFD.SYS - Ancillary Function Driver
# $Id: makefile,v 1.5 2001/08/21 20:13:15 chorns Exp $
PATH_TO_TOP = ../../..
TARGETNAME=afd
TARGET_TYPE = driver
CFLAGS = -D__NTDRIVER__ -I./include -DDBG
TARGET_NAME = afd
RESOURCE_OBJECT = $(TARGETNAME).coff
AFD_OBJECTS = afd/afd.o afd/dispatch.o afd/event.o afd/opnclose.o afd/rdwr.o \
afd/routines.o afd/tdi.o
TARGET_CFLAGS = -I./include -DDBG
all: $(TARGETNAME).sys
TARGET_OBJECTS = \
afd/afd.o \
afd/dispatch.o \
afd/event.o \
afd/opnclose.o \
afd/rdwr.o \
afd/routines.o \
afd/tdi.o
$(TARGETNAME).coff: $(TARGETNAME).rc ../../../include/reactos/resource.h
include $(PATH_TO_TOP)/rules.mak
OBJECTS = $(AFD_OBJECTS) $(RESOURCE_OBJECT) ../../../ntoskrnl/ntoskrnl.a
CLEAN_FILES = afd/*.o $(TARGETNAME).coff $ \
junk.tmp base.tmp temp.exp $(TARGETNAME).sys $(TARGETNAME).sym
$(TARGETNAME).sys: $(OBJECTS)
$(CC) \
-nostartfiles -nostdlib \
--subsystem=native \
-mdll \
--dll \
-Wl,-e,_DriverEntry@8 \
-Wl,--base-file,base.tmp \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
$(OBJECTS) \
-o junk.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGETNAME).sys \
--base-file base.tmp \
--output-exp temp.exp
- $(RM) base.tmp
$(CC) \
-nostartfiles -nostdlib \
--subsystem=native \
-mdll \
--dll \
-Wl,--image-base,0x10000 \
-Wl,-e,_DriverEntry@8 \
-Wl,temp.exp \
$(OBJECTS) \
-o $(TARGETNAME).sys
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGETNAME).sys > $(TARGETNAME).sym
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/drivers/$(TARGETNAME).sys
$(FLOPPY_DIR)/drivers/$(TARGETNAME).sys: $(TARGETNAME).sys
ifeq ($(DOSCLI),yes)
$(CP) $(TARGETNAME).sys $(FLOPPY_DIR)\drivers\$(TARGETNAME).sys
else
$(CP) $(TARGETNAME).sys $(FLOPPY_DIR)/drivers/$(TARGETNAME).sys
endif
dist: $(DIST_DIR)/drivers/$(TARGETNAME).sys
$(DIST_DIR)/drivers/$(TARGETNAME).sys: $(TARGETNAME).sys
ifeq ($(DOSCLI),yes)
$(CP) $(TARGETNAME).sys ..\..\..\$(DIST_DIR)\drivers\$(TARGETNAME).sys
else
$(CP) $(TARGETNAME).sys ../../../$(DIST_DIR)/drivers/$(TARGETNAME).sys
endif
#WITH_DEBUGGING = yes
#WIN32_LEAN_AND_MEAN = yes
#WARNINGS_ARE_ERRORS = yes
include ../../../rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,79 +1,19 @@
# $Id: Makefile,v 1.10 2001/07/15 21:19:01 rex Exp $
#
#
# $Id: Makefile,v 1.11 2001/08/21 20:13:15 chorns Exp $
PATH_TO_TOP = ../../../..
CFLAGS = -D__NTDRIVER__ -Iinclude
TARGET_TYPE = driver
TARGETNAME = ne2000
TARGET_NAME = ne2000
RESOURCE_OBJECT = $(TARGETNAME).coff
NE2000_OBJECTS = ne2000/main.o ne2000/8390.o $(RESOURCE_OBJECT)
IMPORT_LIBS = $(PATH_TO_TOP)/services/net/ndis/ndis.a \
$(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
TARGET_CFLAGS = -I./include
OBJECTS = $(NE2000_OBJECTS) $(IMPORT_LIBS)
TARGET_OBJECTS = \
ne2000/8390.o \
ne2000/main.o
all: $(TARGETNAME).sys
TARGET_DDKLIBS = ndis.a
$(TARGETNAME).coff: $(TARGETNAME).rc $(PATH_TO_TOP)/include/reactos/resource.h
CLEAN_FILES = \
ne2000/*.o $(TARGETNAME).coff \
$(TARGETNAME).a junk.tmp base.tmp temp.exp \
$(TARGETNAME).sys $(TARGETNAME).sym
$(TARGETNAME).sys: $(OBJECTS)
$(DLLTOOL) \
--dllname $(TARGETNAME).sys \
--def $(TARGETNAME).def \
--kill-at \
--output-lib $(TARGETNAME).a
$(CC) \
$(OBJECTS) \
-mdll \
-o junk.tmp \
-Wl,--image-base,0x10000 \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
-Wl,--base-file,base.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGETNAME).sys \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGETNAME).edf
- $(RM) base.tmp
$(CC) \
$(OBJECTS) \
-mdll \
-o $(TARGETNAME).sys \
-Wl,--image-base,0x10000 \
-Wl,-e,_DriverEntry@8 \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
-Wl,temp.exp
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGETNAME).sys > $(TARGETNAME).sym
clean:
- $(RM) $(CLEAN_FILES)
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGETNAME).sys
$(FLOPPY_DIR)/drivers/$(TARGETNAME).sys: $(TARGETNAME).sys
$(CP) $(TARGETNAME).sys $(FLOPPY_DIR)/drivers/$(TARGETNAME).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGETNAME).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGETNAME).sys: $(TARGETNAME).sys
$(CP) $(TARGETNAME).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGETNAME).sys
$(TARGETNAME).sys: $(OBJECTS)
WITH_DEBUGGING=yes
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,7 +0,0 @@
; Novell Eagle 2000 driver - ReactOS Operating System
LIBRARY NE2000.SYS
EXPORTS
; EOF

View file

@ -1,7 +0,0 @@
; Novell Eagle 2000 driver - ReactOS Operating System
LIBRARY NE2000.SYS
EXPORTS
; EOF

View file

@ -1,84 +1,31 @@
# NDIS.SYS - NDIS library
#
# $Id: Makefile,v 1.13 2001/08/21 20:13:15 chorns Exp $
PATH_TO_TOP = ../../..
TARGETNAME=ndis
TARGET_TYPE = export_driver
CFLAGS = -D__NTDRIVER__ -I./include -DNDIS_WRAPPER -DBINARY_COMPATIBLE=1 -DDBG
TARGET_NAME = ndis
RESOURCE_OBJECT = $(TARGETNAME).coff
NDIS_OBJECTS = ndis/main.o ndis/40gone.o ndis/50gone.o ndis/buffer.o ndis/cl.o \
ndis/cm.o ndis/co.o ndis/control.o ndis/hardware.o \
ndis/io.o ndis/memory.o ndis/miniport.o \
ndis/protocol.o ndis/string.o ndis/stubs.o ndis/time.o
TARGET_CFLAGS = -I./include -DNDIS_WRAPPER -DBINARY_COMPATIBLE=1
all: objects $(TARGETNAME).sys
TARGET_OBJECTS = \
ndis/main.o \
ndis/40gone.o \
ndis/50gone.o \
ndis/buffer.o \
ndis/cl.o \
ndis/cm.o \
ndis/co.o \
ndis/control.o \
ndis/hardware.o \
ndis/io.o \
ndis/memory.o \
ndis/miniport.o \
ndis/protocol.o \
ndis/string.o \
ndis/stubs.o \
ndis/time.o
objects:
mkdir objects
include $(PATH_TO_TOP)/rules.mak
$(TARGETNAME).coff: $(TARGETNAME).rc ../../../include/reactos/resource.h
OBJECTS = $(NDIS_OBJECTS) $(RESOURCE_OBJECT) ../../../ntoskrnl/ntoskrnl.a
CLEAN_FILES = *.o objects/*.o ndis/*.o $(TARGETNAME).coff $(TARGETNAME).o $(TARGETNAME).a \
junk.tmp base.tmp temp.exp $(TARGETNAME).sys $(TARGETNAME).sym
$(TARGETNAME).sys: $(OBJECTS)
$(DLLTOOL) \
--dllname $(TARGETNAME).sys \
--def $(TARGETNAME).def \
--kill-at \
--output-lib $(TARGETNAME).a
$(CC) \
-nostartfiles -nostdlib \
--subsystem=native \
-mdll \
--dll \
-Wl,-e,_DriverEntry@8 \
-Wl,--base-file,base.tmp \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
$(OBJECTS) \
-o junk.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGETNAME).sys \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGETNAME).edf
- $(RM) base.tmp
$(CC) \
-nostartfiles -nostdlib \
--subsystem=native \
-mdll \
--dll \
-Wl,--image-base,0x10000 \
-Wl,-e,_DriverEntry@8 \
-Wl,temp.exp \
$(OBJECTS) \
-o $(TARGETNAME).sys
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGETNAME).sys > $(TARGETNAME).sym
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/drivers/$(TARGETNAME).sys
$(FLOPPY_DIR)/drivers/$(TARGETNAME).sys: $(TARGETNAME).sys
$(CP) $(TARGETNAME).sys $(FLOPPY_DIR)/drivers/$(TARGETNAME).sys
dist: $(DIST_DIR)/drivers/$(TARGETNAME).sys
$(DIST_DIR)/drivers/$(TARGETNAME).sys: $(TARGETNAME).sys
$(CP) $(TARGETNAME).sys ../../../$(DIST_DIR)/drivers/$(TARGETNAME).sys
#WITH_DEBUGGING = yes
#WIN32_LEAN_AND_MEAN = yes
#WARNINGS_ARE_ERRORS = yes
include ../../../rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,12 +1,24 @@
# TCPIP.SYS - TCP/IP protocol driver
#
# $Id: makefile,v 1.11 2001/08/21 20:13:15 chorns Exp $
PATH_TO_TOP = ../../..
TARGETNAME=tcpip
TARGET_TYPE = export_driver
CFLAGS = -D__NTDRIVER__ -I./include -O2 -DDBG
TARGET_NAME = tcpip
TARGET_CFLAGS = -I./include -DDBG
TARGET_DDKLIBS = ndis.a
TARGET_CLEAN = \
tcpip/*.o \
datalink/*.o \
network/*.o \
transport/datagram/*.o \
transport/rawip/*.o \
transport/tcp/*.o \
transport/udp/*.o
RESOURCE_OBJECT = $(TARGETNAME).coff
TCPIP_OBJECTS = tcpip/main.o tcpip/address.o tcpip/checksum.o \
tcpip/dispatch.o tcpip/fileobjs.o tcpip/info.o \
tcpip/pool.o tcpip/routines.o
@ -19,101 +31,15 @@ RAWIP_OBJECTS = transport/rawip/rawip.o
TCP_OBJECTS = transport/tcp/tcp.o
UDP_OBJECTS = transport/udp/udp.o
all: objects $(TARGETNAME).sys
TARGET_OBJECTS = \
$(TCPIP_OBJECTS) \
$(DATALINK_OBJECTS) \
$(NETWORK_OBJECTS) \
$(DATAGRAM_OBJECTS) \
$(RAWIP_OBJECTS) \
$(TCP_OBJECTS) \
$(UDP_OBJECTS)
objects:
mkdir objects
include $(PATH_TO_TOP)/rules.mak
objects/tcpip.o: $(TCPIP_OBJECTS)
$(LD) -r -o objects/tcpip.o $(TCPIP_OBJECTS)
objects/datalink.o: $(DATALINK_OBJECTS)
$(LD) -r -o objects/datalink.o $(DATALINK_OBJECTS)
objects/network.o: $(NETWORK_OBJECTS)
$(LD) -r -o objects/network.o $(NETWORK_OBJECTS)
objects/datagram.o: $(DATAGRAM_OBJECTS)
$(LD) -r -o objects/datagram.o $(DATAGRAM_OBJECTS)
objects/rawip.o: $(RAWIP_OBJECTS)
$(LD) -r -o objects/rawip.o $(RAWIP_OBJECTS)
objects/tcp.o: $(TCP_OBJECTS)
$(LD) -r -o objects/tcp.o $(TCP_OBJECTS)
objects/udp.o: $(UDP_OBJECTS)
$(LD) -r -o objects/udp.o $(UDP_OBJECTS)
OBJECTS = objects/tcpip.o objects/datalink.o objects/network.o \
objects/datagram.o objects/rawip.o objects/tcp.o objects/udp.o \
$(RESOURCE_OBJECT) \
../../../ntoskrnl/ntoskrnl.a ../ndis/ndis.a
$(TARGETNAME).coff: $(TARGETNAME).rc ../../../include/reactos/resource.h
CLEAN_FILES = \
*.o objects/*.o tcpip/*.o datalink/*.o network/*.o \
transport/datagram/*.o transport/rawip/*.o \
transport/tcp/*.o transport/udp/*.o $(TARGETNAME).coff \
$(TARGETNAME).a junk.tmp base.tmp temp.exp \
$(TARGETNAME).sys $(TARGETNAME).sym
$(TARGETNAME).sys: $(OBJECTS)
$(DLLTOOL) \
--dllname $(TARGETNAME).sys \
--def $(TARGETNAME).def \
--kill-at \
--output-lib $(TARGETNAME).a
$(CC) \
-nostartfiles -nostdlib \
--subsystem=native \
-mdll \
--dll \
-Wl,-e,_DriverEntry@8 \
-Wl,--base-file,base.tmp \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
$(OBJECTS) \
-o junk.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGETNAME).sys \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGETNAME).edf
- $(RM) base.tmp
$(CC) \
-nostartfiles -nostdlib \
--subsystem=native \
-mdll \
--dll \
-Wl,--image-base,0x10000 \
-Wl,-e,_DriverEntry@8 \
-Wl,temp.exp \
$(OBJECTS) \
-o $(TARGETNAME).sys
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGETNAME).sys > $(TARGETNAME).sym
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/drivers/$(TARGETNAME).sys
$(FLOPPY_DIR)/drivers/$(TARGETNAME).sys: $(TARGETNAME).sys
$(CP) $(TARGETNAME).sys $(FLOPPY_DIR)/drivers/$(TARGETNAME).sys
dist: $(DIST_DIR)/drivers/$(TARGETNAME).sys
$(DIST_DIR)/drivers/$(TARGETNAME).sys: $(TARGETNAME).sys
$(CP) $(TARGETNAME).sys ../../../$(DIST_DIR)/drivers/$(TARGETNAME).sys
#WITH_DEBUGGING = yes
#WIN32_LEAN_AND_MEAN = yes
#WARNINGS_ARE_ERRORS = yes
include ../../../rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,96 +1,41 @@
# $Id: Makefile,v 1.12 2001/07/15 21:19:01 rex Exp $
#
# TDI.SYS build spec
#
PATH_TO_TOP = ../../../
# $Id: Makefile,v 1.13 2001/08/21 20:13:16 chorns Exp $
TARGETNAME=tdi
PATH_TO_TOP = ../../..
CFLAGS = -D__NTDRIVER__
TARGET_TYPE = export_driver
OBJECTS_CTE = cte/stubs.o cte/string.o
OBJECTS_TDI = tdi/stubs.o tdi/obsolete.o tdi/handler.o tdi/dereg.o
TARGET_NAME = tdi
OBJECTS_MISC = misc/main.o misc/$(TARGETNAME).coff
TARGET_OBJECTS = \
ne2000/8390.o \
ne2000/main.o
OBJECTS = $(OBJECTS_CTE) $(OBJECTS_TDI) $(OBJECTS_MISC)
OBJECTS_CTE = \
cte/string.o \
cte/stubs.o
all: $(TARGETNAME).sys
OBJECTS_MISC = \
misc/main.o
misc/$(TARGETNAME).coff: misc/$(TARGETNAME).rc ../../../include/reactos/resource.h
OBJECTS_TDI = \
tdi/dereg.o \
tdi/handler.o \
tdi/obsolete.o \
tdi/stubs.o
TARGET_OBJECTS = \
$(OBJECTS_CTE) \
$(OBJECTS_MISC) \
$(OBJECTS_TDI)
CLEAN_FILES = \
cte/*.o tdi/*.o misc/*.o misc/*.coff \
$(TARGETNAME).o $(TARGETNAME).a \
junk.tmp base.tmp temp.exp \
$(TARGETNAME).sys $(TARGETNAME).sym
TARGET_CLEAN = \
cte/*.o \
misc/*.o \
misc/*.coff \
tdi/*.o
$(TARGETNAME).sys: $(OBJECTS) misc/$(TARGETNAME).def
$(LD) -r $(OBJECTS) -o $(TARGETNAME).o
$(DLLTOOL) \
--dllname $(TARGETNAME).sys \
--def misc/$(TARGETNAME).def \
--output-lib $(TARGETNAME).a \
--kill-at
$(CC) \
--subsystem=native \
-mdll \
--dll \
-e _DllMain@8 \
-o junk.tmp \
-Wl,--image-base,0x0 \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
-Wl,--base-file,base.tmp $(TARGETNAME).o \
-specs=../../../specs \
../../../ntoskrnl/ntoskrnl.a
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGETNAME).sys \
--base-file base.tmp \
--output-exp temp.exp \
--def misc/$(TARGETNAME).edf \
--kill-at
- $(RM) base.tmp
$(CC) \
--subsystem=native \
-mdll \
--dll \
-e _DriverEntry@8 \
-o $(TARGETNAME).sys \
$(TARGETNAME).o \
../../../ntoskrnl/ntoskrnl.a \
-Wl,--image-base,0x0 \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
-Wl,temp.exp \
-specs=../../../specs
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGETNAME).sys > $(TARGETNAME).sym
TARGET_PATH = misc
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/drivers/$(TARGETNAME).sys
$(FLOPPY_DIR)/drivers/$(TARGETNAME).sys: $(TARGETNAME).sys
$(CP) $(TARGETNAME).sys $(FLOPPY_DIR)/drivers/$(TARGETNAME).sys
dist: $(DIST_DIR)/drivers/$(TARGETNAME).sys
$(DIST_DIR)/drivers/$(TARGETNAME).sys: $(TARGETNAME).sys
$(CP) $(TARGETNAME).sys ../../../$(DIST_DIR)/drivers/$(TARGETNAME).sys
#WITH_DEBUGGING = yes
#WIN32_LEAN_AND_MEAN = yes
#WARNINGS_ARE_ERRORS = yes
include ../../../rules.mak
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,72 +1,19 @@
# TDITEST.SYS - TDI test driver
#
# $Id: makefile,v 1.8 2001/08/21 20:13:16 chorns Exp $
PATH_TO_TOP = ../../..
TARGETNAME=tditest
TARGET_TYPE = driver
CFLAGS = -D__NTDRIVER__ -I./include
TARGET_NAME = tditest
RESOURCE_OBJECT = $(TARGETNAME).coff
TDITEST_OBJECTS = tditest/tditest.o
TARGET_CFLAGS = -I./include
all: objects $(TARGETNAME).sys
TARGET_OBJECTS = \
tditest/tditest.o
objects:
mkdir objects
$(TARGETNAME).coff: $(TARGETNAME).rc ../../../include/reactos/resource.h
OBJECTS = $(TDITEST_OBJECTS) $(RESOURCE_OBJECT) ../../../ntoskrnl/ntoskrnl.a
CLEAN_FILES = *.o objects/*.o tditest/*.o $(TARGETNAME).coff $(TARGETNAME).o \
junk.tmp base.tmp temp.exp $(TARGETNAME).sys $(TARGETNAME).sym
$(TARGETNAME).sys: $(OBJECTS)
$(CC) \
-nostartfiles -nostdlib \
--subsystem=native \
-mdll \
--dll \
-Wl,-e,_DriverEntry@8 \
-Wl,--base-file,base.tmp \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
$(OBJECTS) \
-o junk.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGETNAME).sys \
--base-file base.tmp \
--output-exp temp.exp
- $(RM) base.tmp
$(CC) \
-nostartfiles -nostdlib \
--subsystem=native \
-mdll \
--dll \
-Wl,--image-base,0x10000 \
-Wl,-e,_DriverEntry@8 \
-Wl,temp.exp \
$(OBJECTS) \
-o $(TARGETNAME).sys
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGETNAME).sys > $(TARGETNAME).sym
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/drivers/$(TARGETNAME).sys
$(FLOPPY_DIR)/drivers/$(TARGETNAME).sys: $(TARGETNAME).sys
$(CP) $(TARGETNAME).sys $(FLOPPY_DIR)/drivers/$(TARGETNAME).sys
dist: $(DIST_DIR)/drivers/$(TARGETNAME).sys
$(DIST_DIR)/drivers/$(TARGETNAME).sys: $(TARGETNAME).sys
$(CP) $(TARGETNAME).sys ../../../$(DIST_DIR)/drivers/$(TARGETNAME).sys
TARGET_CLEAN = \
tditest/*.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,73 +1,19 @@
# Makefile for ReactOS WinSock Helper DLL for TCP/IP
# $Id: makefile,v 1.7 2001/08/21 20:13:16 chorns Exp $
PATH_TO_TOP = ../../..
CFLAGS = -D__NTDRIVER__ -I./ -DUNICODE
TARGET_TYPE = dynlink
TARGETNAME=wshtcpip
TARGET_NAME = wshtcpip
MAIN_OBJECTS = $(TARGETNAME).o
TARGET_BASE = 0x777c0000
RESOURCE_OBJECT = $(TARGETNAME).coff
TARGET_CFLAGS = -DUNICODE
OBJECTS = $(MAIN_OBJECTS) $(RESOURCE_OBJECT)
TARGET_SDKLIBS = ntdll.a kernel32.a ws2_32.a
LIBS = ../../../lib/ntdll/ntdll.a \
../../../lib/kernel32/kernel32.a \
../../../lib/ws2_32/ws2_32.a
TARGET_OBJECTS = $(TARGET_NAME).o
CLEAN_FILES = $(TARGETNAME).o $(TARGETNAME).a junk.tmp base.tmp temp.exp \
$(TARGETNAME).dll $(TARGETNAME).sym $(TARGETNAME).coff
all: $(TARGETNAME).dll
$(TARGETNAME).coff: $(TARGETNAME).rc ../../../include/reactos/resource.h
$(TARGETNAME).dll: $(LIBS) $(OBJECTS) $(TARGETNAME).def
$(DLLTOOL) \
--dllname $(TARGETNAME).dll \
--def $(TARGETNAME).def \
--kill-at \
--output-lib $(TARGETNAME).a
$(CC) \
$(TARGETNAME).o \
$(LIBS) \
-mdll \
-o junk.tmp \
-Wl,--base-file,base.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGETNAME).dll \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGETNAME).edf
- $(RM) base.tmp
$(CC) \
$(OBJECTS) $(LIBS) \
-mdll \
-o $(TARGETNAME).dll \
-Wl,--image-base,0x777C0000 \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGETNAME).dll > $(TARGETNAME).sym
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/dlls/$(TARGETNAME).dll
$(FLOPPY_DIR)/dlls/$(TARGETNAME).dll: $(TARGETNAME).dll
$(CP) $(TARGETNAME).dll $(FLOPPY_DIR)/dlls/$(TARGETNAME).dll
dist: $(DIST_DIR)/dlls/$(TARGETNAME).dll
$(DIST_DIR)/dlls/$(TARGETNAME).dll: $(TARGETNAME).dll
$(CP) $(TARGETNAME).dll ../../../$(DIST_DIR)/dlls/$(TARGETNAME).dll
include ../../../rules.mak
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,101 +1,13 @@
# $Id: makefile,v 1.2 2001/07/26 12:35:52 ekohl Exp $
#
#
# $Id: makefile,v 1.3 2001/08/21 20:13:16 chorns Exp $
PATH_TO_TOP = ../../..
TARGET=class2
TARGET_TYPE = export_driver
OBJECTS = $(TARGET).o $(TARGET).coff
TARGET_NAME = class2
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
TARGET_OBJECTS = $(TARGET_NAME).o
CFLAGS = -D__NTDRIVER__ -I$(PATH_TO_TOP)/include
all: $(TARGET).sys $(TARGET).sys.unstripped $(TARGET).a
.phony: all
clean:
- $(RM) *.o $(TARGET).a $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(TARGET).a: $(TARGET).def
$(DLLTOOL) \
--dllname $(TARGET).sys \
--def $(TARGET).def \
--kill-at \
--output-lib $(TARGET).a
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
$(CC) \
-nostartfiles -nostdlib -e _DriverEntry@8\
-mdll \
-o junk.tmp \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
-Wl,--base-file,base.tmp $^
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $@ \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGET).edf \
--kill-at
- $(RM) base.tmp
$(CC) \
--verbose \
-Wl,--subsystem,native \
-Wl,--image-base,0x10000 \
-Wl,-e,_DriverEntry@8 \
-Wl,temp.exp \
-nostartfiles -nostdlib -e _DriverEntry@8 \
-mdll \
-o $@.unstripped \
$^
- $(RM) temp.exp
- $(NM) --numeric-sort $@.unstripped > $@.sym
$(STRIP) --strip-debug $<
$(CC) \
-nostartfiles -nostdlib -e _DriverEntry@8 \
-mdll \
-o junk.tmp \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
-Wl,--base-file,base.tmp $^
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $@ \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGET).edf \
--kill-at
- $(RM) base.tmp
$(CC) \
--verbose \
-Wl,--subsystem,native \
-Wl,--image-base,0x10000 \
-Wl,-e,_DriverEntry@8 \
-Wl,temp.exp \
-nostartfiles -nostdlib -e _DriverEntry@8 \
-mdll \
-o $@ \
$^
- $(RM) temp.exp
WARNINGS_ARE_ERRORS = yes
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,41 +1,17 @@
# $Id: makefile,v 1.1 2001/07/24 10:21:15 ekohl Exp $
#
# disk.sys makefile
#
# $Id: makefile,v 1.2 2001/08/21 20:13:16 chorns Exp $
PATH_TO_TOP = ../../..
TARGET=disk
TARGET_TYPE = driver
OBJECTS = $(TARGET).o $(TARGET).coff
TARGET_NAME = disk
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a ../class2/class2.a
TARGET_DDKLIBS = class2.a
CFLAGS = -D__NTDRIVER__ -I.
all: $(TARGET).sys.unstripped $(TARGET).sys
.phony: all
clean:
- $(RM) *.o *.sym $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
WITH_DEBUGGING=yes
WARNINGS_ARE_ERRORS = yes
TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak
#EOF
include $(TOOLS_PATH)/helper.mk
# EOF

View file

@ -1,101 +1,13 @@
# $Id: makefile,v 1.3 2001/07/26 12:36:33 ekohl Exp $
#
#
# $Id: makefile,v 1.4 2001/08/21 20:13:16 chorns Exp $
PATH_TO_TOP = ../../..
TARGET=scsiport
TARGET_TYPE = export_driver
OBJECTS = $(TARGET).o $(TARGET).coff
TARGET_NAME = scsiport
LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
TARGET_OBJECTS = $(TARGET_NAME).o
CFLAGS = -D__NTDRIVER__ -I$(PATH_TO_TOP)/include
all: $(TARGET).sys $(TARGET).sys.unstripped $(TARGET).a
.phony: all
clean:
- $(RM) *.o $(TARGET).a $(TARGET).coff junk.tmp base.tmp temp.exp $(TARGET).sys $(TARGET).sys.unstripped
.phony: clean
install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
$(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
$(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
$(TARGET).a: $(TARGET).def
$(DLLTOOL) \
--dllname $(TARGET).sys \
--def $(TARGET).def \
--kill-at \
--output-lib $(TARGET).a
$(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS) $(LIBS)
$(CC) \
-nostartfiles -nostdlib -e _DriverEntry@8\
-mdll \
-o junk.tmp \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
-Wl,--base-file,base.tmp $^
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $@ \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGET).edf \
--kill-at
- $(RM) base.tmp
$(CC) \
--verbose \
-Wl,--subsystem,native \
-Wl,--image-base,0x10000 \
-Wl,-e,_DriverEntry@8 \
-Wl,temp.exp \
-nostartfiles -nostdlib -e _DriverEntry@8 \
-mdll \
-o $@.unstripped \
$^
- $(RM) temp.exp
- $(NM) --numeric-sort $@.unstripped > $@.sym
$(STRIP) --strip-debug $<
$(CC) \
-nostartfiles -nostdlib -e _DriverEntry@8 \
-mdll \
-o junk.tmp \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
-Wl,--base-file,base.tmp $^
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $@ \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGET).edf \
--kill-at
- $(RM) base.tmp
$(CC) \
--verbose \
-Wl,--subsystem,native \
-Wl,--image-base,0x10000 \
-Wl,-e,_DriverEntry@8 \
-Wl,temp.exp \
-nostartfiles -nostdlib -e _DriverEntry@8 \
-mdll \
-o $@ \
$^
- $(RM) temp.exp
WARNINGS_ARE_ERRORS = yes
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -0,0 +1 @@
roscfg.h

View file

@ -1,4 +1,4 @@
/* $Id: halddk.h,v 1.9 2001/03/31 16:01:03 phreak Exp $
/* $Id: halddk.h,v 1.10 2001/08/21 20:13:05 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -465,7 +465,8 @@ HalGetInterruptVector (
VOID
STDCALL
HalInitializeProcessor (
ULONG ProcessorNumber
ULONG ProcessorNumber,
PVOID ProcessorStack
);
BOOLEAN
@ -623,9 +624,11 @@ typedef struct _KD_PORT_INFORMATION
} KD_PORT_INFORMATION, *PKD_PORT_INFORMATION;
#if defined(__HAL__) || defined(__NTOSKRNL__)
#if defined(__NTOSKRNL__)
extern ULONG KdComPortInUse __declspec(dllexport);
#else
#endif
#if defined(__HAL__)
extern ULONG KdComPortInUse __declspec(dllimport);
#endif

View file

@ -1,6 +1,6 @@
#ifndef __INCLUDE_DDK_KDFUNCS_H
#define __INCLUDE_DDK_KDFUNCS_H
/* $Id: kdfuncs.h,v 1.3 2000/03/04 21:58:49 ekohl Exp $ */
/* $Id: kdfuncs.h,v 1.4 2001/08/21 20:13:05 chorns Exp $ */
/* --- NTOSKRNL.EXE --- */
#if defined(__NTOSKRNL__)
@ -17,13 +17,6 @@ KdPollBreakIn (
VOID
);
/* --- HAL.DLL --- */
#if defined(__NTOSKRNL__)
extern ULONG KdComPortInUse __declspec(dllexport);
#else
extern ULONG KdComPortInUse __declspec(dllimport);
#endif
BOOLEAN
STDCALL
KdPortInitialize (

View file

@ -1,4 +1,4 @@
/* $Id: psfuncs.h,v 1.13 2001/04/21 12:38:28 ekohl Exp $
/* $Id: psfuncs.h,v 1.14 2001/08/21 20:13:05 chorns Exp $
*/
#ifndef _INCLUDE_DDK_PSFUNCS_H
#define _INCLUDE_DDK_PSFUNCS_H
@ -61,6 +61,8 @@ BOOLEAN STDCALL PsGetVersion (PULONG MajorVersion OPTIONAL,
PULONG BuildNumber OPTIONAL,
PUNICODE_STRING CSDVersion OPTIONAL);
VOID STDCALL PsDispatchThread(ULONG NewThreadStatus);
#endif
/* EOF */

View file

@ -1,16 +1,14 @@
# $Id: makefile,v 1.18 2001/07/15 21:18:54 rex Exp $
#
# Makefile for ReactOS advapi32.dll
#
# $Id: makefile,v 1.19 2001/08/21 20:13:05 chorns Exp $
PATH_TO_TOP = ../..
BASE_CFLAGS = -I../../include
TARGET_TYPE = dynlink
TARGETNAME=advapi32
DLLTARGET=$(TARGETNAME).dll
TARGET_NAME = advapi32
TARGET_SDKLIBS = ntdll.a kernel32.a
TARGET_BASE = 0x77dc0000
MISC_OBJECTS=\
misc/dllmain.o \
@ -35,84 +33,20 @@ TOKEN_OBJECTS=\
token/privilege.o \
token/token.o
RESOURCE_OBJECT=\
$(TARGETNAME).coff
TARGET_OBJECTS = \
$(MISC_OBJECTS) \
$(REGISTRY_OBJECTS) \
$(SECURITY_OBJECTS) \
$(SERVICE_OBJECTS) \
$(TOKEN_OBJECTS)
OBJECTS=\
$(MISC_OBJECTS) \
$(REGISTRY_OBJECTS) \
$(SECURITY_OBJECTS) \
$(SERVICE_OBJECTS) \
$(TOKEN_OBJECTS) \
$(RESOURCE_OBJECT)
TARGET_CLEAN = \
misc/*.o \
reg/*.o \
sec/*.o \
service/*.o \
token/*.o
CLEAN_FILES = misc/*.o reg/*.o sec/*.o service/*.o token/*.o \
$(TARGETNAME).o $(TARGETNAME).a junk.tmp base.tmp temp.exp \
$(TARGETNAME).dll $(TARGETNAME).sym $(TARGETNAME).coff
include $(PATH_TO_TOP)/rules.mak
all: $(DLLTARGET)
$(TARGETNAME).coff: $(TARGETNAME).rc ../../include/reactos/resource.h
$(TARGETNAME).a: $(OBJECTS)
$(LD) -r $(OBJECTS) -o $(TARGETNAME).a
$(TARGETNAME).dll: $(DLLMAIN) $(OBJECTS) $(TARGETNAME).def
$(LD) -r $(OBJECTS) -o $(TARGETNAME).o
$(DLLTOOL) \
--dllname $(TARGETNAME).dll \
--def $(TARGETNAME).def \
--kill-at \
--output-lib $(TARGETNAME).a
$(CC) \
$(TARGETNAME).o \
../ntdll/ntdll.a \
../kernel32/kernel32.a \
-nostartfiles \
-nostdlib \
-mdll \
-o junk.tmp \
-Wl,--entry=_DllMain@12\
-Wl,--base-file,base.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGETNAME).dll \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGETNAME).edf
- $(RM) base.tmp
$(CC) \
$(TARGETNAME).o \
../ntdll/ntdll.a \
../kernel32/kernel32.a \
-nostartfiles \
-nostdlib \
-mdll \
-o $(TARGETNAME).dll \
-Wl,--entry=_DllMain@12\
-Wl,--image-base,0x77dc0000 \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGETNAME).dll > $(TARGETNAME).sym
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/dlls/$(TARGETNAME).dll
$(FLOPPY_DIR)/dlls/$(TARGETNAME).dll: $(TARGETNAME).dll
$(CP) $(TARGETNAME).dll $(FLOPPY_DIR)/dlls/$(TARGETNAME).dll
dist: $(DIST_DIR)/dlls/$(TARGETNAME).dll
$(DIST_DIR)/dlls/$(TARGETNAME).dll: $(TARGETNAME).dll
$(CP) $(TARGETNAME).dll ../../$(DIST_DIR)/dlls/$(TARGETNAME).dll
include ../../rules.mak
include $(TOOLS_PATH)/helper.mk

View file

@ -1,16 +1,31 @@
# $Id: makefile,v 1.45 2001/07/15 21:18:54 rex Exp $
#
# ReactOS Operating System
#
# $Id: makefile,v 1.46 2001/08/21 20:13:05 chorns Exp $
PATH_TO_TOP = ../..
TARGET=crtdll
DLLTARGET=$(TARGET).dll
TARGET_TYPE = dynlink
TARGET_NAME = crtdll
TARGET_LFLAGS = -nostartfiles
TARGET_SDKLIBS = kernel32.a
TARGET_BASE = 0x77630000
TARGET_DEFONLY = yes
TARGET_OBJECTS = $(TARGET_NAME).o
TARGET_CLEAN = assert/*.o conio/*.o ctype/*.o direct/*.o dirent/*.o \
except/*.o float/*.o io/*.o libc/*.o locale/*.o malloc/*.o \
math/*.o mbstring/*.o misc/*.o process/*.o quad/*.o search/*.o \
setjmp/*.o stdio/*.o stdlib/*.o string/*.o sys_stat/*.o tchar/*.o \
time/*.o wchar/*.o signal/*.o
CFLAGS =
include $(PATH_TO_TOP)/rules.mak
all: $(DLLTARGET)
include $(TOOLS_PATH)/helper.mk
ASSERT_OBJECTS = assert/assert.o
@ -49,7 +64,7 @@ MBSTRING_OBJECTS = mbstring/mbsnicmp.o mbstring/mbsnset.o mbstring/mbsnextc.o mb
mbstring/ismbpun.o mbstring/mbslwr.o mbstring/mbsupr.o mbstring/mbstok.o
STRING_OBJECTS = string/memchr.o string/memcmp.o string/strcat.o \
string/strchr.o string/strcmp.o string/strcoll.o \
string/strchr.o string/strcmp.o string/strcoll.o \
string/strcpy.o string/strcspn.o string/memcpy.o \
string/strlen.o string/strncat.o string/strncmp.o \
string/strncpy.o string/strpbrk.o string/strrchr.o \
@ -124,8 +139,6 @@ FLOAT_OBJECTS = float/fpreset.o float/clearfp.o float/cntrlfp.o float/statfp.o f
SYS_STAT_OBJECTS = sys_stat/fstat.o sys_stat/stat.o sys_stat/futime.o sys_stat/ftime.o\
sys_stat/systime.o
MATH_OBJECTS = math/acos.o math/acosh.o math/asin.o math/asinh.o math/atan.o math/atan2.o\
math/atanh.o math/ceil.o math/cos.o math/cosh.o math/exp.o math/fabs.o\
math/floor.o math/fmod.o math/frexp.o math/huge_val.o math/hypot.o\
@ -134,78 +147,14 @@ MATH_OBJECTS = math/acos.o math/acosh.o math/asin.o math/asinh.o math/atan.o mat
math/tanh.o math/stubs.o math/j0_y0.o math/j1_y1.o math/jn_yn.o\
math/cabs.o math/ftol.o
RESOURCE_OBJECT = $(TARGET).coff
OBJECTS = $(MISC_OBJECTS) $(STDLIB_OBJECTS) $(IO_OBJECTS) \
$(FLOAT_OBJECTS) $(ASSERT_OBJECTS) $(PROCESS_OBJECTS) \
$(STDIO_OBJECTS) $(CTYPE_OBJECTS) $(MATH_OBJECTS) \
$(STRING_OBJECTS) $(TIME_OBJECTS) $(WCHAR_OBJECTS) \
$(SYS_STAT_OBJECTS) $(MALLOC_OBJECTS) $(MBSTRING_OBJECTS)\
$(SEARCH_OBJECTS) $(CONIO_OBJECTS) $(DIRECT_OBJECTS) \
$(SIGNAL_OBJECTS) $(SETJMP_OBJECTS) $(RESOURCE_OBJECT) \
$(LOCALE_OBJECTS) $(EXCEPT_OBJECTS) $(TCHAR_OBJECTS)
CLEAN_FILES = assert/*.o conio/*.o ctype/*.o direct/*.o dirent/*.o \
except/*.o float/*.o io/*.o libc/*.o locale/*.o malloc/*.o \
math/*.o mbstring/*.o misc/*.o process/*.o quad/*.o search/*.o \
setjmp/*.o stdio/*.o stdlib/*.o string/*.o sys_stat/*.o tchar/*.o \
time/*.o wchar/*.o $(TARGET).a $(TARGET).o $(TARGET).dll $(TARGET).sym \
$(TARGET).coff $(SIGNAL_OBJECTS)
$(TARGET).coff: $(TARGET).rc ../../include/reactos/resource.h
$(TARGET).a: $(OBJECTS)
$(LD) -r $(OBJECTS) -o $(TARGET).a
$(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
$(LD) -r $(OBJECTS) -o $(TARGET).o
$(DLLTOOL) \
--dllname $(TARGET).dll \
--def $(TARGET).def \
--output-lib $(TARGET).a
$(CC) \
-nostartfiles -nostdlib \
-mdll \
-o junk.tmp \
-Wl,--base-file,base.tmp \
-Wl,--entry=_DllMain@12 \
$(TARGET).o \
../kernel32/kernel32.a -lgcc
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGET).dll \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGET).def
- $(RM) base.tmp
$(CC) \
-nostartfiles -nostdlib \
-mdll \
-o $(TARGET).dll \
$(TARGET).o \
../kernel32/kernel32.a -lgcc \
-Wl,--image-base,0x77630000 \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp \
-Wl,--entry=_DllMain@12
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGET).dll > $(TARGET).sym
clean:
- $(RM) $(CLEAN_FILES)
.phony: clean
install: $(FLOPPY_DIR)/dlls/$(TARGET).dll
$(FLOPPY_DIR)/dlls/$(TARGET).dll: $(TARGET).dll
$(CP) $(TARGET).dll $(FLOPPY_DIR)/dlls/$(TARGET).dll
dist: $(DIST_DIR)/dlls/$(TARGET).dll
$(DIST_DIR)/dlls/$(TARGET).dll: $(TARGET).dll
$(CP) $(TARGET).dll ../../$(DIST_DIR)/dlls/$(TARGET).dll
include ../../rules.mak
$(SIGNAL_OBJECTS) $(SETJMP_OBJECTS) $(LOCALE_OBJECTS) \
$(EXCEPT_OBJECTS) $(TCHAR_OBJECTS)
$(TARGET_NAME).o: $(OBJECTS)
$(LD) -r $(OBJECTS) -o $(TARGET_NAME).o

View file

@ -1,86 +1,30 @@
# $Id: makefile,v 1.13 2001/07/15 21:18:54 rex Exp $
#
# Makefile for fmifs.dll
#
# $Id: makefile,v 1.14 2001/08/21 20:13:06 chorns Exp $
PATH_TO_TOP = ../..
TARGET=fmifs
DLLTARGET=$(TARGET).dll
TARGET_TYPE = dynlink
TARGET_NAME = fmifs
BASE_CFLAGS = -I../../include
TARGET_BASE = 0x76df0000
all: $(DLLTARGET)
TARGET_SDKLIBS = ntdll.a kernel32.a
IFS_OBJECTS = chkdsk.o compress.o diskcopy.o extend.o \
format.o init.o label.o media.o
TARGET_OBJECTS = \
chkdsk.o \
compress.o \
diskcopy.o \
dllmain.o \
extend.o \
format.o \
init.o \
label.o \
media.o
MISC_OBJECTS = dllmain.o $(TARGET).coff
include $(PATH_TO_TOP)/rules.mak
OBJECTS = $(IFS_OBJECTS) $(MISC_OBJECTS)
include $(TOOLS_PATH)/helper.mk
CLEAN_FILES = *.o *.a *.tmp *.dll *.sym *.coff
$(TARGET).coff: $(TARGET).rc ../../include/reactos/resource.h
$(TARGET).a: $(OBJECTS)
$(AR) csr $(TARGET).a $(OBJECTS)
$(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
$(LD) -r $(OBJECTS) -o $(TARGET).o
$(DLLTOOL) \
--dllname $(TARGET).dll \
--def $(TARGET).def \
--kill-at \
--output-lib $(TARGET).a
$(CC) \
$(TARGET).o \
../ntdll/ntdll.a \
../kernel32/kernel32.a \
-nostartfiles \
-nostdlib \
-mdll \
-o junk.tmp \
-Wl,--entry=_DllMain@12\
-Wl,--base-file,base.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGET).dll \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGET).edf
- $(RM) base.tmp
$(CC) \
$(TARGET).o \
../ntdll/ntdll.a \
../kernel32/kernel32.a \
-nostartfiles \
-nostdlib \
-mdll \
-o $(TARGET).dll \
-Wl,--entry=_DllMain@12\
-Wl,--image-base,0x76df0000 \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGET).dll > $(TARGET).sym
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/dlls/$(TARGET).dll
$(FLOPPY_DIR)/dlls/$(TARGET).dll: $(TARGET).dll
$(CP) $(TARGET).dll $(FLOPPY_DIR)/dlls/$(TARGET).dll
dist: $(DIST_DIR)/dlls/$(TARGET).dll
$(DIST_DIR)/dlls/$(TARGET).dll: $(TARGET).dll
$(CP) $(TARGET).dll ../../$(DIST_DIR)/dlls/$(TARGET).dll
include ../../rules.mak
TARGET_FILES = misc/*.o
# EOF

View file

@ -1,83 +1,32 @@
# $Id: makefile,v 1.18 2001/07/15 21:18:54 rex Exp $
#
# Makefile for ReactOS gdi32.dll
#
# $Id: makefile,v 1.19 2001/08/21 20:13:06 chorns Exp $
PATH_TO_TOP = ../..
TARGET=gdi32
TARGET_TYPE = dynlink
BASE_CFLAGS = -I../../include
TARGET_NAME = gdi32
DLLTARGET=$(TARGET).dll
TARGET_BASE = 0x77ed0000
TARGET_SDKLIBS = ntdll.a kernel32.a advapi32.a
all: $(DLLTARGET)
TARGET_OBJECTS = $(TARGET_NAME).o
TARGET_CLEAN = main/*.o misc/*.o objects/*.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
MAIN_OBJECTS = main/dllmain.o
MISC_OBJECTS = misc/stubs.o misc/stubsa.o misc/stubsw.o misc/win32k.o
RESOURCE_OBJECTS = $(TARGET).coff
OBJECTS_OBJECTS = objects/dc.o objects/line.o objects/pen.o objects/bitblt.o objects/text.o
OBJECTS = $(MAIN_OBJECTS) $(MISC_OBJECTS) $(RESOURCE_OBJECTS) $(OBJECTS_OBJECTS)
OBJECTS = $(MAIN_OBJECTS) $(MISC_OBJECTS) $(OBJECTS_OBJECTS)
$(TARGET).a: $(OBJECTS)
$(AR) csr $(TARGET).a $(OBJECTS)
$(TARGET).coff: $(TARGET).rc ../../include/reactos/resource.h
$(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
$(LD) -r $(OBJECTS) -o $(TARGET).o
$(DLLTOOL) \
--dllname $(TARGET).dll \
--def $(TARGET).def \
--kill-at \
--output-lib $(TARGET).a
$(CC) $(TARGET).o \
../kernel32/kernel32.a \
../ntdll/ntdll.a \
-specs=$(TARGET)_specs \
-mdll \
-o junk.tmp \
-Wl,--entry,_DllMain@12 \
-Wl,--base-file,base.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGET).dll \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGET).edf
- $(RM) base.tmp
$(CC) $(TARGET).o \
../kernel32/kernel32.a \
../ntdll/ntdll.a \
-specs=$(TARGET)_specs \
-mdll \
-o $(TARGET).dll \
-Wl,--entry,_DllMain@12 \
-Wl,--image-base,0x77ed0000 \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGET).dll > $(TARGET).sym
CLEAN_FILES = *.a *.o *.coff *.sym *.tmp *.dll main/*.o misc/*.o objects/*.o
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/dlls/$(TARGET).dll
$(FLOPPY_DIR)/dlls/$(TARGET).dll: $(TARGET).dll
$(CP) $(TARGET).dll $(FLOPPY_DIR)/dlls/$(TARGET).dll
dist: $(DIST_DIR)/dlls/$(TARGET).dll
$(DIST_DIR)/dlls/$(TARGET).dll: $(TARGET).dll
$(CP) $(TARGET).dll ../../$(DIST_DIR)/dlls/$(TARGET).dll
include ../../rules.mak
$(TARGET_NAME).o: $(OBJECTS)
$(LD) -r $(OBJECTS) -o $(TARGET_NAME).o
# EOF

View file

@ -1,18 +1,31 @@
# $Id: makefile,v 1.49 2001/08/02 20:25:16 phreak Exp $
#
# ReactOS Operating System
#
# $Id: makefile,v 1.50 2001/08/21 20:13:06 chorns Exp $
PATH_TO_TOP = ../..
TARGET = kernel32
TARGET_TYPE = dynlink
KERNEL32_BASE = 0x77f00000
TARGET_NAME = kernel32
CFLAGS := -DKERNEL32_BASE=$(KERNEL32_BASE) -g
TARGET_BASE = 0x77f00000
DLLTARGET=$(TARGET).dll
TARGET_CFLAGS = -DKERNEL32_BASE=$(TARGET_DLLBASE)
TARGET_LFLAGS = -nostartfiles
TARGET_SDKLIBS = ntdll.a
TARGET_GCCLIBS = gcc
TARGET_OBJECTS = $(TARGET_NAME).o
TARGET_CLEAN = except/*.o file/*.o mem/*.o misc/*.o nls/*.o \
process/*.o string/*.o synch/*.o thread/*.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
all: $(DLLTARGET)
SYNCH_OBJECTS = synch/critical.o synch/event.o synch/intrlck.o synch/mutex.o \
synch/sem.o synch/timer.o synch/wait.o
@ -67,80 +80,12 @@ STRING_OBJECTS = string/lstring.o
EXCEPT_OBJECTS = except/except.o
RESOURCE_OBJECT = $(TARGET).coff
OBJECTS = $(MISC_OBJECTS) $(FILE_OBJECTS) $(THREAD_OBJECTS) \
$(PROCESS_OBJECTS) $(STRING_OBJECTS) $(MEM_OBJECTS) \
$(SYNCH_OBJECTS) $(EXCEPT_OBJECTS) $(RESOURCE_OBJECT)
$(SYNCH_OBJECTS) $(EXCEPT_OBJECTS)
CLEAN_FILES = except/*.o file/*.o mem/*.o misc/*.o nls/*.o \
process/*.o string/*.o synch/*.o thread/*.o \
$(TARGET).o $(TARGET).a junk.tmp base.tmp temp.exp \
$(TARGET).dll $(TARGET).sym $(TARGET).coff
nls/ole2nls.o: nls/ole2nls.c
$(CC) $(CFLAGS) -I. nls/ole2nls.c
$(TARGET).coff: $(TARGET).rc ../../include/reactos/resource.h
$(TARGET).a: $(OBJECTS)
$(AR) csr $(TARGET).a $(OBJECTS)
$(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
$(LD) \
-r $(OBJECTS) \
-o $(TARGET).o
$(DLLTOOL) \
--dllname $(TARGET).dll \
--def $(TARGET).def \
--kill-at \
--output-lib $(TARGET).a
$(CC) \
-nostartfiles -nostdlib \
-mdll \
-o junk.tmp \
-Wl,--base-file,base.tmp \
$(TARGET).o \
../ntdll/ntdll.a -lgcc
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGET).dll \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGET).edf
- $(RM) base.tmp
$(CC) \
-nostartfiles -nostdlib \
-mdll \
-o $(TARGET).dll \
$(TARGET).o \
../ntdll/ntdll.a -lgcc \
-Wl,--image-base,$(KERNEL32_BASE) \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGET).dll > $(TARGET).sym
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/dlls/$(TARGET).dll
$(FLOPPY_DIR)/dlls/$(TARGET).dll: $(TARGET).dll
$(CP) $(TARGET).dll $(FLOPPY_DIR)/dlls/$(TARGET).dll
dist: $(DIST_DIR)/dlls/$(TARGET).dll
$(DIST_DIR)/dlls/$(TARGET).dll: $(TARGET).dll
$(CP) $(TARGET).dll ../../$(DIST_DIR)/dlls/$(TARGET).dll
WITH_DEBUGGING=yes
#WARNINGS_ARE_ERRORS = yes
include ../../rules.mak
$(TARGET_NAME).o: $(OBJECTS)
$(LD) -r $(OBJECTS) -o $(TARGET_NAME).o
%/TAGS:
etags -o $(@D)/TAGS $(@D)/\*.c

View file

@ -1,87 +1,34 @@
# Makefile for ReactOS Ancillary Function Driver DLL
# $Id: makefile,v 1.5 2001/08/21 20:13:06 chorns Exp $
PATH_TO_TOP = ../..
CFLAGS = -I./include -DUNICODE -DDBG
TARGET_TYPE = dynlink
TARGETNAME=msafd
TARGET_NAME = msafd
MISC_OBJECTS = misc/dllmain.o misc/event.o misc/helpers.o \
misc/sndrcv.o misc/stubs.o
TARGET_BASE = 0x777a0000
RESOURCE_OBJECT = $(TARGETNAME).coff
TARGET_SDKLIBS = ntdll.a kernel32.a
OBJECTS = $(MISC_OBJECTS) $(RESOURCE_OBJECT)
TARGET_CFLAGS = -I./include -DUNICODE -DDBG
LIBS = ../ntdll/ntdll.a \
../kernel32/kernel32.a
TARGET_OBJECTS = $(TARGET_NAME).o
CLEAN_FILES = misc/*.o \
$(TARGETNAME).o $(TARGETNAME).a junk.tmp base.tmp temp.exp \
$(TARGETNAME).dll $(TARGETNAME).sym $(TARGETNAME).coff
all: $(TARGETNAME).dll
$(TARGETNAME).coff: $(TARGETNAME).rc ../../include/reactos/resource.h
$(TARGETNAME).a: $(OBJECTS)
$(LD) -r $(OBJECTS) -o $(TARGETNAME).a
$(TARGETNAME).dll: $(LIBS) $(OBJECTS) $(TARGETNAME).def
$(LD) -r $(OBJECTS) -o $(TARGETNAME).o
$(DLLTOOL) \
--dllname $(TARGETNAME).dll \
--def $(TARGETNAME).def \
--kill-at \
--output-lib $(TARGETNAME).a
$(CC) \
$(TARGETNAME).o \
$(LIBS) \
-mdll \
-o junk.tmp \
-Wl,--base-file,base.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGETNAME).dll \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGETNAME).edf
- $(RM) base.tmp
$(CC) \
$(TARGETNAME).o \
$(LIBS) \
-mdll \
-o $(TARGETNAME).dll \
-Wl,--image-base,0x777A0000 \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGETNAME).dll > $(TARGETNAME).sym
TARGET_CLEAN = misc/*.o
clean:
- $(RM) $(CLEAN_FILES)
include $(PATH_TO_TOP)/rules.mak
.PHONY: clean
include $(TOOLS_PATH)/helper.mk
install: $(FLOPPY_DIR)/dlls/$(TARGETNAME).dll
$(FLOPPY_DIR)/dlls/$(TARGETNAME).dll: $(TARGETNAME).dll
ifeq ($(DOSCLI),yes)
$(CP) $(TARGETNAME).dll $(FLOPPY_DIR)\dlls\$(TARGETNAME).dll
else
$(CP) $(TARGETNAME).dll $(FLOPPY_DIR)/dlls/$(TARGETNAME).dll
endif
MISC_OBJECTS = \
misc/dllmain.o misc/event.o misc/helpers.o \
misc/sndrcv.o misc/stubs.o
dist: $(DIST_DIR)/dlls/$(TARGETNAME).dll
OBJECTS = $(MISC_OBJECTS)
$(DIST_DIR)/dlls/$(TARGETNAME).dll: $(TARGETNAME).dll
ifeq ($(DOSCLI),yes)
$(CP) $(TARGETNAME).dll ..\..\$(DIST_DIR)\dlls\$(TARGETNAME).dll
else
$(CP) $(TARGETNAME).dll ../../$(DIST_DIR)/dlls/$(TARGETNAME).dll
endif
include ../../rules.mak
$(TARGET_NAME).o: $(OBJECTS)
$(LD) -r $(OBJECTS) -o $(TARGET_NAME).o
# EOF

View file

@ -1,15 +1,35 @@
# $Id: Makefile,v 1.19 2001/07/18 09:23:02 ekohl Exp $
#
# ReactOS Operating System
#
# $Id: Makefile,v 1.20 2001/08/21 20:13:06 chorns Exp $
PATH_TO_TOP = ../..
TARGET_NAME=msvcrt
TARGET_DLL=$(TARGET_NAME).dll
TARGET_DEFONLY = yes
CFLAGS = -I../../include -D__MSVCRT__
TARGET_TYPE = dynlink
all: $(TARGET_DLL)
TARGET_NAME = msvcrt
TARGET_LFLAGS = -nostartfiles
TARGET_SDKLIBS = kernel32.a
TARGET_GCCLIBS = gcc
TARGET_BASE = 0x78000000
TARGET_CFLAGS = -D__MSVCRT__
TARGET_OBJECTS = $(TARGET_NAME).o
TARGET_CLEAN = \
conio/*.o ctype/*.o direct/*.o except/*.o float/*.o io/*.o \
locale/*.o math/*.o mbstring/*.o misc/*.o process/*.o search/*.o \
setjmp/*.o signal/*.o stdio/*.o stdlib/*.o string/*.o sys_stat/*.o \
time/*.o wstring/*.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
OBJECTS_CONIO = \
@ -435,69 +455,9 @@ OBJECTS = \
$(OBJECTS_STRING) \
$(OBJECTS_SYS_STAT) \
$(OBJECTS_TIME) \
$(OBJECTS_WSTRING) \
msvcrt.coff
$(OBJECTS_WSTRING)
CLEAN_FILES = conio/*.o ctype/*.o direct/*.o except/*.o float/*.o io/*.o \
locale/*.o math/*.o mbstring/*.o misc/*.o process/*.o search/*.o \
setjmp/*.o signal/*.o stdio/*.o stdlib/*.o string/*.o sys_stat/*.o \
time/*.o wstring/*.o $(TARGET_NAME).a $(TARGET_NAME).coff \
$(TARGET_NAME).o $(TARGET_NAME).dll $(TARGET_NAME).sym
$(TARGET_NAME).coff: $(TARGET_NAME).rc ../../include/reactos/resource.h
$(TARGET_NAME).a: $(OBJECTS)
$(LD) -r $(OBJECTS) -o $(TARGET_NAME).a
$(TARGET_NAME).dll: $(DLLMAIN) $(OBJECTS) $(TARGET_NAME).def
$(TARGET_NAME).o: $(OBJECTS)
$(LD) -r $(OBJECTS) -o $(TARGET_NAME).o
$(DLLTOOL) \
--dllname $(TARGET_NAME).dll \
--def $(TARGET_NAME).def \
--output-lib $(TARGET_NAME).a
$(CC) \
-nostartfiles -nostdlib \
-mdll \
-o junk.tmp \
-Wl,--base-file,base.tmp \
-Wl,--entry=_DllMain@12 \
$(TARGET_NAME).o \
../kernel32/kernel32.a -lgcc
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGET_NAME).dll \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGET_NAME).def
- $(RM) base.tmp
$(CC) \
-nostartfiles -nostdlib \
-mdll \
-o $(TARGET_NAME).dll \
$(TARGET_NAME).o \
../kernel32/kernel32.a -lgcc \
-Wl,--image-base,0x78000000 \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp \
-Wl,--entry=_DllMain@12
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGET_NAME).dll > $(TARGET_NAME).sym
clean:
- $(RM) $(CLEAN_FILES)
.phony: clean
install: $(FLOPPY_DIR)/dlls/$(TARGET_NAME).dll
$(FLOPPY_DIR)/dlls/$(TARGET_NAME).dll: $(TARGET_NAME).dll
$(CP) $(TARGET_NAME).dll $(FLOPPY_DIR)/dlls/$(TARGET_NAME).dll
dist: $(DIST_DIR)/dlls/$(TARGET_NAME).dll
$(DIST_DIR)/dlls/$(TARGET_NAME).dll: $(TARGET_NAME).dll
$(CP) $(TARGET_NAME).dll ../../$(DIST_DIR)/dlls/$(TARGET_NAME).dll
include ../../rules.mak
# EOF

View file

@ -1,19 +1,23 @@
# $Id: makefile,v 1.64 2001/08/02 20:25:17 phreak Exp $
#
# ReactOS Operating System
#
# $Id: makefile,v 1.65 2001/08/21 20:13:06 chorns Exp $
PATH_TO_TOP = ../..
TARGET = ntdll
TARGET_TYPE = dynlink
CFLAGS = -D__NTDLL__ -g
TARGET_NAME = ntdll
IMAGE_BASE = 0x77f60000
TARGET_CFLAGS = -D__NTDLL__
DLLTARGET=$(TARGET).dll
DLLMAIN=main/dllmain.o
TARGET_LFLAGS = -Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000
all: $(DLLTARGET)
TARGET_GCCLIBS = gcc
TARGET_BASE = 0x77f60000
TARGET_PATH = def
TARGET_ENTRY = _LdrInitializeThunk@16
CSR_OBJECTS = csr/lpc.o csr/capture.o csr/probe.o csr/thread.o
@ -26,7 +30,7 @@ RTL_OBJECTS = rtl/critical.o rtl/error.o rtl/heap.o rtl/largeint.o \
rtl/access.o rtl/apc.o rtl/callback.o rtl/luid.o rtl/misc.o \
rtl/registry.o rtl/exception.o rtl/intrlck.o rtl/resource.o \
rtl/handle.o rtl/atom.o rtl/message.o rtl/timezone.o \
rtl/propvar.o
rtl/propvar.o
STDIO_OBJECTS = stdio/sprintf.o stdio/swprintf.o
@ -46,75 +50,24 @@ STRING_OBJECTS = string/ctype.o string/memccpy.o string/memchr.o \
string/strpbrk.o string/strrchr.o string/strspn.o \
string/strstr.o string/strupr.o string/wstring.o
OBJECTS = napi.o ldr/startup.o $(DBG_OBJECTS) $(RTL_OBJECTS) \
$(STDIO_OBJECTS) $(STDLIB_OBJECTS) $(STRING_OBJECTS) \
stubs/stubs.o ldr/utils.o $(CSR_OBJECTS) $(TARGET).coff
TARGET_OBJECTS = \
napi.o \
ldr/startup.o \
$(DBG_OBJECTS) \
$(RTL_OBJECTS) \
$(STDIO_OBJECTS) \
$(STDLIB_OBJECTS) \
$(STRING_OBJECTS) \
stubs/stubs.o \
ldr/utils.o \
$(CSR_OBJECTS)
CLEAN_FILES = napi.o ldr/*.o rtl/*.o stdio/*.o stdlib/*.o string/*.o stubs/*.o csr/*.o dbg/*.o \
$(TARGET).a main/dllmain.o $(TARGET).o $(TARGET).dll junk.tmp \
base.tmp temp.exp $(TARGET).sym $(TARGET).coff
include $(PATH_TO_TOP)/rules.mak
$(TARGET).coff: $(TARGET).rc ../../include/reactos/resource.h
$(TARGET).a: $(OBJECTS)
$(AR) csr $(TARGET).a $(OBJECTS)
$(TARGET).dll: $(DLLMAIN) $(OBJECTS) def/ntdll.def def/ntdll.edf
$(LD) \
-r $(DLLMAIN) \
$(OBJECTS) \
-o $(TARGET).o
$(DLLTOOL) \
--dllname $(TARGET).dll \
--def def/$(TARGET).def \
--kill-at \
--output-lib $(TARGET).a
$(CC) \
-nostartfiles -nostdlib \
-mdll \
-o junk.tmp \
-Wl,--base-file,base.tmp \
$(TARGET).o -lgcc
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGET).dll \
--base-file base.tmp \
--output-exp temp.exp \
--def def/$(TARGET).edf
- $(RM) base.tmp
$(CC) \
-nostartfiles -nostdlib \
-mdll \
-o $(TARGET).dll \
$(TARGET).o -lgcc \
-Wl,--entry=_LdrInitializeThunk@16 \
-Wl,--image-base,$(IMAGE_BASE) \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGET).dll > $(TARGET).sym
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/dlls/$(TARGET).dll
$(FLOPPY_DIR)/dlls/$(TARGET).dll: $(TARGET).dll
$(CP) $(TARGET).dll $(FLOPPY_DIR)/dlls/$(TARGET).dll
dist: $(DIST_DIR)/dlls/$(TARGET).dll
$(DIST_DIR)/dlls/$(TARGET).dll: $(TARGET).dll
$(CP) $(TARGET).dll ../../$(DIST_DIR)/dlls/$(TARGET).dll
include ../../rules.mak
include $(TOOLS_PATH)/helper.mk
%/TAGS:
etags -o $(@D)/TAGS $(@D)/\*.c
etags: csr/TAGS dbg/TAGS ldr/TAGS main/TAGS rtl/TAGS stdio/TAGS stdlib/TAGS string/TAGS stubs/TAGS
etags -i csr/TAGS -i dbg/TAGS -i ldr/TAGS -i main/TAGS -i rtl/TAGS -i stdio/TAGS -i stdlib/TAGS -i string/TAGS -i stubs/TAGS
etags -i csr/TAGS -i dbg/TAGS -i ldr/TAGS -i main/TAGS -i rtl/TAGS -i stdio/TAGS -i stdlib/TAGS -i string/TAGS -i stubs/TAGS>>>>>>> 1.64

View file

@ -1,83 +1,33 @@
# $Id: makefile,v 1.4 2001/07/21 15:40:04 ea Exp $
# $Id: makefile,v 1.5 2001/08/21 20:13:07 chorns Exp $
#
# ReactOS 0.17
# Jurgen Van Gael [jurgen.vangael@student.kuleuven.ac.be]
#
# Makefile for ReactOS ole32.dll
#
PATH_TO_TOP = ../..
CFLAGS = -fno-rtti -I$(PATH_TO_TOP)/include/
TARGET_TYPE = dynlink
TARGETNAME=ole32
TARGET_NAME = ole32
DLLTARGET=$(TARGETNAME).dll
TARGET_BASE = 0x77a50000
TARGET_CFLAGS = -fno-rtti
OBJECTS=\
TARGET_SDKLIBS = kernel32.a
TARGET_OBJECTS = \
DllMain.o \
CoXxx.o \
Moniker.o \
Ole2.o \
OleAuto.o \
Misc.o \
Storage.o \
$(TARGETNAME).coff
CLEAN_FILES = *.o \
$(TARGETNAME).o $(TARGETNAME).a junk.tmp base.tmp temp.exp \
$(TARGETNAME).dll $(TARGETNAME).sym $(TARGETNAME).coff
all: $(DLLTARGET)
$(TARGETNAME).coff: $(TARGETNAME).rc $(PATH_TO_TOP)/include/reactos/resource.h
$(TARGETNAME).a: $(OBJECTS)
$(LD) -r $(OBJECTS) -o $(TARGETNAME).a
$(TARGETNAME).dll: $(DLLMAIN) $(OBJECTS) $(TARGETNAME).def
$(LD) -r $(OBJECTS) -o $(TARGETNAME).o
$(DLLTOOL) \
--dllname $(TARGETNAME).dll \
--def $(TARGETNAME).def \
--kill-at \
--output-lib $(TARGETNAME).a
$(CC) \
$(TARGETNAME).o \
../kernel32/kernel32.a \
-nostartfiles \
-nostdlib \
-mdll \
-o junk.tmp \
-Wl,--entry=_DllMain@12\
-Wl,--base-file,base.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGETNAME).dll \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGETNAME).def
- $(RM) base.tmp
$(CC) \
$(TARGETNAME).o \
../kernel32/kernel32.a \
-nostartfiles \
-nostdlib \
-mdll \
-o $(TARGETNAME).dll \
-Wl,--entry=_DllMain@12\
-Wl,--image-base,0x77A50000 \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGETNAME).dll > $(TARGETNAME).sym
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
Storage.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View file

@ -1,85 +1,21 @@
# $Id: makefile,v 1.2 2001/07/21 15:34:08 ea Exp $
#
# Makefile for ReactOS oleaut32.dll
#
# $Id: makefile,v 1.3 2001/08/21 20:13:07 chorns Exp $
PATH_TO_TOP = ../..
BASE_CFLAGS = -I../../include
TARGET_DEFONLY = yes
TARGETNAME=oleaut32
TARGET_TYPE = dynlink
IMAGE_BASE = 0x76260000
TARGET_NAME = oleaut32
DLLTARGET=$(TARGETNAME).dll
OBJECTS = dllmain.o stubs.o $(TARGETNAME).coff
CLEAN_FILES = $(OBJECTS) $(TARGETNAME).o $(TARGETNAME).a junk.tmp \
base.tmp temp.exp $(TARGETNAME).dll $(TARGETNAME).sym \
$(TARGETNAME).coff
TARGET_BASE = 0x76260000
all: $(DLLTARGET)
TARGET_SDKLIBS = ntdll.a kernel32.a
$(TARGETNAME).coff: $(TARGETNAME).rc $(PATH_TO_TOP)/include/reactos/resource.h
TARGET_OBJECTS = dllmain.o stubs.o
$(TARGETNAME).a: $(OBJECTS)
$(LD) -r $(OBJECTS) -o $(TARGETNAME).a
include $(PATH_TO_TOP)/rules.mak
$(TARGETNAME).dll: $(OBJECTS) $(TARGETNAME).def
$(LD) -r $(OBJECTS) -o $(TARGETNAME).o
$(DLLTOOL) \
--dllname $(TARGETNAME).dll \
--def $(TARGETNAME).def \
--kill-at \
--output-lib $(TARGETNAME).a
$(CC) \
$(TARGETNAME).o \
../ntdll/ntdll.a \
../kernel32/kernel32.a \
-nostartfiles \
-nostdlib \
-mdll \
-o junk.tmp \
-Wl,--entry=_DllMain@12\
-Wl,--base-file,base.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGETNAME).dll \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGETNAME).def
- $(RM) base.tmp
$(CC) \
$(TARGETNAME).o \
../ntdll/ntdll.a \
../kernel32/kernel32.a \
-nostartfiles \
-nostdlib \
-mdll \
-o $(TARGETNAME).dll \
-Wl,--entry=_DllMain@12\
-Wl,--image-base,$(IMAGE_BASE) \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGETNAME).dll > $(TARGETNAME).sym
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/dlls/$(TARGETNAME).dll
$(FLOPPY_DIR)/dlls/$(TARGETNAME).dll: $(TARGETNAME).dll
$(CP) $(TARGETNAME).dll $(FLOPPY_DIR)/dlls/$(TARGETNAME).dll
dist: $(DIST_DIR)/dlls/$(TARGETNAME).dll
$(DIST_DIR)/dlls/$(TARGETNAME).dll: $(TARGETNAME).dll
$(CP) $(TARGETNAME).dll ../../$(DIST_DIR)/dlls/$(TARGETNAME).dll
include ../../rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View file

@ -1,78 +1,22 @@
# $Id: Makefile,v 1.6 2001/07/15 21:18:55 rex Exp $
#
# ReactOS Operating System
#
# $Id: Makefile,v 1.7 2001/08/21 20:13:07 chorns Exp $
PATH_TO_TOP = ../..
CFLAGS = -Iinclude -D__SECUR32__ -DDBG -g -Wall -Werror
TARGET_TYPE = dynlink
TARGET = secur32
TARGET_NAME = secur32
SECUR32_BASE = 0x10000000
TARGET_BASE = 0x10000000
DLLTARGET=$(TARGET).dll
TARGET_SDKLIBS = ntdll.a
all: $(DLLTARGET)
TARGET_CFLAGS = -I./include -D__SECUR32__
OBJECTS = lsa.o dllmain.o $(TARGET).coff
CLEAN_FILES = $(OBJECTS) \
$(TARGET).o $(TARGET).a junk.tmp base.tmp temp.exp \
$(TARGET).dll $(TARGET).sym
$(TARGET).coff: $(TARGET).rc ../../include/reactos/resource.h
$(TARGET).a: $(OBJECTS)
$(AR) csr $(TARGET).a $(OBJECTS)
$(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
$(LD) \
-r $(OBJECTS) \
-o $(TARGET).o
$(DLLTOOL) \
--dllname $(TARGET).dll \
--def $(TARGET).def \
--kill-at \
--output-lib $(TARGET).a
$(CC) \
-mdll \
-o junk.tmp \
-Wl,--base-file,base.tmp \
$(TARGET).o \
../ntdll/ntdll.a
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGET).dll \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGET).edf
- $(RM) base.tmp
$(CC) \
-mdll \
-o $(TARGET).dll \
$(TARGET).o \
../ntdll/ntdll.a \
-Wl,--image-base,$(SECUR32_BASE) \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGET).dll > $(TARGET).sym
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/dlls/$(TARGET).dll
$(FLOPPY_DIR)/dlls/$(TARGET).dll: $(TARGET).dll
$(CP) $(TARGET).dll $(FLOPPY_DIR)/dlls/$(TARGET).dll
dist: $(DIST_DIR)/dlls/$(TARGET).dll
$(DIST_DIR)/dlls/$(TARGET).dll: $(TARGET).dll
$(CP) $(TARGET).dll ../../$(DIST_DIR)/dlls/$(TARGET).dll
TARGET_OBJECTS = lsa.o dllmain.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View file

@ -1,93 +1,33 @@
# $Id: makefile,v 1.4 2001/07/21 08:36:33 ea Exp $
#
# Makefile for ReactOS shell32.dll
#
# $Id: makefile,v 1.5 2001/08/21 20:13:07 chorns Exp $
PATH_TO_TOP = ../..
BASE_CFLAGS = -I../../include
TARGET_DEFONLY = yes
TARGETNAME=shell32
TARGET_TYPE = dynlink
IMAGE_BASE = 0x77260000
TARGET_NAME = shell32
DLLTARGET=$(TARGETNAME).dll
TARGET_BASE = 0x77260000
MISC_OBJECTS=\
misc/dllmain.o \
TARGET_SDKLIBS = ntdll.a kernel32.a
TARGET_OBJECTS = $(TARGET_NAME).o
TARGET_CLEAN = misc/*.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
MISC_OBJECTS = \
misc/dllmain.o \
misc/stubs.o
OBJECTS=\
$(MISC_OBJECTS) \
$(TARGETNAME).coff
OBJECTS = \
$(MISC_OBJECTS)
CLEAN_FILES = misc/*.o \
$(TARGETNAME).o $(TARGETNAME).a junk.tmp base.tmp temp.exp \
$(TARGETNAME).dll $(TARGETNAME).sym $(TARGETNAME).coff
all: $(DLLTARGET)
$(TARGETNAME).coff: $(TARGETNAME).rc $(PATH_TO_TOP)/include/reactos/resource.h
$(TARGETNAME).a: $(OBJECTS)
$(LD) -r $(OBJECTS) -o $(TARGETNAME).a
$(TARGETNAME).dll: $(DLLMAIN) $(OBJECTS) $(TARGETNAME).def
$(LD) -r $(OBJECTS) -o $(TARGETNAME).o
$(DLLTOOL) \
--dllname $(TARGETNAME).dll \
--def $(TARGETNAME).def \
--kill-at \
--output-lib $(TARGETNAME).a
$(CC) \
$(TARGETNAME).o \
../ntdll/ntdll.a \
../kernel32/kernel32.a \
-nostartfiles \
-nostdlib \
-mdll \
-o junk.tmp \
-Wl,--entry=_DllMain@12\
-Wl,--base-file,base.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGETNAME).dll \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGETNAME).def
- $(RM) base.tmp
$(CC) \
$(TARGETNAME).o \
../ntdll/ntdll.a \
../kernel32/kernel32.a \
-nostartfiles \
-nostdlib \
-mdll \
-o $(TARGETNAME).dll \
-Wl,--entry=_DllMain@12\
-Wl,--image-base,$(IMAGE_BASE) \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGETNAME).dll > $(TARGETNAME).sym
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/dlls/$(TARGETNAME).dll
$(FLOPPY_DIR)/dlls/$(TARGETNAME).dll: $(TARGETNAME).dll
$(CP) $(TARGETNAME).dll $(FLOPPY_DIR)/dlls/$(TARGETNAME).dll
dist: $(DIST_DIR)/dlls/$(TARGETNAME).dll
$(DIST_DIR)/dlls/$(TARGETNAME).dll: $(TARGETNAME).dll
$(CP) $(TARGETNAME).dll ../../$(DIST_DIR)/dlls/$(TARGETNAME).dll
include ../../rules.mak
$(TARGET_NAME).o: $(OBJECTS)
$(LD) -r $(OBJECTS) -o $(TARGET_NAME).o
# EOF

View file

@ -1,14 +1,24 @@
# $Id: makefile_rex,v 1.19 2001/07/15 21:18:56 rex Exp $
#
# ReactOS Operating System
#
# Makefile for user32.dll
#
# $Id: makefile_rex,v 1.20 2001/08/21 20:13:07 chorns Exp $
PATH_TO_TOP = ../..
CFLAGS = -I./include -DUNICODE -DDBG
TARGET_TYPE = dynlink
TARGET=user32
TARGET_NAME = user32
TARGET_BASE = 0x77e70000
TARGET_SDKLIBS = ntdll.a kernel32.a gdi32.a
TARGET_CFLAGS = -I./include -DUNICODE -DDBG
TARGET_OBJECTS = $(TARGET_NAME).o
TARGET_CLEAN = misc/*.o windows/*.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
MISC_OBJECTS = \
misc/desktop.o \
@ -24,74 +34,11 @@ WINDOWS_OBJECTS = \
windows/message.o \
windows/window.o
RESOURCE_OBJECT = $(TARGET).coff
OBJECTS = \
$(MISC_OBJECTS) \
$(WINDOWS_OBJECTS)
OBJECTS = $(MISC_OBJECTS) $(WINDOWS_OBJECTS) \
$(RESOURCE_OBJECT)
LIBS = ../ntdll/ntdll.a \
../kernel32/kernel32.a \
../gdi32/gdi32.a
CLEAN_FILES = misc/*.o windows/*.o internal/*.o controls/*.o graphics/*.o resources/*.o \
$(TARGET).o $(TARGET).a junk.tmp base.tmp temp.exp $(TARGET).dll $(TARGET).sym
all: $(TARGET).dll
$(TARGET).coff: $(TARGET).rc ../../include/reactos/resource.h
$(TARGET).a: $(OBJECTS)
$(LD) -r $(OBJECTS) -o $(TARGETNAME).a
$(TARGET).dll: $(LIBS) $(OBJECTS) $(TARGET).def
$(LD) -r $(OBJECTS) -o $(TARGET).o
$(DLLTOOL) \
--dllname $(TARGET).dll \
--def $(TARGET).def \
--output-lib $(TARGET).a \
--kill-at
$(CC) $(TARGET).o \
$(LIBS) \
-e _DllMain@12 \
-specs=$(TARGET)_specs \
-mdll \
-o junk.tmp \
-Wl,--base-file,base.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGET).dll \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGET).edf
- $(RM) base.tmp
$(CC) $(TARGET).o \
$(LIBS) \
-o $(TARGET).dll \
-specs=$(TARGET)_specs \
-mdll \
-e _DllMain@12 \
-Wl,--image-base,0x77e70000 \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGET).dll > $(TARGET).sym
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/dlls/$(TARGET).dll
$(FLOPPY_DIR)/dlls/$(TARGET).dll: $(TARGET).dll
$(CP) $(TARGET).dll $(FLOPPY_DIR)/dlls/$(TARGET).dll
dist: $(DIST_DIR)/dlls/$(TARGET).dll
$(DIST_DIR)/dlls/$(TARGET).dll: $(TARGET).dll
$(CP) $(TARGET).dll ../../$(DIST_DIR)/dlls/$(TARGET).dll
include ../../rules.mak
$(TARGET_NAME).o: $(OBJECTS)
$(LD) -r $(OBJECTS) -o $(TARGET_NAME).o
# EOF

View file

@ -1,78 +0,0 @@
*asm:
*asm_final:
*cpp:
-remap %(cpp_cpu) %{posix:-D_POSIX_SOURCE}
*cc1:
%(cc1_spec)
*cc1plus:
*endfile:
*link:
%{mwindows:--subsystem windows} %{mdll:--dll -e _DllMainCRTStartup@12}
*lib:
*libgcc:
-lgcc
*startfile:
*switches_need_spaces:
*signed_char:
%{funsigned-char:-D__CHAR_UNSIGNED__}
*predefines:
-Di386 -D_WIN32 -DWIN32 -D__WIN32__ -D__MINGW32__ -DWINNT -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D_stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -Asystem(winnt) -Acpu(i386) -Amachine(i386)
*cross_compile:
1
*version:
egcs-2.91.57
*multilib:
. ;
*multilib_defaults:
*multilib_extra:
*multilib_matches:
*linker:
collect2
*cpp_486:
%{!ansi:-Di486} -D__i486 -D__i486__
*cpp_586:
%{!ansi:-Di586 -Dpentium} -D__i586 -D__i586__ -D__pentium -D__pentium__
*cpp_686:
%{!ansi:-Di686 -Dpentiumpro} -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__
*cpp_cpu_default:
%(cpp_586)
*cpp_cpu:
-Acpu(i386) -Amachine(i386) %{!ansi:-Di386} -D__i386 -D__i386__ %{mcpu=i486:%(cpp_486)} %{m486:%(cpp_486)} %{mpentium:%(cpp_586)} %{mcpu=pentium:%(cpp_586)} %{mpentiumpro:%(cpp_686)} %{mcpu=pentiumpro:%(cpp_686)} %{!mcpu*:%{!m486:%{!mpentium*:%(cpp_cpu_default)}}}
*cc1_cpu:
%{!mcpu*: %{m386:-mcpu=i386 -march=i386} %{mno-486:-mcpu=i386 -march=i386} %{m486:-mcpu=i486 -march=i486} %{mno-386:-mcpu=i486 -march=i486} %{mno-pentium:-mcpu=i486 -march=i486} %{mpentium:-mcpu=pentium} %{mno-pentiumpro:-mcpu=pentium} %{mpentiumpro:-mcpu=pentiumpro}}

View file

@ -1,79 +1,21 @@
# $Id: makefile,v 1.7 2001/07/15 21:18:56 rex Exp $
#
# Makefile for ReactOS version.dll
#
# $Id: makefile,v 1.8 2001/08/21 20:13:08 chorns Exp $
PATH_TO_TOP = ../..
TARGET=version
TARGET_TYPE = dynlink
BASE_CFLAGS = -I../../include
TARGET_NAME = version
DLLTARGET=$(TARGET).dll
TARGET_BASE = 0x77a90000
all: $(DLLTARGET)
TARGET_SDKLIBS = kernel32.a
MISC_OBJECTS = misc/libmain.o misc/stubs.o
TARGET_OBJECTS = misc/libmain.o misc/stubs.o
RESOURCE_OBJECTS = $(TARGET).coff
TARGET_CLEAN = misc/*.o
OBJECTS = $(MISC_OBJECTS) $(RESOURCE_OBJECTS)
include $(PATH_TO_TOP)/rules.mak
$(TARGET).a: $(OBJECTS)
$(AR) csr $(TARGET).a $(OBJECTS)
$(TARGET).coff: $(TARGET).rc ../../include/reactos/resource.h
$(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
$(LD) -r $(OBJECTS) -o $(TARGET).o
$(DLLTOOL) \
--dllname $(TARGET).dll \
--def $(TARGET).def \
--kill-at \
--output-lib $(TARGET).a
$(CC) $(TARGET).o \
../kernel32/kernel32.a \
-specs=$(TARGET)_specs \
-mdll \
-o junk.tmp \
-Wl,--entry,_DllMain@12 \
-Wl,--base-file,base.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGET).dll \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGET).edf
- $(RM) base.tmp
$(CC) $(TARGET).o \
../kernel32/kernel32.a \
-specs=$(TARGET)_specs \
-mdll \
-o $(TARGET).dll \
-Wl,--entry,_DllMain@12 \
-Wl,--image-base,0x77a90000 \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGET).dll > $(TARGET).sym
CLEAN_FILES = *.o *.a *.coff *.sym *.tmp *.dll main/*.o misc/*.o
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/dlls/$(TARGET).dll
$(FLOPPY_DIR)/dlls/$(TARGET).dll: $(TARGET).dll
$(CP) $(TARGET).dll $(FLOPPY_DIR)/dlls/$(TARGET).dll
dist: $(DIST_DIR)/dlls/$(TARGET).dll
$(DIST_DIR)/dlls/$(TARGET).dll: $(TARGET).dll
$(CP) $(TARGET).dll ../../$(DIST_DIR)/dlls/$(TARGET).dll
include ../../rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View file

@ -1,81 +1,26 @@
# Makefile for ReactOS WinSock 2 DLL
# $Id: makefile,v 1.7 2001/08/21 20:13:08 chorns Exp $
PATH_TO_TOP = ../..
CFLAGS = -Iinclude -DUNICODE -DDBG -DLE
TARGET_TYPE = dynlink
TARGETNAME=ws2_32
TARGET_NAME = ws2_32
MISC_OBJECTS = misc/bsd.o misc/catalog.o misc/dllmain.o \
misc/event.o misc/handle.o misc/ns.o \
misc/sndrcv.o misc/stubs.o misc/upcall.o
TARGET_BASE = 0x77780000
RESOURCE_OBJECT = $(TARGETNAME).coff
TARGET_CFLAGS = -I./include -DUNICODE -DLE -DDBG
OBJECTS = $(MISC_OBJECTS) $(RESOURCE_OBJECT)
TARGET_SDKLIBS = ntdll.a kernel32.a advapi32.a
LIBS = ../ntdll/ntdll.a \
../kernel32/kernel32.a \
../advapi32/advapi32.a
TARGET_OBJECTS = \
misc/bsd.o misc/catalog.o misc/dllmain.o \
misc/event.o misc/handle.o misc/ns.o \
misc/sndrcv.o misc/stubs.o misc/upcall.o
CLEAN_FILES = misc/*.o \
$(TARGETNAME).o $(TARGETNAME).a junk.tmp base.tmp temp.exp \
$(TARGETNAME).dll $(TARGETNAME).sym $(TARGETNAME).coff
include $(PATH_TO_TOP)/rules.mak
all: $(TARGETNAME).dll
include $(TOOLS_PATH)/helper.mk
$(TARGETNAME).coff: $(TARGETNAME).rc ../../include/reactos/resource.h
$(TARGETNAME).a: $(OBJECTS)
$(LD) -r $(OBJECTS) -o $(TARGETNAME).a
$(TARGETNAME).dll: $(LIBS) $(OBJECTS) $(TARGETNAME).def
$(LD) -r $(OBJECTS) -o $(TARGETNAME).o
$(DLLTOOL) \
--dllname $(TARGETNAME).dll \
--def $(TARGETNAME).def \
--kill-at \
--output-lib $(TARGETNAME).a
$(CC) \
$(TARGETNAME).o \
$(LIBS) \
-mdll \
-o junk.tmp \
-Wl,--base-file,base.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGETNAME).dll \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGETNAME).edf
- $(RM) base.tmp
$(CC) \
$(TARGETNAME).o \
$(LIBS) \
-mdll \
-o $(TARGETNAME).dll \
-Wl,--image-base,0x77780000 \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGETNAME).dll > $(TARGETNAME).sym
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/dlls/$(TARGETNAME).dll
$(FLOPPY_DIR)/dlls/$(TARGETNAME).dll: $(TARGETNAME).dll
$(CP) $(TARGETNAME).dll $(FLOPPY_DIR)/dlls/$(TARGETNAME).dll
dist: $(DIST_DIR)/dlls/$(TARGETNAME).dll
$(DIST_DIR)/dlls/$(TARGETNAME).dll: $(TARGETNAME).dll
$(CP) $(TARGETNAME).dll ../../$(DIST_DIR)/dlls/$(TARGETNAME).dll
include ../../rules.mak
TARGET_CLEAN = misc/*.o
# EOF

View file

@ -1,33 +1,31 @@
# $Id: makefile,v 1.7 2000/11/20 19:59:10 ekohl Exp $
#
# loadros makefile
#
# $Id: makefile,v 1.8 2001/08/21 20:13:08 chorns Exp $
PATH_TO_TOP = ../..
include $(PATH_TO_TOP)/rules.mak
all: loadros.com
loadros.com: loadros.asm
$(NASM_CMD) -fbin loadros.asm -o loadros.com
$(NASM_CMD) -fbin -o loadros.com loadros.asm
clean:
- $(RM) loadros.com
.PHONY: clean
install: $(FLOPPY_DIR)/loadros.com
install: $(INSTALL_DIR)/loadros.com
$(FLOPPY_DIR)/loadros.com: loadros.com
$(CP) loadros.com $(FLOPPY_DIR)/loadros.com
$(INSTALL_DIR)/loadros.com: loadros.com
$(CP) loadros.com $(INSTALL_DIR)/loadros.com
.PHONY: install
dist: ../../$(DIST_DIR)/loadros.com
dist: $(DIST_DIR)/loadros.com
../../$(DIST_DIR)/loadros.com: loadros.com
$(CP) loadros.com ../../$(DIST_DIR)/loadros.com
$(DIST_DIR)/loadros.com: loadros.com
$(CP) loadros.com $(DIST_DIR)/loadros.com
.PHONY: dist
include ../../rules.mak
#EOF
# EOF

View file

@ -3,9 +3,4 @@ junk.tmp
ntoskrnl.coff
objects
temp.exp
depends
depends.exe
mkconfig
mkconfig.exe
ntoskrnl.dbg
config

View file

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.49 2001/07/21 20:16:09 ea Exp $
# $Id: Makefile,v 1.50 2001/08/21 20:13:08 chorns Exp $
#
# ReactOS Operating System
#
@ -9,19 +9,14 @@
PATH_TO_TOP := ..
#
# Include details of the kernel configuration
# Include details of the host OS configuration
#
include $(PATH_TO_TOP)/config
include config
#
#
#
CONFIG :=
ifeq ($(DBG), 1)
CFLAGS_DBG := -g
CONFIG += DBG
LINKER_SCRIPT := ntoskrnl.lnk
STRIP_FLAGS := -Wl,-s
else
@ -33,41 +28,30 @@ endif
ifeq ($(KDBG), 1)
OBJECTS_KDBG := dbg/kdb.o dbg/kdb_keyboard.o dbg/rdebug.o \
dbg/i386/kdb_help.o
CONFIG += KDBG
else
OBJECTS_KDBG :=
endif
ifeq ($(MP), 1)
CONFIG += MP
else
CONFIG += UP
endif
ifeq ($(ACPI), 1)
CONFIG += ACPI
else
CONFIG +=
endif
ASFLAGS += -I./include -I$(SDK_PATH_INC)
CFLAGS += -I./include -I$(SDK_PATH_INC) -D__NTOSKRNL__ $(CFLAGS_DBG) -Wall -Werror
#
# Build configuration
#
include $(PATH_TO_TOP)/rules.mak
TARGETNAME := ntoskrnl
OBJECTS_PATH = objects
ASFLAGS = -Iinclude
CFLAGS = -Iinclude -D__NTOSKRNL__ $(CFLAGS_DBG) -Wall -Werror
include $(PATH_TO_TOP)/rules.mak
all: $(EXE_PREFIX)depends$(EXE_POSTFIX) include/internal/config.h \
all: \
$(OBJECTS_PATH) \
$(TARGETNAME).nostrip.exe \
$(TARGETNAME).exe \
$(TARGETNAME).sym
$(EXE_PREFIX)depends$(EXE_POSTFIX): depends.c
$(HOST_CC) -o depends$(EXE_POSTFIX) depends.c
#
# Architecture specific Makefile
# Defines $(OBJECTS_ARCH)
@ -187,6 +171,7 @@ OBJECTS_IO = \
io/mdl.o \
io/npipe.o \
io/page.o \
io/parttab.o \
io/pnpmgr.o \
io/pnproot.o \
io/process.o \
@ -321,14 +306,18 @@ OBJECTS_KD = \
kd/service.o \
kd/dlog.o
C_OBJECTS := $(OBJECTS_NT) $(OBJECTS_HAL) $(OBJECTS_MM) $(OBJECTS_ARCH) \
DEP_OBJECTS := $(OBJECTS_NT) $(OBJECTS_MM) $(OBJECTS_ARCH) \
$(OBJECTS_IO) $(OBJECTS_KE) $(OBJECTS_OB) \
$(OBJECTS_PS) $(OBJECTS_EX) $(OBJECTS_CC) $(OBJECTS_FS) $(OBJECTS_SE) \
$(OBJECTS_DBG) $(OBJECTS_CM) $(OBJECTS_LDR) $(OBJECTS_LPC) \
$(OBJECTS_PO) $(OBJECTS_KD) $(OBJECTS_RTL)
D_FILES := $(filter-out ex/napi.%, $(filter-out nt/zw.%, $(C_OBJECTS:.o=.d)))
D1_FILES := $(join $(dir $(D_FILES)), $(addprefix ., $(notdir $(D_FILES))))
#
# Include automatic dependancy tracking
#
include $(PATH_TO_TOP)/tools/depend.mk
# Resources
OBJECTS_RESOURCE = \
@ -342,15 +331,11 @@ IE_DATA = \
$(OBJECTS_PATH):
mkdir $(OBJECTS_PATH)
$(OBJECTS_RESOURCE): $(TARGETNAME).rc $(PATH_TO_TOP)/include/reactos/resource.h
#
# Build subsystem intermediate objects
#
$(OBJECTS_PATH)/hal.o: $(OBJECTS_HAL)
$(LD) \
-r \
-o $(OBJECTS_PATH)/hal.o \
$(OBJECTS_HAL)
$(OBJECTS_PATH)/arch.o: $(OBJECTS_ARCH)
$(LD) -r -o $(OBJECTS_PATH)/arch.o $(OBJECTS_ARCH)
@ -462,14 +447,10 @@ $(OBJECTS_PATH)/kd.o: $(OBJECTS_KD)
-o $(OBJECTS_PATH)/kd.o \
$(OBJECTS_KD)
$(TARGETNAME).coff: $(TARGETNAME).rc $(PATH_TO_TOP)/include/reactos/resource.h
# Note: arch.o MUST be the first file!!!
OBJECTS := \
$(OBJECTS_PATH)/arch.o \
$(OBJECTS_PATH)/ke.o \
$(OBJECTS_PATH)/hal.o \
$(OBJECTS_PATH)/cc.o \
$(OBJECTS_PATH)/cm.o \
$(OBJECTS_PATH)/dbg.o \
@ -489,15 +470,14 @@ OBJECTS := \
$(OBJECTS_PATH)/se.o \
$(OBJECTS_RESOURCE)
CLEAN_FILES = $(OBJECTS_PATH)/*.o cc/*.o cm/*.o dbg/*.o dbg/i386/*.o ex/*.o hal/x86/*.o io/*.o \
ke/*.o ldr/*.o mm/*.o nt/*.o ob/*.o ps/*.o rtl/*.o se/*.o \
ke/i386/*.o mm/i386/*.o fs/*.o po/*.o nls/*.o lpc/*.o \
kd/*.o $(TARGETNAME).o $(TARGETNAME).a junk.tmp base.tmp temp.exp \
CLEAN_FILES = $(OBJECTS_PATH)/*.o cc/*.o cm/*.o dbg/*.o dbg/i386/*.o ex/*.o \
ex/i386/*.o io/*.o ke/*.o ldr/*.o mm/*.o nt/*.o ob/*.o ps/*.o \
rtl/*.o se/*.o ke/i386/*.o mm/i386/*.o fs/*.o po/*.o nls/*.o \
lpc/*.o kd/*.o $(TARGETNAME).o junk.tmp base.tmp temp.exp \
$(TARGETNAME).exe $(TARGETNAME).nostrip.exe $(TARGETNAME).sym \
$(TARGETNAME).coff $(D1_FILES)
$(TARGETNAME).coff $(DEP_FILES)
$(TARGETNAME).nostrip.exe: $(TARGETNAME).o $(TARGETNAME).a $(IE_DATA)
$(TARGETNAME).nostrip.exe: $(TARGETNAME).o $(DDK_PATH_LIB)/$(TARGETNAME).a $(IE_DATA)
$(CC) \
-Wl,-T,ntoskrnl.lnk \
-nostartfiles \
@ -509,7 +489,8 @@ $(TARGETNAME).nostrip.exe: $(TARGETNAME).o $(TARGETNAME).a $(IE_DATA)
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,--base-file,base.tmp \
$(TARGETNAME).o -lgcc
$(TARGETNAME).o -lgcc \
$(DDK_PATH_LIB)/hal.a
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGETNAME).exe \
@ -529,11 +510,12 @@ $(TARGETNAME).nostrip.exe: $(TARGETNAME).o $(TARGETNAME).a $(IE_DATA)
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp \
$(TARGETNAME).o -lgcc
$(TARGETNAME).o -lgcc \
$(DDK_PATH_LIB)/hal.a
- $(RM) temp.exp
$(TARGETNAME).exe: $(TARGETNAME).o $(TARGETNAME).a $(LINKER_SCRIPT)
$(CC) \
$(TARGETNAME).exe: $(TARGETNAME).o $(DDK_PATH_LIB)/$(TARGETNAME).a $(LINKER_SCRIPT) $(DDK_PATH_LIB)/hal.a
- $(CC) \
-Wl,-T,$(LINKER_SCRIPT) \
-nostartfiles \
-nostdlib \
@ -544,7 +526,8 @@ $(TARGETNAME).exe: $(TARGETNAME).o $(TARGETNAME).a $(LINKER_SCRIPT)
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,--base-file,base.tmp \
$(TARGETNAME).o -lgcc
$(TARGETNAME).o -lgcc \
$(DDK_PATH_LIB)/hal.a
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGETNAME).exe \
@ -564,7 +547,8 @@ $(TARGETNAME).exe: $(TARGETNAME).o $(TARGETNAME).a $(LINKER_SCRIPT)
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp \
$(TARGETNAME).o -lgcc
$(TARGETNAME).o -lgcc \
$(DDK_PATH_LIB)/hal.a
- $(RM) temp.exp
$(TARGETNAME).dbg.o: $(TARGETNAME).o
@ -582,7 +566,8 @@ $(TARGETNAME).dbg: $(TARGETNAME).dbg.o $(TARGETNAME).a $(TARGETNAME).dbg.lnk
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,--base-file,base.tmp \
$(TARGETNAME).dbg.o -lgcc
$(TARGETNAME).dbg.o -lgcc \
$(DDK_PATH_LIB)/hal.a
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGETNAME).dbg \
@ -602,7 +587,8 @@ $(TARGETNAME).dbg: $(TARGETNAME).dbg.o $(TARGETNAME).a $(TARGETNAME).dbg.lnk
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp \
$(TARGETNAME).dbg.o -lgcc
$(TARGETNAME).dbg.o -lgcc \
$(DDK_PATH_LIB)/hal.a
- $(RM) temp.exp
$(TARGETNAME).sym: $(TARGETNAME).nostrip.exe
@ -614,11 +600,11 @@ $(TARGETNAME).o: $(OBJECTS)
-o $(TARGETNAME).o \
$(OBJECTS)
$(TARGETNAME).a: $(TARGETNAME).def
$(DDK_PATH_LIB)/$(TARGETNAME).a: $(TARGETNAME).def
$(DLLTOOL) \
--dllname $(TARGETNAME).exe \
--def $(TARGETNAME).def \
--output-lib $(TARGETNAME).a \
--output-lib $(DDK_PATH_LIB)/$(TARGETNAME).a \
--kill-at
clean:
@ -626,17 +612,17 @@ clean:
.PHONY: clean
install: $(FLOPPY_DIR)/$(TARGETNAME).exe
install: $(INSTALL_DIR)/system32/$(TARGETNAME).exe
$(FLOPPY_DIR)/$(TARGETNAME).exe: $(TARGETNAME).exe
$(CP) $(TARGETNAME).exe $(FLOPPY_DIR)/$(TARGETNAME).exe
$(INSTALL_DIR)/system32/$(TARGETNAME).exe: $(TARGETNAME).exe
$(CP) $(TARGETNAME).exe $(INSTALL_DIR)/system32/$(TARGETNAME).exe
.PHONY: install
dist: $(PATH_TO_TOP)/$(DIST_DIR)/$(TARGETNAME).exe
dist: $(DIST_DIR)/$(TARGETNAME).exe
$(PATH_TO_TOP)/$(DIST_DIR)/$(TARGETNAME).exe: $(TARGETNAME).exe
$(CP) $(TARGETNAME).exe $(PATH_TO_TOP)/$(DIST_DIR)/$(TARGETNAME).exe
$(DIST_DIR)/$(TARGETNAME).exe: $(TARGETNAME).exe
$(CP) $(TARGETNAME).exe $(DIST_DIR)/$(TARGETNAME).exe
.PHONY: dist
@ -644,29 +630,17 @@ ex/napi.o: ex/napi.c $(PATH_TO_TOP)/include/ntdll/napi.h
ke/main.o: ke/main.c $(PATH_TO_TOP)/include/reactos/buildno.h
mkconfig$(EXE_SUFFIX): mkconfig.c
$(HOST_CC) -g -o mkconfig$(EXE_SUFFIX) mkconfig.c
config:
$(EXE_PREFIX)mkconfig$(EXE_SUFFIX) include/internal/config.h $(CONFIG)
include/internal/config.h: config mkconfig$(EXE_SUFFIX)
$(EXE_PREFIX)mkconfig$(EXE_SUFFIX) include/internal/config.h$(CONFIG)
ifneq ($(MAKECMDGOALS),clean)
include $(D1_FILES)
endif
.%.d: %.c $(EXE_PREFIX)depends$(EXE_POSTFIX)
$(CC) $(CFLAGS) -M $< | $(EXE_PREFIX)depends$(EXE_POSTFIX) $(@D) $@
.%.d: %.s
$(CC) $(CFLAGS) -M $< | $(EXE_PREFIX)depends$(EXE_POSTFIX) $(@D) $@
.%.d: %.S
$(CC) $(CFLAGS) -M $< | $(EXE_PREFIX)depends$(EXE_POSTFIX) $(@D) $@
.%.d: %.asm
$(NASM_CMD) $< | $(EXE_PREFIX)depends$(EXE_POSTFIX) $(@D) $@
%.o: %.cc
$(CC) $(CFLAGS) -c $< -o $@
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
%.o: %.S
$(AS) $(ASFLAGS) -c $< -o $@
%.o: %.s
$(AS) $(ASFLAGS) -c $< -o $@
%.o: %.asm
$(NASM_CMD) $(NFLAGS) $< -o $@
%.coff: %.rc
$(RC) $(RCINC) $< -o $@
# EOF

View file

@ -3,7 +3,7 @@
#
# Defines $(OBJECTS_HAL)
include hal/x86/sources
# include hal/x86/sources
OBJECTS_BOOT := ke/i386/multiboot.o

View file

@ -47,7 +47,7 @@
#define DPRINT1(args...) do { DbgPrint("(%s:%d) ",__FILE__,__LINE__); DbgPrint(args); } while(0);
#define CHECKPOINT1 do { DbgPrint("%s:%d\n",__FILE__,__LINE__); } while(0);
#if defined(KDBG) && defined(NDEBUG)
#if defined(KDBG) && defined(NDEBUG) && defined(__NTOSKRNL__)
#define DPRINT(args...) do { \
if (DbgShouldPrint(__FILE__)) { \
@ -58,7 +58,7 @@
#define CHECKPOINT
#else /* KDBG && NDEBUG */
#else /* KDBG && NDEBUG && __NTOSKRNL__ */
#ifndef NDEBUG
#define DPRINT(args...) do { DbgPrint("(%s:%d) ",__FILE__,__LINE__); DbgPrint(args); } while(0);

View file

@ -84,4 +84,12 @@ VOID
LdrInitDebug(PLOADER_MODULE Module, PWCH Name);
VOID LdrLoadUserModuleSymbols(PLDR_MODULE ModuleObject);
PVOID LdrSafePEProcessModule(
PVOID ModuleLoadBase,
PVOID DriverBase,
PVOID ImportModuleBase,
PULONG DriverSize);
extern ULONG_PTR LdrHalBase;
#endif /* __INCLUDE_INTERNAL_LDR_H */

View file

@ -487,7 +487,6 @@ VOID PiShutdownProcessManager(VOID);
VOID PsInitThreadManagment(VOID);
VOID PsInitProcessManagment(VOID);
VOID PsInitIdleThread(VOID);
VOID PsDispatchThread(ULONG NewThreadStatus);
VOID PsDispatchThreadNoLock(ULONG NewThreadStatus);
VOID PiTerminateProcessThreads(PEPROCESS Process, NTSTATUS ExitStatus);
VOID PsTerminateOtherThread(PETHREAD Thread, NTSTATUS ExitStatus);

View file

@ -0,0 +1,62 @@
/* $Id: parttab.c,v 1.1 2001/08/21 20:13:09 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/io/parttab.c
* PURPOSE: Handling fixed disks (partition table functions)
* PROGRAMMER: David Welch (welch@mcmail.com)
* UPDATE HISTORY:
* Created 22/05/98
* 2000-03-25 (ea)
* Moved here from ntoskrnl/io/fdisk.c
*/
/* INCLUDES *****************************************************************/
#include <ddk/ntddk.h>
#include <internal/debug.h>
/* FUNCTIONS *****************************************************************/
NTSTATUS STDCALL
IoReadPartitionTable(PDEVICE_OBJECT DeviceObject,
ULONG SectorSize,
BOOLEAN ReturnRecognizedPartitions,
PDRIVE_LAYOUT_INFORMATION *PartitionBuffer)
{
return HalDispatchTable.HalIoReadPartitionTable(DeviceObject,
SectorSize,
ReturnRecognizedPartitions,
PartitionBuffer);
}
NTSTATUS STDCALL
IoSetPartitionInformation(PDEVICE_OBJECT DeviceObject,
ULONG SectorSize,
ULONG PartitionNumber,
ULONG PartitionType)
{
return HalDispatchTable.HalIoSetPartitionInformation(DeviceObject,
SectorSize,
PartitionNumber,
PartitionType);
}
NTSTATUS STDCALL
IoWritePartitionTable(PDEVICE_OBJECT DeviceObject,
ULONG SectorSize,
ULONG SectorsPerTrack,
ULONG NumberOfHeads,
PDRIVE_LAYOUT_INFORMATION PartitionBuffer)
{
return HalDispatchTable.HalIoWritePartitionTable(DeviceObject,
SectorSize,
SectorsPerTrack,
NumberOfHeads,
PartitionBuffer);
}
/* EOF */

View file

@ -1,4 +1,4 @@
/* $Id: xhaldrv.c,v 1.14 2001/07/04 16:42:37 rex Exp $
/* $Id: xhaldrv.c,v 1.15 2001/08/21 20:13:09 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -638,8 +638,9 @@ xHalIoReadPartitionTable(PDEVICE_OBJECT DeviceObject,
PartitionTable->Partition[i].BootFlags,
PartitionTable->Partition[i].PartitionType,
PartitionTable->Partition[i].StartingHead,
PartitionTable->Partition[i].StartingSector,
PartitionTable->Partition[i].StartingCylinder,
PartitionTable->Partition[i].StartingSector & 0x3f,
(((PartitionTable->Partition[i].StartingSector) & 0xc0) << 2) +
PartitionTable->Partition[i].StartingCylinder,
PartitionTable->Partition[i].EndingHead,
PartitionTable->Partition[i].EndingSector,
PartitionTable->Partition[i].EndingCylinder,

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id: main.c,v 1.101 2001/07/14 21:10:31 chorns Exp $
/* $Id: main.c,v 1.102 2001/08/21 20:13:09 chorns Exp $
*
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/ke/main.c
@ -46,6 +46,12 @@
#include <internal/trap.h>
#include "../dbg/kdb.h"
#ifdef HALDBG
#include <internal/ntosdbg.h>
#else
#define ps(args...)
#endif
#define NDEBUG
#include <internal/debug.h>
@ -65,6 +71,8 @@ static ULONG LastKrnlPhysAddr;
static ULONG LastKernelAddress;
volatile BOOLEAN Initialized = FALSE;
extern PVOID Ki386InitialStackArray[MAXIMUM_PROCESSORS];
/* FUNCTIONS ****************************************************************/
static BOOLEAN
@ -459,9 +467,9 @@ ExpInitializeExecutive(VOID)
assert(FIELD_OFFSET(KPCR, ExceptionList) == KPCR_EXCEPTION_LIST);
assert(FIELD_OFFSET(KPCR, Self) == KPCR_SELF);
assert(FIELD_OFFSET(KPCR, CurrentThread) == KPCR_CURRENT_THREAD);
LdrInit1();
KeLowerIrql(DISPATCH_LEVEL);
NtEarlyInitVdm();
@ -507,12 +515,18 @@ ExpInitializeExecutive(VOID)
while (!HalAllProcessorsStarted())
{
PVOID ProcessorStack;
if (KeNumberProcessors != 0)
{
KePrepareForApplicationProcessorInit(KeNumberProcessors);
PsPrepareForApplicationProcessorInit(KeNumberProcessors);
}
HalInitializeProcessor(KeNumberProcessors);
/* Allocate a stack for use when booting the processor */
/* FIXME: The nonpaged memory for the stack is not released after use */
ProcessorStack = ExAllocatePool(NonPagedPool, MM_STACK_SIZE) + MM_STACK_SIZE;
Ki386InitialStackArray[((int)KeNumberProcessors)] = (PVOID)(ProcessorStack - MM_STACK_SIZE);
HalInitializeProcessor(KeNumberProcessors, ProcessorStack);
KeNumberProcessors++;
}
@ -670,7 +684,7 @@ ExpInitializeExecutive(VOID)
NULL,
NULL,
NULL);
/*
* Initialize shared user page:
* - set dos system path, dos device map, etc.
@ -681,14 +695,16 @@ ExpInitializeExecutive(VOID)
* Launch initial process
*/
LdrLoadInitialProcess();
PsTerminateSystemThread(STATUS_SUCCESS);
}
VOID
KiSystemStartup(BOOLEAN BootProcessor)
{
HalInitSystem (0, (PLOADER_PARAMETER_BLOCK)&KeLoaderBlock);
if (BootProcessor)
{
/* Never returns */
@ -719,7 +735,13 @@ _main (ULONG MultiBootMagic, PLOADER_PARAMETER_BLOCK _LoaderBlock)
ULONG size;
ULONG last_kernel_address;
extern ULONG _bss_end__;
ULONG HalBase;
ULONG DriverBase;
ULONG DriverSize;
/* Low level architecture specific initialization */
KeInit1();
/*
* Copy the parameters to a local buffer because lowmem will go away
*/
@ -751,9 +773,27 @@ _main (ULONG MultiBootMagic, PLOADER_PARAMETER_BLOCK _LoaderBlock)
KeLoaderModules[i].ModEnd += 0xc0000000;
KeLoaderModules[i].String = (ULONG)KeLoaderModuleStrings[i];
}
last_kernel_address = KeLoaderModules[KeLoaderBlock.ModsCount - 1].ModEnd;
#ifdef HAL_DBG
HalnInitializeDisplay((PLOADER_PARAMETER_BLOCK)&KeLoaderBlock);
#endif
HalBase = KeLoaderModules[1].ModStart;
DriverBase = KeLoaderModules[KeLoaderBlock.ModsCount - 1].ModEnd;
/*
* Process hal.dll
*/
LdrSafePEProcessModule((PVOID)HalBase, (PVOID)DriverBase, (PVOID)0xC0000000, &DriverSize);
LdrHalBase = (ULONG_PTR)DriverBase;
last_kernel_address = DriverBase + DriverSize;
/*
* Process ntoskrnl.exe
*/
LdrSafePEProcessModule((PVOID)0xC0000000, (PVOID)0xC0000000, (PVOID)DriverBase, &DriverSize);
FirstKrnlPhysAddr = KeLoaderModules[0].ModStart - 0xc0000000 + 0x200000;
LastKrnlPhysAddr = last_kernel_address - 0xc0000000 + 0x200000;
LastKernelAddress = last_kernel_address;
@ -778,8 +818,6 @@ _main (ULONG MultiBootMagic, PLOADER_PARAMETER_BLOCK _LoaderBlock)
i += size;
}
}
KeInit1();
KiSystemStartup(1);
}

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