1# 2# Copyright 2016, Data61 3# Commonwealth Scientific and Industrial Research Organisation (CSIRO) 4# ABN 41 687 119 230. 5# 6# This software may be distributed and modified according to the terms of 7# the BSD 2-Clause license. Note that NO WARRANTY is provided. 8# See "LICENSE_BSD2.txt" for details. 9# 10# @TAG(D61_BSD) 11# 12 13# Targets 14TARGETS := $(notdir $(SOURCE_DIR)).bin 15 16# Entry Point 17ENTRY_POINT := _sel4_start 18 19# Source files required to build the target 20CFILES := $(patsubst $(SOURCE_DIR)/%,%,$(wildcard $(SOURCE_DIR)/src/*.c)) 21CFILES += $(patsubst $(SOURCE_DIR)/%,%,$(wildcard $(SOURCE_DIR)/src/*/*.c)) 22CFILES += $(patsubst $(SOURCE_DIR)/%,%,$(wildcard $(SOURCE_DIR)/src/*/*/*.c)) 23CFILES += $(patsubst $(SOURCE_DIR)/%,%,$(wildcard $(SOURCE_DIR)/src/plat/${PLAT}/*.c)) 24CFILES += $(patsubst $(SOURCE_DIR)/%,%,$(wildcard $(SOURCE_DIR)/src/arch/${ARCH}/*.c)) 25 26OFILES := archive.o 27 28# We want to run C99 29NK_CFLAGS += -std=gnu99 -O2 30 31# Libraries required to build the target 32LIBS := c sel4 sel4muslcsys sel4allocman sel4platsupport sel4vka elf cpio refos sel4utils \ 33 datastruct sel4debug sel4simple utils platsupport sel4vspace 34 35LIBS += sel4simple-default 36 37HDRFILES += $(wildcard ${SOURCE_DIR}/*) \ 38 39 40include $(SEL4_COMMON)/common.mk 41