mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
b3ea65f0e4
NTOSKRNL.NtQuerySystemInformation() and NTOSKRNL.NtSetSystemInformation(). --- Partially implemented (kernel32/process/proc.c) KERNEL32.GetPriorityClass(), KERNEL32.SetPriorityClass() and NTDLL.CsrSetPriorityClass() (stub only). Renamed (in include/csrss/csrss.h) priority class macros: #define CSR_PRIORITY_CLASS_NORMAL (0x10) #define CSR_PRIORITY_CLASS_IDLE (0x20) #define CSR_PRIORITY_CLASS_HIGH (0x40) #define CSR_PRIORITY_CLASS_REALTIME (0x80) --- Implemented (kernel32/misc/error.c) #include <kernel32/error.h> DWORD STDCALL SetLastErrorByStatus ( NTSTATUS Status ); to replace SetLastError(RtlNtStatusToDosError(Status)) in KERNEL32, and fixed KERNEL32.SetLastError() KERNEL32.GetLastError() to use the field in NT_TEB (LastError is per thread not per process). --- Implemented (lib/kernel32/sysinfo.c) GetSystemInfo() (to be completed). --- Fixed rosapps/sysutils/makefile to use ROS import libraries. --- Added QSI to the system utilities set. The target is writing a tool that can be used to query as much system information as possible from user mode (to be finished and tested only under nt4sp4/x86; it was NOT tested under ROS: it crashes immediately and needs NtQuerySystemInformation implemented!). svn path=/trunk/; revision=1137
99 lines
1.7 KiB
Makefile
99 lines
1.7 KiB
Makefile
#
|
|
# Select your host
|
|
#
|
|
#HOST = mingw32-linux
|
|
HOST = mingw32-windows
|
|
|
|
|
|
#
|
|
# Important
|
|
#
|
|
.EXPORT_ALL_VARIABLES:
|
|
|
|
ifeq ($(HOST),mingw32-linux)
|
|
TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
|
|
endif
|
|
|
|
#
|
|
# Choose various options
|
|
#
|
|
ifeq ($(HOST),mingw32-linux)
|
|
PREFIX = i586-mingw32-
|
|
EXE_POSTFIX =
|
|
CP = cp
|
|
DLLTOOL = $(PREFIX)dlltool --as=$(PREFIX)as
|
|
FLOPPY_DIR = A/
|
|
# DIST_DIR should be relative from the top of the tree
|
|
DIST_DIR = dist
|
|
endif
|
|
|
|
|
|
ifeq ($(HOST),mingw32-windows)
|
|
PREFIX =
|
|
EXE_POSTFIX = .exe
|
|
CP = copy
|
|
DLLTOOL = $(PREFIX)dlltool --as=$(PREFIX)as
|
|
RM = del
|
|
DOSCLI = yes
|
|
FLOPPY_DIR = A:
|
|
# DIST_DIR should be relative from the top of the tree
|
|
DIST_DIR = dist
|
|
endif
|
|
|
|
#
|
|
# Create variables for all the compiler tools
|
|
#
|
|
ifeq ($(WITH_DEBUGGING),yes)
|
|
DEBUGGING_CFLAGS = -g
|
|
else
|
|
DEBUGGING_CFLAGS =
|
|
endif
|
|
|
|
ifeq ($(WARNINGS_ARE_ERRORS),yes)
|
|
EXTRA_CFLAGS = -Werror
|
|
endif
|
|
|
|
DEFINES = -DDBG
|
|
|
|
ifeq ($(WIN32_LEAN_AND_MEAN),yes)
|
|
LEAN_AND_MEAN_DEFINE = -DWIN32_LEAN_AND_MEAN
|
|
else
|
|
LEAN_AND_MEAN_DEFINE =
|
|
endif
|
|
|
|
CC = $(PREFIX)gcc
|
|
NATIVE_CC = gcc
|
|
CFLAGS = \
|
|
$(BASE_CFLAGS) \
|
|
-pipe \
|
|
-O2 \
|
|
-Wall \
|
|
-Wstrict-prototypes \
|
|
-fno-builtin \
|
|
$(LEAN_AND_MEAN_DEFINE) \
|
|
$(DEFINES) \
|
|
$(DEBUGGING_CFLAGS) \
|
|
$(EXTRA_CFLAGS)
|
|
CXXFLAGS = $(CFLAGS)
|
|
LD = $(PREFIX)ld
|
|
NM = $(PREFIX)nm
|
|
OBJCOPY = $(PREFIX)objcopy
|
|
STRIP = $(PREFIX)strip
|
|
AS = $(PREFIX)gcc -c -x assembler-with-cpp
|
|
CPP = $(PREFIX)cpp
|
|
AR = $(PREFIX)ar
|
|
RC = $(PREFIX)windres
|
|
RCINC = --include-dir ../reactos/include --include-dir ../../reactos/include --include-dir ../../../reactos/include
|
|
|
|
%.o: %.cc
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
%.o: %.asm
|
|
$(NASM_CMD) $(NFLAGS) $< -o $@
|
|
%.coff: %.rc
|
|
$(RC) $(RCINC) $< $@
|
|
|
|
|
|
|
|
RULES_MAK_INCLUDED = 1
|