]> begriffs open source - cmsis-freertos/blob - Test/CMock/queue/generic/Makefile
Updated pack to FreeRTOS 10.4.6
[cmsis-freertos] / Test / CMock / queue / generic / Makefile
1 # Indent with spaces
2 .RECIPEPREFIX := $(.RECIPEPREFIX) $(.RECIPEPREFIX)
3
4 # Do not move this line below the include
5 MAKEFILE_ABSPATH    :=    $(abspath $(lastword $(MAKEFILE_LIST)))
6 include ../../makefile.in
7
8 # PROJECT_SRC lists the .c files under test
9 PROJECT_SRC         +=  queue.c
10
11 # PROJECT_DEPS_SRC list the .c file that are dependencies of PROJECT_SRC files
12 # Files in PROJECT_DEPS_SRC are excluded from coverage measurements
13 PROJECT_DEPS_SRC    +=  list.c
14
15 # PROJECT_HEADER_DEPS: headers that should be excluded from coverage measurements.
16 PROJECT_HEADER_DEPS +=  FreeRTOS.h
17
18 # SUITE_UT_SRC: .c files that contain test cases (must end in _utest.c)
19 SUITE_UT_SRC        +=  queue_create_dynamic_utest.c
20 SUITE_UT_SRC        +=  queue_create_static_utest.c
21 SUITE_UT_SRC        +=  queue_delete_dynamic_utest.c
22 SUITE_UT_SRC        +=  queue_delete_static_utest.c
23 SUITE_UT_SRC        +=  queue_reset_utest.c
24 SUITE_UT_SRC        +=  queue_receive_nonblocking_utest.c
25 SUITE_UT_SRC        +=  queue_receive_blocking_utest.c
26 SUITE_UT_SRC        +=  queue_send_nonblocking_utest.c
27 SUITE_UT_SRC        +=  queue_send_blocking_utest.c
28 SUITE_UT_SRC        +=  queue_status_utest.c
29
30 # SUITE_SUPPORT_SRC: .c files used for testing that do not contain test cases.
31 # Paths are relative to PROJECT_DIR
32 SUITE_SUPPORT_SRC   +=  queue_utest_common.c
33 SUITE_SUPPORT_SRC   +=  td_task.c
34 SUITE_SUPPORT_SRC   +=  td_port.c
35
36 # List the headers used by PROJECT_SRC that you would like to mock
37 MOCK_FILES_FP   +=  $(KERNEL_DIR)/include/task.h
38 MOCK_FILES_FP   +=  $(UT_ROOT_DIR)/config/fake_assert.h
39 MOCK_FILES_FP   +=  $(UT_ROOT_DIR)/config/fake_port.h
40
41 # List any addiitonal flags needed by the preprocessor
42 CPPFLAGS        +=  -DportUSING_MPU_WRAPPERS=0
43
44 # List any addiitonal flags needed by the compiler
45 CFLAGS          += -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-exceptions
46
47 # Try not to edit beyond this line unless necessary.
48
49 # Project / Suite are determined based on path: $(UT_ROOT_DIR)/$(PROJECT)/$(SUITE)
50 PROJECT         :=  $(lastword $(subst /, ,$(dir $(abspath $(MAKEFILE_ABSPATH)/../))))
51 SUITE           :=  $(lastword $(subst /, ,$(dir $(MAKEFILE_ABSPATH))))
52
53 # Make variables available to included makefile
54 export
55
56 include ../../testdir.mk