mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-27 01:11:06 +00:00
ca971bbfd8
This patch changes the top-level directory layout as a preparatory step for improving the tools for managing 3rd-party source codes. The rationale is described in the issue referenced below. Issue #1082
26 lines
726 B
Makefile
26 lines
726 B
Makefile
#
|
|
# Create prerequisites for building Genode for Pistachio
|
|
#
|
|
|
|
#
|
|
# Execute the rules in this file only at the second build stage when we know
|
|
# about the complete build settings, e.g., the 'CROSS_DEV_PREFIX'.
|
|
#
|
|
ifeq ($(called_from_lib_mk),yes)
|
|
|
|
all: $(filter-out $(wildcard $(PISTACHIO_USER_BUILD_DIR)), $(PISTACHIO_USER_BUILD_DIR))
|
|
|
|
LD_PREFIX = "-Wl,"
|
|
|
|
$(PISTACHIO_USER_BUILD_DIR):
|
|
$(VERBOSE)mkdir $@
|
|
$(VERBOSE)cd $@; \
|
|
LIBGCCFLAGS="$(CC_MARCH)" \
|
|
LDFLAGS="$(addprefix $(LD_PREFIX),$(LD_MARCH)) -nostdlib" \
|
|
CFLAGS="$(CC_MARCH)" \
|
|
$(REP_DIR)/contrib/user/configure --build=ia32 --host i686 \
|
|
CC=$(CROSS_DEV_PREFIX)gcc
|
|
$(VERBOSE_MK) MAKEFLAGS= $(MAKE) $(VERBOSE_DIR) -C $@
|
|
|
|
endif
|