Changeset View
Changeset View
Standalone View
Standalone View
share/mk/bsd.prog.mk
Show First 20 Lines • Show All 152 Lines • ▼ Show 20 Lines | |||||
LLOBJS= ${OBJS:.o=.llo} | LLOBJS= ${OBJS:.o=.llo} | ||||
${PROG_FULL}.bc: ${BCOBJS} | ${PROG_FULL}.bc: ${BCOBJS} | ||||
${LLVM_LINK} -o ${.TARGET} ${BCOBJS} | ${LLVM_LINK} -o ${.TARGET} ${BCOBJS} | ||||
${PROG_FULL}.ll: ${LLOBJS} | ${PROG_FULL}.ll: ${LLOBJS} | ||||
${LLVM_LINK} -S -o ${.TARGET} ${LLOBJS} | ${LLVM_LINK} -S -o ${.TARGET} ${LLOBJS} | ||||
CLEANFILES+= ${PROG_FULL}.bc ${PROG_FULL}.ll | |||||
.endif # defined(LLVM_LINK) | .endif # defined(LLVM_LINK) | ||||
.if ${MK_MAN} != "no" && !defined(MAN) && \ | .if ${MK_MAN} != "no" && !defined(MAN) && \ | ||||
!defined(MAN1) && !defined(MAN2) && !defined(MAN3) && \ | !defined(MAN1) && !defined(MAN2) && !defined(MAN3) && \ | ||||
!defined(MAN4) && !defined(MAN5) && !defined(MAN6) && \ | !defined(MAN4) && !defined(MAN5) && !defined(MAN6) && \ | ||||
!defined(MAN7) && !defined(MAN8) && !defined(MAN9) | !defined(MAN7) && !defined(MAN8) && !defined(MAN9) | ||||
MAN= ${PROG}.1 | MAN= ${PROG}.1 | ||||
MAN1= ${MAN} | MAN1= ${MAN} | ||||
.endif | .endif | ||||
.endif # defined(PROG) | .endif # defined(PROG) | ||||
.if defined(_SKIP_BUILD) | .if defined(_SKIP_BUILD) | ||||
all: | all: | ||||
.else | .else | ||||
all: ${PROG} ${SCRIPTS} | all: ${PROG} ${SCRIPTS} | ||||
.if ${MK_MAN} != "no" | .if ${MK_MAN} != "no" | ||||
all: all-man | all: all-man | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if defined(PROG) | .if defined(PROG) | ||||
CLEANFILES+= ${PROG} ${PROG}.bc ${PROG}.ll | CLEANFILES+= ${PROG} ${PROG}.bc ${PROG}.ll | ||||
.if ${MK_DEBUG_FILES} != "no" | .if ${MK_DEBUG_FILES} != "no" | ||||
CLEANFILES+= ${PROG_FULL} ${PROG_FULL}.bc ${PROGNAME}.debug ${PROG_FULL}.ll | CLEANFILES+= ${PROG_FULL} ${PROGNAME}.debug | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if defined(OBJS) | .if defined(OBJS) | ||||
CLEANFILES+= ${OBJS} ${BCOBJS} ${LLOBJS} | CLEANFILES+= ${OBJS} ${BCOBJS} ${LLOBJS} | ||||
.endif | .endif | ||||
.include <bsd.libnames.mk> | .include <bsd.libnames.mk> | ||||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |