gcc80: Bring in makefiles but leave them unhooked.
[dragonfly.git] / gnu / usr.bin / cc80 / backends / guts / guts-target / Makefile
1 # Despite the .c extension, these files and headers must be built by c++
2
3 GCC_NO_LIBS=    yes
4 TOP_PREFIX=     ../../
5
6 .include "../../../Makefile.inc"
7 .include "../../../Makefile.langs"
8
9 LIB=            guts-target
10 INTERNALLIB=
11
12 GUTS_TARGETO=   ${C_TARGET_OBJS:T}
13
14 OBJS=           ${GUTS_TARGETO}
15
16 # hack to force c++ compiler to compile *.c files to create library
17 .for cfile in ${GUTS_TARGETO}
18 ${cfile}: ${cfile:.o=.c}
19         ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
20 .endfor
21
22 .include <bsd.lib.mk>