forked from nasa/bplib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathposix.mk
47 lines (38 loc) · 1.35 KB
/
posix.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
###############################################################################
# File: posix.mk
#
# Copyright 2019 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Other Rights Reserved.
#
# This software was created at NASA's Goddard Space Flight Center.
# This software is governed by the NASA Open Source Agreement and may be
# used, distributed and modified only pursuant to the terms of that
# agreement.
#
# Maintainer(s):
# Joe-Paul Swinski, Code 582 NASA GSFC
#
# Note:
# See 'Makefile' in same directory for where this is included
###############################################################################
###############################################################################
## PLATFORM SPECIFIC OBJECTS
APP_OBJ += posix.o
###############################################################################
## OPTIONS
# Optimization Level #
APP_COPT += -O0
# Build Unit Tests #
BUILD_UNITTESTS=1
APP_COPT += -DUNITTESTS
APP_COPT += -DBP_LOCAL_SCOPE="" # removes static designator so that local functions can be unit tested
# GNU Code Coverage #
APP_COPT += -fprofile-arcs -ftest-coverage
APP_LOPT += -lgcov --coverage
# Enable Stack Checker #
APP_COPT += -fstack-protector-all
# Enable Toolchain Specific Checks #
ifeq ($(CC), cc)
APP_COPT += -Wlogical-op
endif