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 := selfloader.bin
15
16# Source files required to build the target
17CFILES   := $(patsubst $(SOURCE_DIR)/%,%,$(wildcard $(SOURCE_DIR)/src/*.c))
18
19NK_CFLAGS += -O2
20
21# Libraries required to build the target
22LIBS := c sel4 elf refossys refos datastruct
23
24# Custom linker script
25NK_LDFLAGS += -T $(SOURCE_DIR)/linker.lds
26
27include $(SEL4_COMMON)/common.mk
28