-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 763 Bytes
/
Makefile
File metadata and controls
30 lines (23 loc) · 763 Bytes
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
PRJROOT=..
PRJSRC=$(PRJROOT)
TESTROOT=.
MOCKSRC=$(TESTROOT)/mock
UTILSSRC=$(TESTROOT)/utils
BINDIR=$(TESTROOT)/bin
include $(TESTROOT)/makefuncs.mk
#$(info $(call build-basic-unittest, testCal, $(TESTROOT)/testCalendar.c))
$(eval $(call build-basic-unittest, testCal, \
$(TESTROOT)/testCalendar.c \
$(UTILSSRC)/test_utils_filetostring.c \
$(PRJSRC)/Calendar.cpp \
$(PRJSRC)/entry.cpp \
$(PRJSRC)/EventProcessing.cpp \
$(MOCKSRC)/mockLogSerial.cpp \
$(MOCKSRC)/mockLogProblem.cpp))
buildtests: $(TEST-TARGETS)
test: $(EXEC-TEST-TARGETS)
clean:
rm -rf $(BINDIR)
.PHONY:: buildtests test clean
# The default goal (target) when none is specified
.DEFAULT_GOAL=buildtests