In r307676, several make rules were added for LLVM IR files, both in text and binary format. Unfortunately these use different suffixes from what upstream uses: * Text IR has upstream suffix ".ll", while r307676 uses ".llo" * Binary IR has upstream suffix ".bc", while r307676 uses ".bco" Change these to what upstream uses instead. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D8326
112 lines
2.5 KiB
Makefile
112 lines
2.5 KiB
Makefile
# $FreeBSD$
|
|
|
|
.sh:
|
|
cp -f ${.IMPSRC} ${.TARGET}
|
|
chmod a+x ${.TARGET}
|
|
|
|
.c.ln:
|
|
${LINT} ${LINTOBJFLAGS} ${CFLAGS:M-[DIU]*} ${.IMPSRC} || \
|
|
touch ${.TARGET}
|
|
|
|
.cc.ln .C.ln .cpp.ln .cxx.ln:
|
|
${LINT} ${LINTOBJFLAGS} ${CXXFLAGS:M-[DIU]*} ${.IMPSRC} || \
|
|
touch ${.TARGET}
|
|
|
|
.c:
|
|
${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET}
|
|
${CTFCONVERT_CMD}
|
|
|
|
.c.o:
|
|
${CC} ${STATIC_CFLAGS} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
|
|
${CTFCONVERT_CMD}
|
|
|
|
.c.bc:
|
|
${CC} -emit-llvm ${IR_CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
|
|
|
|
.c.ll:
|
|
${CC} -emit-llvm ${IR_CFLAGS} -S ${.IMPSRC} -o ${.TARGET}
|
|
|
|
.cc .cpp .cxx .C:
|
|
${CXX} ${CXXFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET}
|
|
|
|
.cc.o .cpp.o .cxx.o .C.o:
|
|
${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
|
|
|
|
.cc.bc .cpp.bc .cxx.bc .C.bc:
|
|
${CXX} -emit-llvm ${IR_CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
|
|
|
|
.cc.ll .cpp.ll .cxx.ll .C.ll:
|
|
${CXX} -emit-llvm ${IR_CXXFLAGS} -S ${.IMPSRC} -o ${.TARGET}
|
|
|
|
.m.o:
|
|
${OBJC} ${OBJCFLAGS} -c ${.IMPSRC} -o ${.TARGET}
|
|
${CTFCONVERT_CMD}
|
|
|
|
.p.o:
|
|
${PC} ${PFLAGS} -c ${.IMPSRC} -o ${.TARGET}
|
|
${CTFCONVERT_CMD}
|
|
|
|
.e .r .F .f:
|
|
${FC} ${RFLAGS} ${EFLAGS} ${FFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} \
|
|
-o ${.TARGET}
|
|
|
|
.e.o .r.o .F.o .f.o:
|
|
${FC} ${RFLAGS} ${EFLAGS} ${FFLAGS} -c ${.IMPSRC} -o ${.TARGET}
|
|
|
|
.S.o:
|
|
${CC:N${CCACHE_BIN}} ${CFLAGS} ${ACFLAGS} -c ${.IMPSRC} -o ${.TARGET}
|
|
${CTFCONVERT_CMD}
|
|
|
|
.asm.o:
|
|
${CC:N${CCACHE_BIN}} -x assembler-with-cpp ${CFLAGS} ${ACFLAGS} -c ${.IMPSRC} \
|
|
-o ${.TARGET}
|
|
${CTFCONVERT_CMD}
|
|
|
|
.s.o:
|
|
${AS} ${AFLAGS} -o ${.TARGET} ${.IMPSRC}
|
|
${CTFCONVERT_CMD}
|
|
|
|
# XXX not -j safe
|
|
.y.o:
|
|
${YACC} ${YFLAGS} ${.IMPSRC}
|
|
${CC} ${CFLAGS} -c y.tab.c -o ${.TARGET}
|
|
rm -f y.tab.c
|
|
${CTFCONVERT_CMD}
|
|
|
|
.l.o:
|
|
${LEX} -t ${LFLAGS} ${.IMPSRC} > ${.PREFIX}.tmp.c
|
|
${CC} ${CFLAGS} -c ${.PREFIX}.tmp.c -o ${.TARGET}
|
|
rm -f ${.PREFIX}.tmp.c
|
|
${CTFCONVERT_CMD}
|
|
|
|
# XXX not -j safe
|
|
.y.c:
|
|
${YACC} ${YFLAGS} ${.IMPSRC}
|
|
mv y.tab.c ${.TARGET}
|
|
|
|
.l.c:
|
|
${LEX} -t ${LFLAGS} ${.IMPSRC} > ${.TARGET}
|
|
|
|
.s.out .c.out .o.out:
|
|
${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET}
|
|
${CTFCONVERT_CMD}
|
|
|
|
.f.out .F.out .r.out .e.out:
|
|
${FC} ${EFLAGS} ${RFLAGS} ${FFLAGS} ${LDFLAGS} ${.IMPSRC} \
|
|
${LDLIBS} -o ${.TARGET}
|
|
rm -f ${.PREFIX}.o
|
|
${CTFCONVERT_CMD}
|
|
|
|
# XXX not -j safe
|
|
.y.out:
|
|
${YACC} ${YFLAGS} ${.IMPSRC}
|
|
${CC} ${CFLAGS} ${LDFLAGS} y.tab.c ${LDLIBS} -ly -o ${.TARGET}
|
|
rm -f y.tab.c
|
|
${CTFCONVERT_CMD}
|
|
|
|
.l.out:
|
|
${LEX} -t ${LFLAGS} ${.IMPSRC} > ${.PREFIX}.tmp.c
|
|
${CC} ${CFLAGS} ${LDFLAGS} ${.PREFIX}.tmp.c ${LDLIBS} -ll -o ${.TARGET}
|
|
rm -f ${.PREFIX}.tmp.c
|
|
${CTFCONVERT_CMD}
|