-
Notifications
You must be signed in to change notification settings - Fork 5
/
MakefileCppUTest.mk
61 lines (49 loc) · 991 Bytes
/
MakefileCppUTest.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#This makefile makes all the main book code with CppUTest test harness
#Set this to @ to keep the makefile quiet
SILENCE = @
#---- Outputs ----#
COMPONENT_NAME = BookCode_CppUTest
#--- Inputs ----#
CPPUTEST_HOME = CppUTest
CPP_PLATFORM = Gcc
PROJECT_HOME_DIR = .
SRC_DIRS = \
src/HomeAutomation \
src/util\
src/LedDriver \
src/dvr\
src/IO \
src/MyOS \
src/MyOS/posix \
src/zune \
TEST_SRC_DIRS = \
.\
mocks\
mocks\
tests/LedDriver\
tests/stdio\
tests/util\
tests/IO\
tests/zune\
tests/HomeAutomation\
tests/dvr\
tests\
tests/MyOS\
INCLUDE_DIRS =\
.\
$(CPPUTEST_HOME)/include\
include/IO\
mocks\
include/util\
include/HomeAutomation\
include/LedDriver\
include/MyOS\
include/dvr\
include/zune\
MOCKS_SRC_DIRS = \
mocks\
CPPUTEST_WARNINGFLAGS = -Wall -Wswitch-default -Werror
#CPPUTEST_CFLAGS = -std=c89
CPPUTEST_CFLAGS += -Wall -Wstrict-prototypes -pedantic
LD_LIBRARIES = -lpthread
include $(CPPUTEST_HOME)/build/MakefileWorker.mk