set the correct compiler depending on if we are doing a hosted or native build
[AROS.git] / bootstrap / mmakefile.src
blobfa92b9cc3d4316ab2836698ffbf6434f9f30a87b
1 #   $Id$
3 include $(TOP)/config/make.cfg
5 FILES := elfloader
7 USER_INCLUDES := -I $(SRCDIR)/$(CURDIR)/include -I $(GENINCDIR)
8 ifeq ($(FLAVOUR),emulation)
9 BOOTSTRAP_COMPILER:=host
10 else
11 BOOTSTRAP_COMPILER:=kernel
12 endif
14 %build_linklib mmake=linklibs-bootstrap libname=bootstrap files="$(FILES)" \
15                compiler=$(BOOTSTRAP_COMPILER) libdir=$(GENDIR)/lib
17 # linklibs-bootstrap32 target is used by x86-64 bootstrap which runs in 32-bit mode
19 USER_CFLAGS := -m32 -DELF_64BIT
21 %build_linklib mmake=linklibs-bootstrap32 libname=bootstrap files="$(FILES)" \
22                compiler=$(BOOTSTRAP_COMPILER) objdir=$(GENDIR)/$(CURDIR)/32bit libdir=$(GENDIR)/lib32
24 %common