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
27 ifeq ($(HOST
),mingw32-windows
)
31 DLLTOOL
= $(PREFIX
)dlltool
--as=$(PREFIX
)as
37 # Create variables for all the compiler tools
39 ifeq ($(WITH_DEBUGGING
),yes
)
45 ifeq ($(WARNINGS_ARE_ERRORS
),yes
)
46 EXTRA_CFLAGS
= -Werror
51 ifeq ($(WIN32_LEAN_AND_MEAN
),yes
)
52 LEAN_AND_MEAN_DEFINE
= -DWIN32_LEAN_AND_MEAN
54 LEAN_AND_MEAN_DEFINE
=
59 CFLAGS
= -O2
-Wall
-Wstrict-prototypes
-fno-builtin \
60 $(LEAN_AND_MEAN_DEFINE
) $(DEFINES
) $(DEBUGGING_CFLAGS
) \
65 OBJCOPY
= $(PREFIX
)objcopy
66 STRIP
= $(PREFIX
)strip
67 AS
= $(PREFIX
)gcc
-c
-x assembler-with-cpp
73 $(CC
) $(CFLAGS
) -c
$< -o
$@
76 RULES_MAK_INCLUDED
= 1