Debian Codegraph @

build/ComponentMakefileExampleParameters

raw
1 #Set this to @ to keep the makefile quiet
2 SILENCE = @
3
4 #---- Outputs ----#
5 COMPONENT_NAME = ProjectName
6 TARGET_LIB = \
7 lib/lib$(COMPONENT_NAME).a
8
9 TEST_TARGET = \
10 $(COMPONENT_NAME)_tests
11
12 #--- Inputs ----#
13 PROJECT_HOME_DIR = .
14 CPPUTEST_HOME = ../CppUTest
15 CPP_PLATFORM = Gcc
16
17 #CFLAGS are set to override malloc and free to get memory leak detection in C programs
18 CFLAGS = -Dmalloc=cpputest_malloc -Dfree=cpputest_free
19 CPPFLAGS =
20 GCOVFLAGS = -fprofile-arcs -ftest-coverage
21
22 #SRC_DIRS is a list of source directories that make up the target library
23 #If test files are in these directories, their IMPORT_TEST_GROUPs need
24 #to be included in main to force them to be linked in. By convention
25 #put them into an AllTests.h file in each directory
26 SRC_DIRS = \
27 src
28
29 #TEST_SRC_DIRS is a list of directories including
30 # - A test main (AllTests.cpp by conventin)
31 # - OBJ files in these directories are included in the TEST_TARGET
32 # - Consequently - AllTests.h containing the IMPORT_TEST_GROUPS is not needed
33 # -
34 TEST_SRC_DIRS = \
35 tests
36
37 #includes for all compiles
38 INCLUDES =\
39 -I.\
40 -I$(CPPUTEST_HOME)/include\
41
42 #Flags to pass to ld
43 LDFLAGS +=
44 USER_LIBS =
45
46 include $(CPPUTEST_HOME)/build/ComponentMakefile