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
)
22 W32API_PATH
= $(PATH_TO_TOP
)/..
/reactos
/w32api
25 # Choose various options
27 ifeq ($(HOST
),mingw32-linux
)
31 DLLTOOL
= $(PREFIX
)dlltool
--as=$(PREFIX
)as
34 FLOPPY_DIR
= /mnt
/floppy
35 # DIST_DIR should be relative from the top of the tree
41 ifeq ($(HOST
),mingw32-windows
)
45 DLLTOOL
= $(PREFIX
)dlltool
--as=$(PREFIX
)as
49 # DIST_DIR should be relative from the top of the tree
54 # Set INSTALL_DIR to default value if not already set
55 # ifeq ($(INSTALL_DIR),)
56 INSTALL_DIR
= $(PATH_TO_TOP
)/reactos
60 # Create variables for all the compiler tools
62 ifeq ($(WITH_DEBUGGING
),yes
)
68 ifeq ($(WARNINGS_ARE_ERRORS
),yes
)
69 EXTRA_CFLAGS
= -Werror
74 ifeq ($(WIN32_LEAN_AND_MEAN
),yes
)
75 LEAN_AND_MEAN_DEFINE
= -DWIN32_LEAN_AND_MEAN
77 LEAN_AND_MEAN_DEFINE
=
90 -I
$(W32API_PATH
)/include \
91 $(LEAN_AND_MEAN_DEFINE
) \
98 OBJCOPY
= $(PREFIX
)objcopy
99 STRIP
= $(PREFIX
)strip
100 AS
= $(PREFIX
)gcc
-c
-x assembler-with-cpp
102 RC
= $(PREFIX
)windres
103 RCINC
= --include-dir
$(PATH_TO_TOP
)/..
/reactos
/include
104 TOOLS_PATH
= $(PATH_TO_TOP
)/..
/reactos
/tools
105 RSYM
= $(TOOLS_PATH
)/rsym
108 $(CXX
) $(CFLAGS
) -c
$< -o
$@
110 $(CXX
) $(CFLAGS
) -c
$< -o
$@
112 $(CC
) $(CFLAGS
) -c
$< -o
$@
114 $(NASM_CMD
) $(NFLAGS
) $< -o
$@
116 $(RC
) $(RCFLAGS
) $(RCINC
) $< $@
120 RULES_MAK_INCLUDED
= 1