1# $NetBSD: Makefile,v 1.8 2014/05/31 22:55:17 mrg Exp $ 2 3# For ../Makefile.inc and bsd.own.mk 4.include <bsd.init.mk> 5 6.if defined(__MINIX) 7# In case of installation of both clang and GCC, we want to be able to 8# switch which one is the default by adapting the cc, c++ & cpp symlinks 9PROG= gcpp 10.else 11PROG= cpp 12.endif # defined(__MINIX) 13SRCS= cppspec.c ${G_GCC_OBJS:.o=.c} 14 15CPPFLAGS+= -I${BACKENDOBJ} 16# XXX 17CPPFLAGS+= -DCONFIGURE_SPECS="\"\"" \ 18 -DDEFAULT_TARGET_VERSION=\"${G_version}\" \ 19 -DDEFAULT_TARGET_MACHINE=\"${MACHINE_GNU_PLATFORM}\" 20 21COPTS+= -Wno-stack-protector 22 23.if defined(__MINIX) 24.if ${HAVE_LLVM:Uno} == "no" 25SYMLINKS= ${BINDIR}/gcpp ${BINDIR}/cpp 26.endif # ${HAVE_LLVM:Uno} == "no" 27.else 28LINKS= ${BINDIR}/cpp ${BINDIR}/gcpp 29.endif # defined(__MINIX) 30 31MAN= cpp.1 32MLINKS+= cpp.1 gcpp.1 cpp.1 cccp.1 33 34TEXINFO= cpp.texi 35INFOFLAGS= -I${DIST}/gcc/doc -I${DIST}/gcc/doc/include -I. 36 37.if !defined(__MINIX) 38LDADD+= -lintl 39DPADD+= ${LIBINTL} 40.endif # !defined(__MINIX) 41 42.include "../Makefile.frontend" 43 44${SRCS}: ${GCCARCH}/defs.mk 45 46.include <bsd.info.mk> 47 48COPTS.gcc.c= -Wno-stack-protector 49 50.PATH: ${DIST}/gcc ${DIST}/gcc/c-family ${DIST}/gcc/doc 51 52cpp.info: gcc-vers.texi 53