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
39 # DIST_DIR should be relative from the top of the tree
44 # Create variables for all the compiler tools
46 ifeq ($(WITH_DEBUGGING
),yes
)
52 ifeq ($(WARNINGS_ARE_ERRORS
),yes
)
53 EXTRA_CFLAGS
= -Werror
58 ifeq ($(WIN32_LEAN_AND_MEAN
),yes
)
59 LEAN_AND_MEAN_DEFINE
= -DWIN32_LEAN_AND_MEAN
61 LEAN_AND_MEAN_DEFINE
=
67 CFLAGS
= $(BASE_CFLAGS
) \
71 -fno-builtin
$(LEAN_AND_MEAN_DEFINE
) \
73 -Wstrict-prototypes
$(DEBUGGING_CFLAGS
) \
76 NFLAGS
= -i..
/..
/include/ -i..
/include/ -pinternal
/asm.inc
-f
$(NASM_FORMAT
) -d
$(NASM_FORMAT
)
79 OBJCOPY
= $(PREFIX
)objcopy
80 STRIP
= $(PREFIX
)strip
81 AS
= $(PREFIX
)gcc
-c
-x assembler-with-cpp
85 RCINC
= --include-dir ..
/include --include-dir ..
/..
/include --include-dir ..
/..
/..
/include
88 $(CC
) $(CFLAGS
) -c
$< -o
$@
90 $(CC
) $(CFLAGS
) -c
$< -o
$@
92 $(NASM_CMD
) $(NFLAGS
) $< -o
$@
97 RULES_MAK_INCLUDED
= 1