8 # Choose various options
10 ifeq ($(HOST
),djgpp-linux
)
13 KERNEL_BFD_TARGET
= coff-i386
18 ifeq ($(HOST
),mingw32-linux
)
21 KERNEL_BFD_TARGET
= pe-i386
26 ifeq ($(HOST
),djgpp-msdos
)
29 KERNEL_BFD_TARGET
= coff-go32
34 ifeq ($(HOST
),mingw32-windows
)
37 KERNEL_BFD_TARGET
= pe-i386
43 # Create variables for all the compiler tools
47 CFLAGS
= -O2
-I..
/..
/include -I..
/include -fno-builtin
-DCHECKED_BUILD
$(DEFINES
) -Wall
-Wstrict-prototypes
50 NFLAGS
= -i..
/include/ -f
$(NASM_FORMAT
)
53 OBJCOPY
= $(PREFIX
)objcopy
54 STRIP
= $(PREFIX
)strip
55 AS
= $(PREFIX
)gcc
-c
-x assembler-with-cpp
59 $(CC
) $(CFLAGS
) -c
$< -o
$@
61 $(NASM
) $(NFLAGS
) $< -o
$@
64 RULES_MAK_INCLUDED
= 1