Fix the "common object" handling to not depend on ".o" if SRCS only contains
headers. This resulted in 'don't know how to make .o.' errors after the changes in r289286. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
45d1fa1891
commit
c3d4829ed1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291338
@ -102,7 +102,10 @@ _PROGS_ALL_SRCS+= ${s}
|
||||
.endfor
|
||||
.endfor
|
||||
.if !empty(_PROGS_COMMON_SRCS)
|
||||
_PROGS_COMMON_OBJS= ${_PROGS_COMMON_SRCS:N*.h:R:S/$/.o/g}
|
||||
_PROGS_COMMON_OBJS= ${_PROGS_COMMON_SRCS:M*.h}
|
||||
.if !empty(_PROGS_COMMON_SRCS:N*.h)
|
||||
_PROGS_COMMON_OBJS+= ${_PROGS_COMMON_SRCS:N*.h:R:S/$/.o/g}
|
||||
.endif
|
||||
${PROGS}: ${_PROGS_COMMON_OBJS}
|
||||
.endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user