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-
19 DLLTOOL
= $(PREFIX
)dlltool
--as=$(PREFIX
)as
21 KM_SPECS
= $(TOPDIR
)/specs
23 # DIST_DIR should be relative from the top of the tree
27 ifeq ($(HOST
),mingw32-windows
)
32 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
=
66 CFLAGS
= $(BASE_CFLAGS
) \
70 -fno-builtin
$(LEAN_AND_MEAN_DEFINE
) \
72 -Wstrict-prototypes
$(DEBUGGING_CFLAGS
) \
75 NFLAGS
= -i..
/..
/include/ -i..
/include/ -pinternal
/asm.inc
-f
$(NASM_FORMAT
) -d
$(NASM_FORMAT
)
78 OBJCOPY
= $(PREFIX
)objcopy
79 STRIP
= $(PREFIX
)strip
80 AS
= $(PREFIX
)gcc
-c
-x assembler-with-cpp
84 RCINC
= --include-dir ..
/include --include-dir ..
/..
/include --include-dir ..
/..
/..
/include
87 $(CC
) $(CFLAGS
) -c
$< -o
$@
89 $(CC
) $(CFLAGS
) -c
$< -o
$@
91 $(NASM_CMD
) $(NFLAGS
) $< -o
$@
96 RULES_MAK_INCLUDED
= 1