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
30 ifeq ($(HOST
),mingw32-windows
)
34 DLLTOOL
= $(PREFIX
)dlltool
--as=$(PREFIX
)as
38 # DIST_DIR should be relative from the top of the tree
43 # Create variables for all the compiler tools
45 ifeq ($(WITH_DEBUGGING
),yes
)
51 ifeq ($(WARNINGS_ARE_ERRORS
),yes
)
52 EXTRA_CFLAGS
= -Werror
57 ifeq ($(WIN32_LEAN_AND_MEAN
),yes
)
58 LEAN_AND_MEAN_DEFINE
= -DWIN32_LEAN_AND_MEAN
60 LEAN_AND_MEAN_DEFINE
=
65 CFLAGS
= -O2
-Wall
-Wstrict-prototypes
-fno-builtin \
66 $(LEAN_AND_MEAN_DEFINE
) $(DEFINES
) $(DEBUGGING_CFLAGS
) \
71 OBJCOPY
= $(PREFIX
)objcopy
72 STRIP
= $(PREFIX
)strip
73 AS
= $(PREFIX
)gcc
-c
-x assembler-with-cpp
79 $(CC
) $(CFLAGS
) -c
$< -o
$@
84 RULES_MAK_INCLUDED
= 1