gcc80: Bring in makefiles but leave them unhooked.
[dragonfly.git] / gnu / usr.bin / cc80 / backends / programs / lto-wrapper / Makefile
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
4
5 TOP_PREFIX=     ../../
6
7 .include "../../../Makefile.inc"
8
9 PROG_CXX=       lto-wrapper
10 NOMAN=          yes
11
12 SRCS=
13 OBJS=           lto-wrapper.o \
14                 collect-utils.o \
15                 ggc-none.o
16
17 GUTS=           ../../guts/guts-common/libguts-common.a \
18                 ../../guts/guts-target/libguts-target.a
19 LIBS=           ${LIBCOMMONTARG} ${LIBCOMMON} ${LIBCPP} \
20                 ${LIBBACKTRACE} ${LIBIBERTY} ${LIBDECNUMBER}
21 LDADD=          ${LIBS}
22 DPADD=          ${LIBS}
23
24
25 # hack to force c++ compiler to compile *.c files to create library
26 .for ofile in ${OBJS}
27 ${ofile}: ${ofile:.o=.c}
28         ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
29 .endfor
30
31 .include <bsd.prog.mk>