forked from epics_driver_modules/require
For newer compilers (not vxWorks 5) don't include system headers in .d files in order to avoid problems when cross-compiling for older Linux hosts
This commit is contained in:
@@ -680,14 +680,19 @@ endif # MINOR
|
|||||||
LDFLAGS += ${PROVIDES} ${USR_LDFLAGS_${T_A}}
|
LDFLAGS += ${PROVIDES} ${USR_LDFLAGS_${T_A}}
|
||||||
|
|
||||||
# Create and include dependency files.
|
# Create and include dependency files.
|
||||||
# 3.14.8 uses HDEPENDS to select depends mode
|
# 3.13 does not make those files at all.
|
||||||
# 3.14.12 uses 'HDEPENDSCFLAGS -MMD' (does not catch #include <...>)
|
# 3.14.8 uses HDEPENDS to select depends mode.
|
||||||
# 3.15 uses 'HDEPENDS_COMPFLAGS = -MM -MF $@' (does not catch #include <...>)
|
# 3.14.12 uses 'HDEPENDSCFLAGS -MMD'
|
||||||
|
# 3.15 uses 'HDEPENDS_COMPFLAGS = -MM -MF $@'
|
||||||
|
# For newer compilers they are ok and ignore files in system directories.
|
||||||
|
# For old vxWorks gcc those rules ignore #include <...>,
|
||||||
|
# which may be falsey used for non-system headers.
|
||||||
|
ifneq (,$(filter T2-%,$(T_A)))
|
||||||
HDEPENDS =
|
HDEPENDS =
|
||||||
HDEPENDS_METHOD = COMP
|
HDEPENDS_METHOD = COMP
|
||||||
HDEPENDS_COMPFLAGS = -c
|
HDEPENDS_COMPFLAGS = -c
|
||||||
#MKMF = DO_NOT_USE_MKMF
|
|
||||||
CPPFLAGS += -MD
|
CPPFLAGS += -MD
|
||||||
|
endif
|
||||||
-include *.d
|
-include *.d
|
||||||
|
|
||||||
# Need to find source dbd files relative to one dir up but generated dbd files in this dir.
|
# Need to find source dbd files relative to one dir up but generated dbd files in this dir.
|
||||||
|
|||||||
Reference in New Issue
Block a user