Changeset View
Changeset View
Standalone View
Standalone View
share/mk/bsd.prog.mk
Show First 20 Lines • Show All 136 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
.if defined(PROG) | .if defined(PROG) | ||||
PROGNAME?= ${PROG} | PROGNAME?= ${PROG} | ||||
.if defined(SRCS) | .if defined(SRCS) | ||||
OBJS+= ${SRCS:N*.h:${OBJS_SRCS_FILTER:ts:}:S/$/.o/g} | OBJS+= ${SRCS:N*.h:${OBJS_SRCS_FILTER:ts:}:S/$/.o/g} | ||||
.if ${OBJS:M/*} | |||||
sjg: There are several .includes shared by bsd.lib.mk and bsd.prog.mk - why not put this in one… | |||||
arichardsonAuthorUnsubmitted Done Inline ActionsThat would indeed be much better. However, I'm not sure which file would be suitable for this. Could you suggest one? arichardson: That would indeed be much better. However, I'm not sure which file would be suitable for this. | |||||
# Absolute paths to OBJS should be an error inside ${SRCTOP}, but external users | |||||
# might be relying on this feature, so make it a warning there. | |||||
.if defined(SRCTOP) && ${OBJS:M${SRCTOP}*} | |||||
.error "$$OBJS absolute path not allowed: ${OBJS:M${SRCTOP}*}" | |||||
.else | |||||
.warning "$$OBJS absolute path not allowed: ${OBJS:M/*}" | |||||
.endif | |||||
.endif | |||||
# LLVM bitcode / textual IR representations of the program | # LLVM bitcode / textual IR representations of the program | ||||
BCOBJS+=${SRCS:N*.[hsS]:N*.asm:${OBJS_SRCS_FILTER:ts:}:S/$/.bco/g} | BCOBJS+=${SRCS:N*.[hsS]:N*.asm:${OBJS_SRCS_FILTER:ts:}:S/$/.bco/g} | ||||
LLOBJS+=${SRCS:N*.[hsS]:N*.asm:${OBJS_SRCS_FILTER:ts:}:S/$/.llo/g} | LLOBJS+=${SRCS:N*.[hsS]:N*.asm:${OBJS_SRCS_FILTER:ts:}:S/$/.llo/g} | ||||
.if target(beforelinking) | .if target(beforelinking) | ||||
beforelinking: ${OBJS} | beforelinking: ${OBJS} | ||||
${PROG_FULL}: beforelinking | ${PROG_FULL}: beforelinking | ||||
▲ Show 20 Lines • Show All 219 Lines • Show Last 20 Lines |
There are several .includes shared by bsd.lib.mk and bsd.prog.mk - why not put this in one place rather. than duplictae?