gcc80: Bring in makefiles but leave them unhooked.
[dragonfly.git] / gnu / usr.bin / cc80 / backends / guts / guts-c / 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-c
10 INTERNALLIB=
11
12 .for object in ${C_AND_OBJC_OBJS}
13 . if ! ${C_COMMON_OBJS:M${object}}
14 .  if ! ${C_TARGET_OBJS:M${object}}
15 GUTS_CO+=       ${object:T}
16 .  endif
17 . endif
18 .endfor
19
20 OBJS=           ${GUTS_CO}
21
22 # hack to force c++ compiler to compile *.c files to create library
23 .for cfile in ${GUTS_CO}
24 ${cfile}: ${cfile:.o=.c}
25         ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
26 .endfor
27
28 .include <bsd.lib.mk>