12 .
cc: # disable .cc->NULL transform
14 .if
!defined
(MKNATIVE_LIBGCC_NEW
)
16 SRCS
+= ${LIB2FUNCS} ${LIB2FUNCS_ST} ${LIB2DIVMOD} \
17 ${G_LIB2ADD
:T
:S
/.asm
/.S
/} ${LIB1ASMFUNCS}
22 .
else # defined(MKNATIVE_LIBGCC_NEW)
24 .
include "../Makefile.srcs"
27 TMPLSRCS
= ${TMPLSRCS.libgcc.a
}
28 TMPLFPSRCS
= ${TMPLFPSRCS.libgcc.a
}
29 TMPLASMSRCS
= ${TMPLASMSRCS.libgcc.a
}
30 SRCS
= ${SRCS.libgcc.a
}
32 .
include "../Makefile.wrapper"
34 .
endif # defined(MKNATIVE_LIBGCC_NEW)
38 .if
!defined
(MKNATIVE_LIBGCC_NEW
)
40 CLEANFILES
+= ${SOBJS
:=.tmp1
} ${SOBJS
:=.tmp2
}
44 ${COMPILE.c
} ${CSHLIBFLAGS} ${.IMPSRC
} -o
${.TARGET
}.tmp1
45 ${NM} -pg
${.TARGET
}.tmp1 | \
46 ${TOOL_AWK} 'NF == 3 { print "\t.hidden", $$3 }' | \
47 ${CC} ${COPTS} -Wl
,-x
-r
-nostdinc
-nostdlib
${CPUFLAGS} -o
${.TARGET
}.tmp2
${.TARGET
}.tmp1
-xassembler
-
48 .if defined
(COPTS
) && !empty
(COPTS
:M
*-g
*)
49 mv
${.TARGET
}.tmp2
${.TARGET
}
51 ${LD} -x
-r
${.TARGET
}.tmp2
-o
${.TARGET
}
58 ${COMPILE.S
} ${CAPICFLAGS} ${CFLAGS
:M-
[ID
]*} ${.IMPSRC
} -o
${.TARGET
}.tmp1
59 ${NM} -pg
${.TARGET
}.tmp1 | \
60 ${TOOL_AWK} 'NF == 3 { print "\t.hidden", $$3 }' | \
61 ${CC} -Wl
,-x
-r
-nostdinc
-nostdlib
-o
${.TARGET
}.tmp2
${.TARGET
}.tmp1
-xassembler
-
62 .if defined
(COPTS
) && !empty
(COPTS
:M
*-g
*)
63 mv
${.TARGET
}.tmp2
${.TARGET
}
65 ${LD} -x
-r
${.TARGET
}.tmp2
-o
${.TARGET
}
70 .
endif # !defined(MKNATIVE_LIBGCC_NEW)
73 .
include <bsd.prog.mk
> # do nothing