8 #HOST = mingw32-windows
12 # Windows is default host environment
14 HOST
= mingw32-windows
18 ifeq ($(HOST
),mingw32-linux
)
19 TOPDIR
:= $(shell if
[ "$$PWD" != "" ]; then echo
$$PWD; else pwd
; fi
)
23 # Choose various options
25 ifeq ($(HOST
),mingw32-linux
)
29 DLLTOOL
= $(PREFIX
)dlltool
--as=$(PREFIX
)as
32 FLOPPY_DIR
= /mnt
/floppy
33 # DIST_DIR should be relative from the top of the tree
39 ifeq ($(HOST
),mingw32-windows
)
43 DLLTOOL
= $(PREFIX
)dlltool
--as=$(PREFIX
)as
47 # DIST_DIR should be relative from the top of the tree
52 # Set INSTALL_DIR to default value if not already set
53 # ifeq ($(INSTALL_DIR),)
54 INSTALL_DIR
= $(PATH_TO_TOP
)/reactos
58 # Create variables for all the compiler tools
60 ifeq ($(WITH_DEBUGGING
),yes
)
66 ifeq ($(WARNINGS_ARE_ERRORS
),yes
)
67 EXTRA_CFLAGS
= -Werror
72 ifeq ($(WIN32_LEAN_AND_MEAN
),yes
)
73 LEAN_AND_MEAN_DEFINE
= -DWIN32_LEAN_AND_MEAN
75 LEAN_AND_MEAN_DEFINE
=
88 $(LEAN_AND_MEAN_DEFINE
) \
95 OBJCOPY
= $(PREFIX
)objcopy
96 STRIP
= $(PREFIX
)strip
97 AS
= $(PREFIX
)gcc
-c
-x assembler-with-cpp
100 RCINC
= --include-dir
$(PATH_TO_TOP
)/..
/reactos
/include
101 TOOLS_PATH
= $(PATH_TO_TOP
)/..
/reactos
/tools
102 RSYM
= $(TOOLS_PATH
)/rsym
105 $(CXX
) $(CFLAGS
) -c
$< -o
$@
107 $(CXX
) $(CFLAGS
) -c
$< -o
$@
109 $(CC
) $(CFLAGS
) -c
$< -o
$@
111 $(NASM_CMD
) $(NFLAGS
) $< -o
$@
113 $(RC
) $(RCFLAGS
) $(RCINC
) $< $@
117 RULES_MAK_INCLUDED
= 1