2012-06-06 15:06:52 +02:00
|
|
|
# $NetBSD: Makefile,v 1.5 2011/08/09 12:56:41 joerg Exp $
|
|
|
|
|
|
|
|
MYOBJS= ${G_OBJC_OBJS} ${G_C_AND_OBJC_OBJS}
|
|
|
|
PROG= cc1obj
|
|
|
|
SRCS= ${MYOBJS:S/objc\///:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${DIST}/gcc/objc
|
|
|
|
CPPFLAGS.prefix.c+= -DPREFIX=\"/usr\"
|
|
|
|
|
|
|
|
.include "../Makefile.backend"
|
|
|
|
.include "../Makefile.libcpp"
|
|
|
|
.include "../Makefile.libdecnumber"
|
|
|
|
|
|
|
|
# VER_CPPFLAGS from Makefile.inc
|
|
|
|
CPPFLAGS.c-cppbuiltin.c= ${VER_CPPFLAGS}
|
|
|
|
|
|
|
|
COPTS+= -Wno-stack-protector
|
|
|
|
|
2013-04-24 18:57:59 +02:00
|
|
|
.if defined(__MINIX)
|
|
|
|
LDADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lz -lm
|
|
|
|
DPADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBZ} ${LIBM}
|
|
|
|
.else
|
2012-06-06 15:06:52 +02:00
|
|
|
LDADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
|
|
|
|
DPADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBINTL} ${LIBZ} ${LIBM}
|
2013-04-24 18:57:59 +02:00
|
|
|
.endif # defined(__MINIX)
|
2012-06-06 15:06:52 +02:00
|
|
|
|
|
|
|
.PATH: ${DIST}/gcc/objc ${DIST}/gcc ${G_out_file:H}
|