minix/external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile
Lionel Sambuc 84d9c625bf Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC)
- Fix for possible unset uid/gid in toproto
 - Fix for default mtree style
 - Update libelf
 - Importing libexecinfo
 - Resynchronize GCC, mpc, gmp, mpfr
 - build.sh: Replace params with show-params.
     This has been done as the make target has been renamed in the same
     way, while a new target named params has been added. This new
     target generates a file containing all the parameters, instead of
     printing it on the console.
 - Update test48 with new etc/services (Fix by Ben Gras <ben@minix3.org)
     get getservbyport() out of the inner loop

Change-Id: Ie6ad5226fa2621ff9f0dee8782ea48f9443d2091
2014-07-28 17:05:06 +02:00

62 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2012/08/06 00:19:03 matt Exp $
USE_SHLIBDIR= yes
REQUIRETOOLS= yes
NOLINT= # defined
LIB= gcc_s
.if !defined(__MINIX)
NOSTATICLIB= # defined
.endif # !defined(__MINIX)
NOPROFILE= # defined
NOPICINSTALL= # defined
.include <bsd.own.mk>
.if ${MKGCC} != "no"
.cc: # disable .cc->NULL transform
SHLIB_MAJOR= 1
SHLIB_MINOR= 0
LDFLAGS+= -nodefaultlibs
LDFLAGS+= -Wl,--version-script=${.OBJDIR}/libgcc.map
# XXX handle this better?
.if ${MACHINE} == "emips"
G_LIB2ADD_HACK+= ${GNUHOSTDIST}/gcc/config/floatunsidf.c \
${GNUHOSTDIST}/gcc/config/floatunsisf.c
.endif
SRCS+= ${LIB2FUNCS} ${LIB2DIVMOD} ${LIB2_EH} ${LIB2_EHASM} \
${G_LIB2ADD:T:S/.asm/.S/} ${G_LIB2ADD_HACK:T:S/.asm/.S/} \
${LIB1ASMFUNCS}
COPTS.unwind-dw2.c = -Wno-stack-protector
DPADD+= libgcc.map
CLEANFILES+= libgcc.map
.include <bsd.lib.mk>
.if ${MKPICLIB} != "no"
LIBGCC_S_OBJS= ${SOBJS}
.else
LIBGCC_S_OBJS= ${OBJS}
.endif
libgcc.map: ${LIBGCC_S_OBJS} ${G_SHLIB_MKMAP} ${G_SHLIB_MAPFILES}
{ \
${NM} ${G_SHLIB_NM_FLAGS} ${LIBGCC_S_OBJS}; \
echo %%; \
cat ${G_SHLIB_MAPFILES} | \
${TOOL_SED} -e "/^[ ]*#/d" \
-e 's/^%\(if\|else\|elif\|endif\|define\)/#\1/' | \
${CC} ${G_LIBGCC2_CFLAGS} ${G_INCLUDES} -E -xassembler-with-cpp -; \
} | ${TOOL_AWK} -f ${G_SHLIB_MKMAP} > ${.TARGET}.tmp
mv ${.TARGET}.tmp ${.TARGET}
.else
.include <bsd.prog.mk> # do nothing
.endif