Full memory management support (memory.c & memory.h & mem.S)
[reactos.git] / reactos / rules.mak
index 2dab372..02ca0a3 100644 (file)
@@ -3,7 +3,7 @@
 #
 .EXPORT_ALL_VARIABLES:
 
-#HOST = mingw32-windows
+HOST = mingw32-windows
 
 # uncomment if you use bochs and it displays only 30 rows
 # BOCHS_30ROWS = yes
@@ -17,9 +17,11 @@ endif
 #
 ifeq ($(HOST),mingw32-linux)
 NASM_FORMAT = win32
-PREFIX = i586-mingw32-
-EXE_POSTFIX = 
-EXE_PREFIX = ./
+PREFIX = /usr/mingw32-cvs-000216/bin/mingw32-pc-
+#PREFIX = i586-mingw32-
+#PREFIX = /usr/mingw32-cvs-000207/bin/mingw32-cvs-000207-
+EXE_POSTFIX := 
+EXE_PREFIX := ./
 #CP = cp
 CP = $(PATH_TO_TOP)/rcopy
 DLLTOOL = $(PREFIX)dlltool --as=$(PREFIX)as
@@ -28,16 +30,20 @@ NASM_CMD = nasm
 FLOPPY_DIR = /a
 # DIST_DIR should be relative from the top of the tree
 DIST_DIR = dist
+#DOT := \\.
+#DSEP := /
+#ENABLE_DEPENDENCY_TRACKING := 1
 endif
 
 ifeq ($(HOST),mingw32-windows)
 NASM_FORMAT = win32
 PREFIX = 
-EXE_POSTFIX = .exe
+EXE_PREFIX := 
+EXE_POSTFIX := .exe
 #CP = copy /B
 CP = $(PATH_TO_TOP)/rcopy
 DLLTOOL = $(PREFIX)dlltool --as=$(PREFIX)as
-NASM_CMD = nasm
+NASM_CMD = nasmw
 RM = del
 RMDIR = rmdir
 #KM_SPECS = specs
@@ -45,12 +51,16 @@ DOSCLI = yes
 FLOPPY_DIR = A:
 # DIST_DIR should be relative from the top of the tree
 DIST_DIR = dist
+#DOT := \.
+#DSEP := \\
+#ENABLE_DEPENDENCY_TRACKING := 1
 endif
 
 CC = $(PREFIX)gcc
+CXX = $(PREFIX)g++
 HOST_CC = gcc
 HOST_NM = nm
-CFLAGS := $(CFLAGS) -I$(PATH_TO_TOP)/include -pipe
+CFLAGS := $(CFLAGS) -I$(PATH_TO_TOP)/include -pipe -m386
 CXXFLAGS = $(CFLAGS)
 NFLAGS = -i$(PATH_TO_TOP)/include/ -f$(NASM_FORMAT) -d$(NASM_FORMAT)
 LD = $(PREFIX)ld
@@ -105,6 +115,7 @@ OBJCOPY = $(PREFIX)objcopy
                -o $@.unstripped \
                $^
        - $(RM) temp.exp
+       - $(NM) --numeric-sort $@.unstripped > $@.sym
        $(STRIP) --strip-debug $<
        $(CC) \
                -nostartfiles -nostdlib -e _DriverEntry@8 \
@@ -134,11 +145,3 @@ OBJCOPY = $(PREFIX)objcopy
        - $(RM) temp.exp
 
 RULES_MAK_INCLUDED = 1
-
-
-
-
-
-
-
-