1 # If we defined SRCS, the mkdep fails because it evaluates files with .c
2 # extension with cc instead of c++ (go figure). To avoid that, we need
3 # to define OBJS directly
8 .include "../../../Makefile.inc"
9 .include "../../../Makefile.langs"
14 # verbatim from gcc/lto/Make-lang.in
15 LTO_OBJS= lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o \
16 lto/lto-partition.o lto/lto-symtab.o
17 OBJS= ${LTO_OBJS:T} main.o tree-browser.o
20 BACKEND= ${LIBBACKEND} ${LIBCOMMONTARG} ${LIBCOMMON} \
21 ${LIBCPP} ${LIBDECNUMBER}
22 LIBS= ${LIBCOMMON} ${LIBCPP} ${LIBBACKTRACE} ${LIBIBERTY} \
24 LDADD= ${BACKEND} ${BACKENDLIBS} ${LIBS}
25 DPADD= ${BACKEND} ${BACKENDLIBS} ${LIBS}
28 # hack to force c++ compiler to compile *.c files to create library
30 ${ofile}: ${ofile:.o=.c}
31 ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
34 .include <bsd.prog.mk>