-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefileUnity.mk
49 lines (39 loc) · 1.27 KB
/
MakefileUnity.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
#This makefile makes the examples from the first few chapters with Unity test harness
#Set this to @ to keep the makefile quiet
SILENCE = @
#---- Outputs ----#
COMPONENT_NAME = BookCode_Unity
#--- Inputs ----#
UNITY_HOME = unity.framework
CPP_PLATFORM = Gcc
PROJECT_HOME_DIR = .
PROJECT_TEST_DIR = unity
CPP_PLATFORM = Gcc
UNITY_BUILD_HOME = unity.framework/extras/fixture/build
UNITY_CFLAGS += -DUNITY_OUTPUT_CHAR=UnityOutputCharSpy_OutputChar
UNITY_WARNINGFLAGS = -Wall -Werror -Wswitch-default
#UNITY_WARNINGFLAGS += -Wshadow
SRC_DIRS = \
$(PROJECT_HOME_DIR)/src/LedDriver \
$(PROJECT_HOME_DIR)/src/HomeAutomation \
TEST_SRC_DIRS = \
$(PROJECT_TEST_DIR)\
$(PROJECT_TEST_DIR)/HomeAutomation\
$(PROJECT_TEST_DIR)/LedDriver\
$(PROJECT_TEST_DIR)/stdio\
$(UNITY_HOME)/unity\
$(UNITY_HOME)/src\
$(UNITY_HOME)/extras/fixture/src\
$(UNITY_HOME)/extras/fixture/test\
MOCKS_SRC_DIRS = \
$(PROJECT_TEST_DIR)/mocks\
INCLUDE_DIRS =\
.\
$(UNITY_HOME)/src\
$(UNITY_HOME)/extras/fixture/src\
$(UNITY_HOME)/extras/fixture/test\
$(PROJECT_HOME_DIR)/include/HomeAutomation\
$(PROJECT_HOME_DIR)/include/LedDriver\
$(PROJECT_HOME_DIR)/include/util\
$(PROJECT_HOME_DIR)/mocks\
include $(UNITY_BUILD_HOME)/MakefileWorker.mk