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:
Bryan Drewery 2015-11-25 22:32:16 +00:00
parent 45d1fa1891
commit c3d4829ed1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291338

View File

@ -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