8 # Choose various options
10 ifeq ($(HOST
),elf-linux
)
13 KERNEL_BFD_TARGET
= --oformat
=elf32-i386
18 ifeq ($(HOST
),djgpp-linux
)
21 KERNEL_BFD_TARGET
= --oformat
=coff-i386
27 ifeq ($(HOST
),mingw32-linux
)
29 PREFIX
= i386-mingw32-
30 #KERNEL_BFD_TARGET = pe-i386
34 DLLTOOL
= $(PREFIX
)dlltool
--as=$(PREFIX
)as
35 LIBGCC
= /usr
/lib
/gcc-lib
/i386-mingw32
/2.8.1/libgcc.a
39 ifeq ($(HOST
),djgpp-msdos
)
42 KERNEL_BFD_TARGET
= --oformat
=coff-go32
49 ifeq ($(HOST
),mingw32-windows
)
52 KERNEL_BFD_TARGET
= --oformat
=pe-i386
58 # Create variables for all the compiler tools
60 ifeq ($(WITH_DEBUGGING
),yes
)
66 DEFINES
= -DDBG
-DCHECKED
-DCOMPILER_LARGE_INTEGERS
68 ifeq ($(WIN32_LEAN_AND_MEAN
),yes
)
69 LEAN_AND_MEAN_DEFINE
= -DWIN32_LEAN_AND_MEAN
71 LEAN_AND_MEAN_DEFINE
=
76 CFLAGS
= -O2
-I..
/..
/..
/include -I..
/..
/include \
77 -I..
/include -fno-builtin
$(LEAN_AND_MEAN_DEFINE
) \
78 $(DEFINES
) -Wall
-Wstrict-prototypes
$(DEBUGGING_CFLAGS
)
80 NFLAGS
= -i..
/..
/include/ -i..
/include/ -pinternal
/asm.inc
-f
$(NASM_FORMAT
) -d
$(NASM_FORMAT
)
83 OBJCOPY
= $(PREFIX
)objcopy
84 STRIP
= $(PREFIX
)strip
85 AS
= $(PREFIX
)gcc
-c
-x assembler-with-cpp
90 $(CC
) $(CFLAGS
) -c
$< -o
$@
92 $(NASM_CMD
) $(NFLAGS
) $< -o
$@
95 RULES_MAK_INCLUDED
= 1