Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

424 Commits   2 Branches   1 Tag

COMPONENT_TARGETS  = $(HARDWARE_BUILD)
COMPONENT_TARGETS += $(HARDWARE_INTEL_PC64)

include ../../../build-system/constants.mk

# ======= __END_OF_REQUIRES__ =======

bin_srcs = main.c

SRCS = $(bin_srcs)

bin_objs = $(addprefix $(TARGET_BUILD_DIR)/,$(bin_srcs:.c=.o))
bin_target = $(TARGET_BUILD_DIR)/main

info_target = $(TARGET_BUILD_DIR)/.info-done

BUILD_TARGETS = $(bin_target) $(info_target)

#
# The user may reject the sysroot usage. For this the user have to declare
# the USE_TARGET_DEST_DIR_SYSROOT variable with value 'no':
#
#   USE_TARGET_DEST_DIR_SYSROOT = no
#
USE_TARGET_DEST_DIR_SYSROOT = no


include ../../../build-system/core.mk


$(bin_target): $(bin_objs)
	$(LINK)
########################################################
# Also Directly using $(CC) and $(LINKER) is available:
# ====================================================
#	$(CC) $(CFLAGS) -c -o $(TARGET_BUILD_DIR)/main.o main.c
#	$(LINKER) $(ARCH_FLAGS) $(LDFLAGS) -o $(TARGET_BUILD_DIR)/main $(TARGET_BUILD_DIR)/main.o
	@touch $@

$(info_target): $(bin_target)
	@echo "==================================="
	@echo "======= Environment:        ======="
	@echo "==================================="
	@echo "======= CFLAGS     = '$(CFLAGS)'"
	@echo "======= LDFLAGS    = '$(LDFLAGS)'"
	@echo "======= ARCH_FLAGS = '$(ARCH_FLAGS)'"
	@echo ""
	@echo "#"
	@echo "# Please find the `basename $(bin_target)` executable in the $(TARGET_BUILD_DIR)/ directory."
	@echo "#"
	@echo ""
	@touch $@