11 .EXPORT_ALL_VARIABLES
:
13 ifeq ($(HOST
),mingw32-linux
)
14 TOPDIR
:= $(shell if
[ "$$PWD" != "" ]; then echo
$$PWD; else pwd
; fi
)
18 # Choose various options
20 ifeq ($(HOST
),mingw32-linux
)
21 PREFIX
= i586-mingw32-
24 DLLTOOL
= $(PREFIX
)dlltool
--as=$(PREFIX
)as
26 # DIST_DIR should be relative from the top of the tree
31 ifeq ($(HOST
),mingw32-windows
)
35 DLLTOOL
= $(PREFIX
)dlltool
--as=$(PREFIX
)as
39 # DIST_DIR should be relative from the top of the tree
44 # Create variables for all the compiler tools
46 ifeq ($(WITH_DEBUGGING
),yes
)
52 ifeq ($(WARNINGS_ARE_ERRORS
),yes
)
53 EXTRA_CFLAGS
= -Werror
58 ifeq ($(WIN32_LEAN_AND_MEAN
),yes
)
59 LEAN_AND_MEAN_DEFINE
= -DWIN32_LEAN_AND_MEAN
61 LEAN_AND_MEAN_DEFINE
=
73 $(LEAN_AND_MEAN_DEFINE
) \
80 OBJCOPY
= $(PREFIX
)objcopy
81 STRIP
= $(PREFIX
)strip
82 AS
= $(PREFIX
)gcc
-c
-x assembler-with-cpp
86 RCINC
= --include-dir ..
/reactos
/include --include-dir ..
/..
/reactos
/include --include-dir ..
/..
/..
/reactos
/include
89 $(CC
) $(CFLAGS
) -c
$< -o
$@
91 $(CC
) $(CFLAGS
) -c
$< -o
$@
93 $(NASM_CMD
) $(NFLAGS
) $< -o
$@
99 RULES_MAK_INCLUDED
= 1