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
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 11349 Build 11713: arc lint + arc unit
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.