blob: fb802f21183381ba04ee34c05de8e6467d25d00a [file] [log] [blame]
Jonathan Huia0bf1142016-06-15 13:56:37 -07001#
Jonathan Hui44350172016-09-13 15:57:11 -07002# Copyright (c) 2016, The OpenThread Authors.
Jonathan Huia0bf1142016-06-15 13:56:37 -07003# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are met:
7# 1. Redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer.
9# 2. Redistributions in binary form must reproduce the above copyright
10# notice, this list of conditions and the following disclaimer in the
11# documentation and/or other materials provided with the distribution.
12# 3. Neither the name of the copyright holder nor the
13# names of its contributors may be used to endorse or promote products
14# derived from this software without specific prior written permission.
15#
16# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26# POSSIBILITY OF SUCH DAMAGE.
27#
28
29include $(abs_top_nlbuild_autotools_dir)/automake/pre.am
30
Diego Ismirlianeb4125c2020-05-06 21:42:48 -030031# Do not enable -Wcast-align for this platform
32override CFLAGS := $(filter-out -Wcast-align,$(CFLAGS))
33override CXXFLAGS := $(filter-out -Wcast-align,$(CXXFLAGS))
34
Jonathan Huia0bf1142016-06-15 13:56:37 -070035lib_LIBRARIES = libopenthread-cc2538.a
36
37libopenthread_cc2538_a_CPPFLAGS = \
38 -I$(top_srcdir)/include \
Nick Banksffbe65c2016-09-12 14:29:43 -070039 -I$(top_srcdir)/examples/platforms \
Jonathan Huia0bf1142016-06-15 13:56:37 -070040 -I$(top_srcdir)/src/core \
41 $(NULL)
42
Abtin Keshavarzian4207f412018-02-12 11:27:16 -080043PLATFORM_SOURCES = \
Jonathan Huia0bf1142016-06-15 13:56:37 -070044 alarm.c \
Jonathan Hui896ac0a2019-06-20 09:35:10 -070045 cc2538-reg.h \
Abtin Keshavarzian4207f412018-02-12 11:27:16 -080046 diag.c \
Kamil Sroka56fa9ac2019-05-10 09:40:54 +020047 entropy.c \
Lu Wang59f4ec82016-10-09 13:26:46 +080048 flash.c \
Lu Wang59f4ec82016-10-09 13:26:46 +080049 misc.c \
Jonathan Hui896ac0a2019-06-20 09:35:10 -070050 openthread-core-cc2538-config.h \
Zhanglong Xiaa5124492019-07-23 23:45:58 +080051 openthread-core-cc2538-config-check.h \
Jonathan Hui896ac0a2019-06-20 09:35:10 -070052 platform-cc2538.h \
Jonathan Huia0bf1142016-06-15 13:56:37 -070053 radio.c \
Jonathan Hui896ac0a2019-06-20 09:35:10 -070054 rom-utility.h \
Jonathan Huia0bf1142016-06-15 13:56:37 -070055 startup-gcc.c \
Jonathan Huif0bb0982018-08-03 14:13:47 -050056 system.c \
DuaneEllis-TIe9375422017-08-24 10:28:01 -070057 logging.c \
Lu Wang59f4ec82016-10-09 13:26:46 +080058 uart.c \
Jonathan Huia0bf1142016-06-15 13:56:37 -070059 $(NULL)
60
Abtin Keshavarzian4207f412018-02-12 11:27:16 -080061libopenthread_cc2538_a_SOURCES = \
62 $(PLATFORM_SOURCES) \
Shu Chen71307982016-08-12 01:26:51 +080063 $(NULL)
Shu Chen71307982016-08-12 01:26:51 +080064
Jonathan Huie8769282016-11-30 22:20:12 -080065Dash = -
66libopenthread_cc2538_a_LIBADD = \
67 $(shell find $(top_builddir)/examples/platforms/utils $(Dash)type f $(Dash)name "*.o")
Jonathan Huidb436d92016-06-27 17:19:37 -070068
Jonathan Huia0bf1142016-06-15 13:56:37 -070069include $(abs_top_nlbuild_autotools_dir)/automake/post.am