8 #HOST = mingw32-windows
11 # Windows is default host environment
13 HOST
= mingw32-windows
17 ifeq ($(HOST
),mingw32-linux
)
18 TOPDIR
:= $(shell if
[ "$$PWD" != "" ]; then echo
$$PWD; else pwd
; fi
)
22 # Choose various options
24 ifeq ($(HOST
),mingw32-linux
)
25 PREFIX
= i586-mingw32-
28 DLLTOOL
= $(PREFIX
)dlltool
--as=$(PREFIX
)as
30 # DIST_DIR should be relative from the top of the tree
35 ifeq ($(HOST
),mingw32-windows
)
39 DLLTOOL
= $(PREFIX
)dlltool
--as=$(PREFIX
)as
43 # DIST_DIR should be relative from the top of the tree
48 # Create variables for all the compiler tools
50 ifeq ($(WITH_DEBUGGING
),yes
)
56 ifeq ($(WARNINGS_ARE_ERRORS
),yes
)
57 EXTRA_CFLAGS
= -Werror
62 ifeq ($(WIN32_LEAN_AND_MEAN
),yes
)
63 LEAN_AND_MEAN_DEFINE
= -DWIN32_LEAN_AND_MEAN
65 LEAN_AND_MEAN_DEFINE
=
77 $(LEAN_AND_MEAN_DEFINE
) \
84 OBJCOPY
= $(PREFIX
)objcopy
85 STRIP
= $(PREFIX
)strip
86 AS
= $(PREFIX
)gcc
-c
-x assembler-with-cpp
90 RCINC
= --include-dir ..
/reactos
/include --include-dir ..
/..
/reactos
/include --include-dir ..
/..
/..
/reactos
/include
92 TOOLS_PATH
= $(PATH_TO_TOP
)/..
/reactos
/tools
93 RSYM
= $(TOOLS_PATH
)/rsym
96 $(CC
) $(CFLAGS
) -c
$< -o
$@
98 $(CC
) $(CFLAGS
) -c
$< -o
$@
100 $(CC
) $(CFLAGS
) -c
$< -o
$@
102 $(NASM_CMD
) $(NFLAGS
) $< -o
$@
104 $(RC
) $(RCFLAGS
) $(RCINC
) $< $@
108 RULES_MAK_INCLUDED
= 1