2 include $(TOP)/config/make.cfg
4 EXEDIR := $(BINDIR)/boot
6 FILES := main bootstrap elf_io filesystem hostinterface kickstart log memory support shutdown runtime ui
9 ## The '-Wno-attributes' is here due to a gcc 4.5.x bug
10 ## where its strcmp() builtin generates a number of spurious
11 ## complaints with -O1 or higher optimizations enabled.
12 USER_CFLAGS := -Wno-attributes -DADATE="\"$(shell date '+%d.%m.%Y')\""
13 USER_LDFLAGS := -L$(GENDIR)/lib
14 USER_INCLUDES := -I$(SRCDIR)/arch/all-$(ARCH)/kernel -I$(GENINCDIR) -isystem $(SRCDIR)/bootstrap/include
17 # Allow to add host-specific options
18 -include $(SRCDIR)/arch/all-$(FAMILY)/bootstrap/make.opts
19 -include $(SRCDIR)/arch/all-$(ARCH)/bootstrap/make.opts
20 -include $(SRCDIR)/arch/all-$(AROS_TARGET_VARIANT)/bootstrap/make.opts
22 #MM kernel-bootstrap-hosted: linklibs-bootstrap linklibs-arossupport
24 %build_prog mmake=kernel-bootstrap-hosted \
25 progname=$(PROG)$(EXE_SUFFIX) targetdir=$(EXEDIR) \
26 files=$(FILES) compiler=kernel uselibs="$(LIBS)"