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 ###CFLAGS+= -static-libstdc++
16 # verbatim from gcc/lto/Make-lang.in
17 COLLECT_OBJS= collect2.o tlink.o vec.o ggc-none.o \
18 collect-utils.o file-find.o hash-table.o
19 # only when CROSS_AIX_SUPPORT
20 #COLLECT_OBJS+= collect2-aix.o
22 OBJS= ${COLLECT_OBJS:T}
24 LIBS= ${LIBCOMMON} ${LIBCPP} ${LIBBACKTRACE} ${LIBIBERTY} \
30 # hack to force c++ compiler to compile *.c files to create library
32 ${ofile}: ${ofile:.o=.c}
33 ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
36 .include <bsd.prog.mk>