-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
73 lines (60 loc) · 2.06 KB
/
makefile
File metadata and controls
73 lines (60 loc) · 2.06 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#Set this to @ to keep the makefile quiet
SILENCE = @
#---- Outputs ----#
COMPONENT_NAME = metal2
#--- Inputs ----#
PROJECT_HOME_DIR = .
ifeq "$(CPPUTEST_HOME)" ""
CPPUTEST_HOME =/cygdrive/c/Users/db185198/Documents/cpputest
endif
# --- SRC_FILES ---
# Use SRC_FILES to specifiy individual production
# code files.
# These files are compiled and put into the
# ProductionCode library and links with the test runner
SRC_FILES += app/metal2.c
# --- SRC_DIRS ---
# Use SRC_DIRS to specifiy production directories
# code files.
# These files are compiled and put into a the
# ProductionCode library and links with the test runner
SRC_DIRS = \
# --- TEST_SRC_FILES ---
# TEST_SRC_FILES specifies individual test files to build. Test
# files are always included in the build and they
# pull in production code from the library
TEST_SRC_FILES = \
# --- TEST_SRC_DIRS ---
# Like TEST_SRC_FILES, but biulds everyting in the directory
TEST_SRC_DIRS = \
tests \
# --- MOCKS_SRC_DIRS ---
# MOCKS_SRC_DIRS specifies a directories where you can put your
# mocks, stubs and fakes. You can also just put them
# in TEST_SRC_DIRS
MOCKS_SRC_DIRS = \
# Turn on CppUMock
CPPUTEST_USE_EXTENSIONS = Y
INCLUDE_DIRS =\
.\
$(CPPUTEST_HOME)/include/ \
$(CPPUTEST_HOME)/include/Platforms/Gcc \
app \
# --- CPPUTEST_OBJS_DIR ---
# if you have to use "../" to get to your source path
# the makefile will put the .o and .d files in surprising
# places.
# To make up for each level of "../", add place holder
# sub directories in CPPUTEST_OBJS_DIR
# each "../". It is kind of a kludge, but it causes the
# .o and .d files to be put under objs.
# e.g. if you have "../../src", set to "test-objs/1/2"
# This is set no "../" in the source path.
CPPUTEST_OBJS_DIR = tests/test-obj
CPPUTEST_LIB_DIR = tests/test-lib
CPPUTEST_WARNINGFLAGS = -Wall -Werror -Wswitch-default -Wfatal-errors -Wno-unknown-pragmas
CPPUTEST_CXXFLAGS = -std=c++0x
CPPUTEST_CFLAGS = -std=c99
CPPUTEST_CPPFLAGS += -D__stdint_h
# Look at $(CPPUTEST_HOME)/build/MakefileWorker.mk for more controls
include $(CPPUTEST_HOME)/build/MakefileWorker.mk