Allow makefiles to adjust OBJS_SRCS_FILTER to control setting of OBJS from SRCS
default R matches precedent, but makefile can add T to avoid subdirs in .OBJDIR
Details
- Reviewers
bdrewery - Commits
- rS323637: Use OBJS_SRCS_FILTER to control setting OBJS from SRCS
Buildworld ok
plus lib/libbearssl which uses subdirs in SRCS but not in .OBJDIR
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
I'm curious what you need this for?
Also you may need to add it to DEPENDOBJS which is just which objects get -M flags at compilation and which ones are expected to have a _.depend.foo.o_ file to be read in. Could save some stats if it makes sense to filter them out.
share/mk/bsd.dep.mk:DEPENDOBJS+= ${DEPENDSRCS:R:S,$,.o,}
Based on:
share/mk/bsd.dep.mk:DEPENDSRCS= ${SRCS:M*.[cSC]} ${SRCS:M*.cxx} ${SRCS:M*.cpp} ${SRCS:M*.cc}
New library libbearssl does a reachover build of BearSSL, want to be able to represent the subdirs in SRCS but have no need of subdirs in .OBJDIR
Also you may need to add it to DEPENDOBJS which is just which objects get -M flags at compilation and which ones are expected to have a _.depend.foo.o_ file to be read in. Could save some stats if it makes sense to filter them out.
Thanks will take a look
Also you may need to add it to DEPENDOBJS which is just which objects get -M flags at compilation and which ones are expected to have a _.depend.foo.o_ file to be read in. Could save some stats if it makes sense to filter them out.
I took a look at bsd.dep.mk most of it explicitly excludes SRCS with subdirs, and in another case it replaces / with _, so not sure there's anything to touch at all yet.