Home | History | Annotate | Line # | Download | only in cpp
Makefile revision 1.1.1.1.4.2
      1 #	$NetBSD: Makefile,v 1.1.1.1.4.2 2014/05/22 15:58:51 yamt Exp $
      2 
      3 # For ../Makefile.inc and bsd.own.mk
      4 .include <bsd.init.mk>
      5 
      6 PROG=		cpp
      7 SRCS=		gcc.c cppspec.c prefix.c version.c
      8 
      9 # XXX
     10 .if ${GCC_MACHINE_ARCH} == "x86_64" || ${GCC_MACHINE_ARCH} == "i386"
     11 SRCS+=		driver-i386.c
     12 .PATH:		${DIST}/gcc/config/i386
     13 .endif
     14 .if ${GCC_MACHINE_ARCH} == "powerpc" || ${GCC_MACHINE_ARCH} == "powerpc64"
     15 SRCS+=		driver-rs6000.c
     16 .PATH:		${DIST}/gcc/config/rs6000
     17 .endif
     18 
     19 CPPFLAGS+=	-I${BACKENDOBJ}
     20 CPPFLAGS.prefix.c+=	-DPREFIX=\"/usr\"
     21 
     22 CPPFLAGS.gcc.c+=	-I${GCCARCH} -I${BACKENDOBJ} -I. \
     23 		${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*} \
     24 		-DPREFIX=\"/usr\" \
     25 		-DDEFAULT_TARGET_VERSION=\"${G_version}\" \
     26 		-DDEFAULT_TARGET_MACHINE=\"${MACHINE_GNU_PLATFORM}\" \
     27 		-DCONFIGURE_SPECS="\"\""
     28 
     29 LINKS=		${BINDIR}/cpp ${BINDIR}/gcpp
     30 
     31 TEXINFO=	cpp.texi
     32 INFOFLAGS=	-I${DIST}/gcc/doc -I${DIST}/gcc/doc/include -I.
     33 
     34 MAN=		cpp.1
     35 MLINKS+=	cpp.1 gcpp.1 cpp.1 cccp.1
     36 
     37 .include "../Makefile.frontend"
     38 
     39 LDADD+=		-lintl
     40 
     41 COPTS+=		-Wno-stack-protector
     42 
     43 .include <bsd.info.mk>
     44 
     45 .PATH: ${DIST}/gcc ${DIST}/gcc/doc
     46 
     47 cpp.info: gcc-vers.texi
     48