6 ifeq ($(HOST
),mingw32-linux
)
7 TOPDIR
:= $(shell if
[ "$$PWD" != "" ]; then echo
$$PWD; else pwd
; fi
)
11 # Choose various options
13 ifeq ($(HOST
),mingw32-linux
)
15 PREFIX
= i586-mingw32-
18 DLLTOOL
= $(PREFIX
)dlltool
--as=$(PREFIX
)as
20 KM_SPECS
= $(TOPDIR
)/specs
22 # DIST_DIR should be relative from the top of the tree
26 ifeq ($(HOST
),mingw32-windows
)
31 DLLTOOL
= $(PREFIX
)dlltool
--as=$(PREFIX
)as
37 # DIST_DIR should be relative from the top of the tree
42 # Create variables for all the compiler tools
44 ifeq ($(WITH_DEBUGGING
),yes
)
50 ifeq ($(WARNINGS_ARE_ERRORS
),yes
)
51 EXTRA_CFLAGS
= -Werror
56 ifeq ($(WIN32_LEAN_AND_MEAN
),yes
)
57 LEAN_AND_MEAN_DEFINE
= -DWIN32_LEAN_AND_MEAN
59 LEAN_AND_MEAN_DEFINE
=
64 CFLAGS
= $(BASE_CFLAGS
) \
68 -fno-builtin
$(LEAN_AND_MEAN_DEFINE
) \
70 -Wstrict-prototypes
$(DEBUGGING_CFLAGS
) \
73 NFLAGS
= -i..
/..
/include/ -i..
/include/ -pinternal
/asm.inc
-f
$(NASM_FORMAT
) -d
$(NASM_FORMAT
)
76 OBJCOPY
= $(PREFIX
)objcopy
77 STRIP
= $(PREFIX
)strip
78 AS
= $(PREFIX
)gcc
-c
-x assembler-with-cpp
84 $(CC
) $(CFLAGS
) -c
$< -o
$@
86 $(CC
) $(CFLAGS
) -c
$< -o
$@
88 $(NASM_CMD
) $(NFLAGS
) $< -o
$@
93 RULES_MAK_INCLUDED
= 1