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 := librefossys.a 15 16# Source files required to build the target 17CFILES := $(patsubst $(SOURCE_DIR)/%,%,$(wildcard $(SOURCE_DIR)/src/*.c)) 18CFILES += $(patsubst $(SOURCE_DIR)/%,%,$(wildcard $(SOURCE_DIR)/src/*/*.c)) 19CFILES += $(patsubst $(SOURCE_DIR)/%,%,$(wildcard $(SOURCE_DIR)/src/arch/${ARCH}/*.c)) 20 21# Header files/directories this library provides 22HDRFILES := $(wildcard $(SOURCE_DIR)/include/*) 23 24NK_CFLAGS += -D_XOPEN_SOURCE=700 -O2 25 26include $(SEL4_COMMON)/common.mk 27