Skip to content

Commit d848c48

Browse files
committed
automated dependencies
1 parent b99b229 commit d848c48

6 files changed

Lines changed: 33 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ O.*
33
*.swp
44
*BAK.adl
55
bin/
6+
cfg/
67
/db/
78
dbd/
89
html/

configure/CONFIG_MODULE@

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
ifeq (,$(_@MODULE@_INCLUDED))
2+
_@MODULE@_INCLUDED = YES
3+
4+
_@MODULE@_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
5+
6+
ifdef T_A
7+
8+
_@MODULE@_DEPS := $(shell $(CONVERTRELEASE) -T $(_@MODULE@_DIR)/.. releaseTops)
9+
_@MODULE@_DEPS := $(filter-out EPICS_BASE SUPPORT, $(_@MODULE@_DEPS))
10+
11+
$(foreach dep, $(_@MODULE@_DEPS), $(eval -include $($(dep))/cfg/CONFIG_MODULE))
12+
13+
-include $(_@MODULE@_DIR)/@MODULE@_DEPS
14+
-include $(_@MODULE@_DIR)/@MODULE@_DEPS.local
15+
16+
ALL_IOC_DBDS += $(@MODULE@_IOC_DBDS)
17+
ALL_IOC_LIBS := $(@MODULE@_IOC_LIBS) $(ALL_IOC_LIBS)
18+
ALL_IOC_SYS_LIBS := $(@MODULE@_IOC_SYS_LIBS) $(ALL_IOC_SYS_LIBS)
19+
20+
endif # T_A
21+
endif # included

configure/CONFIG_SITE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
# CONFIG_SITE.Common.$(T_A)
99
# CONFIG_SITE.$(EPICS_HOST_ARCH).$(T_A)
1010

11+
# Module name for cfg-based build dependencies.
12+
MODULE = LUA
13+
1114
# CHECK_RELEASE controls the consistency checking of the support
1215
# applications pointed to by the RELEASE* files.
1316
# Normally CHECK_RELEASE should be set to YES.

configure/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,9 @@ include $(TOP)/configure/CONFIG
77
TARGETS = $(CONFIG_TARGETS)
88
CONFIGS += $(subst ../,,$(wildcard $(CONFIG_INSTALLS)))
99

10+
CFG += CONFIG_MODULE
11+
EXPAND += CONFIG_MODULE@
12+
EXPAND_VARS += MODULE=$(MODULE)
13+
1014
include $(TOP)/configure/RULES
1115

luaApp/src/LUA_DEPS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
LUA_IOC_DBDS = luaSupport.dbd
2+
LUA_IOC_LIBS = lua

luaApp/src/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ LIBRARY_IOC_RTEMS = -nil-
1212

1313
DBD += luaSupport.dbd
1414

15+
CFG += LUA_DEPS
16+
1517

1618
INC += luaEpics.h
1719
lua_SRCS += luaEpics.cpp

0 commit comments

Comments
 (0)