549a989aa91384208ad0d8b40935384d3428e606
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
)
54 ifeq ($(WARNINGS_ARE_ERRORS
),yes
)
55 EXTRA_CFLAGS
= -Werror
60 ifeq ($(WIN32_LEAN_AND_MEAN
),yes
)
61 LEAN_AND_MEAN_DEFINE
= -DWIN32_LEAN_AND_MEAN
63 LEAN_AND_MEAN_DEFINE
=
69 CFLAGS
= $(BASE_CFLAGS
) \
72 $(LEAN_AND_MEAN_DEFINE
) \
74 -Wstrict-prototypes
$(DEBUGGING_CFLAGS
) \
77 NFLAGS
= -i..
/..
/include/ -i..
/include/ -pinternal
/asm.inc
-f
$(NASM_FORMAT
) -d
$(NASM_FORMAT
)
80 OBJCOPY
= $(PREFIX
)objcopy
81 STRIP
= $(PREFIX
)strip
82 AS_INCLUDES
= -I..
/include
83 AS
= $(PREFIX
)gcc
-c
-x assembler-with-cpp
-D__ASM__
$(AS_BASEFLAGS
) $(AS_INCLUDES
)
87 RCINC
= --include-dir ..
/include --include-dir ..
/..
/include --include-dir ..
/..
/..
/include
90 $(CC
) $(CFLAGS
) -c
$< -o
$@
92 $(CC
) $(CFLAGS
) -c
$< -o
$@
94 $(NASM_CMD
) $(NFLAGS
) $< -o
$@
99 RULES_MAK_INCLUDED
= 1