-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
42 lines (32 loc) · 1.32 KB
/
Makefile
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
# Makefile at top of application tree
TOP = .
include $(TOP)/configure/CONFIG
# Directories to build, any order
DIRS += configure
DIRS += $(wildcard *Sup)
DIRS += $(wildcard *App)
DIRS += $(wildcard *Top)
DIRS += $(wildcard iocBoot)
DIRS += googletest/googletest/include
DIRS += googletest/googletest/src
DIRS += googletest/googlemock/include
DIRS += googletest/googlemock/src
# The build order is controlled by these dependency rules:
# All dirs except configure depend on configure
$(foreach dir, $(filter-out configure, $(DIRS)), \
$(eval $(dir)_DEPEND_DIRS += configure))
# Any *App dirs depend on all *Sup dirs
$(foreach dir, $(filter %App, $(DIRS)), \
$(eval $(dir)_DEPEND_DIRS += $(filter %Sup, $(DIRS))))
# Any *Top dirs depend on all *Sup and *App dirs
$(foreach dir, $(filter %Top, $(DIRS)), \
$(eval $(dir)_DEPEND_DIRS += $(filter %Sup %App, $(DIRS))))
# iocBoot depends on all *App dirs
iocBoot_DEPEND_DIRS += $(filter %App,$(DIRS))
# Add any additional dependency rules here:
gtestSup_DEPEND_DIRS += googletest/googletest/src
googletest/googletest/src_DEPEND_DIRS += googletest/googletest/include
gtestSup_DEPEND_DIRS += googletest/googlemock/src
googletest/googlemock/src_DEPEND_DIRS += googletest/googlemock/include
googletest/googlemock/src_DEPEND_DIRS += googletest/googletest/src
include $(TOP)/configure/RULES_TOP