diff options
| author | plunky <plunky@NetBSD.org> | 2014-07-24 20:20:48 +0000 |
|---|---|---|
| committer | plunky <plunky@NetBSD.org> | 2014-07-24 20:20:48 +0000 |
| commit | f287c8ffb8af702bb6801d3710daf678bb974877 (patch) | |
| tree | c4df92d322c9db6727523660ee005e7001afdaa9 /external/bsd/pcc/libexec | |
| parent | 852486b6f4b145f0df63e2e6fbe93ffa49c68484 (diff) | |
update build framework for import of pcc-20140706
Diffstat (limited to 'external/bsd/pcc/libexec')
| -rw-r--r-- | external/bsd/pcc/libexec/Makefile | 4 | ||||
| -rw-r--r-- | external/bsd/pcc/libexec/ccom/Makefile | 6 | ||||
| -rw-r--r-- | external/bsd/pcc/libexec/cpp/Makefile | 13 | ||||
| -rw-r--r-- | external/bsd/pcc/libexec/cxxcom/Makefile | 43 |
4 files changed, 51 insertions, 15 deletions
diff --git a/external/bsd/pcc/libexec/Makefile b/external/bsd/pcc/libexec/Makefile index 994e38f3993..b5e3b13963c 100644 --- a/external/bsd/pcc/libexec/Makefile +++ b/external/bsd/pcc/libexec/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.6 2011/05/20 16:02:23 plunky Exp $ +# $NetBSD: Makefile,v 1.7 2014/07/24 20:20:49 plunky Exp $ .include <bsd.own.mk> -SUBDIR= mkext .WAIT ccom cpp +SUBDIR= mkext .WAIT ccom cpp cxxcom .include <bsd.subdir.mk> diff --git a/external/bsd/pcc/libexec/ccom/Makefile b/external/bsd/pcc/libexec/ccom/Makefile index a93fdc7e040..fe6118afe25 100644 --- a/external/bsd/pcc/libexec/ccom/Makefile +++ b/external/bsd/pcc/libexec/ccom/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2014/03/14 00:06:52 christos Exp $ +# $NetBSD: Makefile,v 1.13 2014/07/24 20:20:49 plunky Exp $ WARNS?= 2 @@ -15,7 +15,7 @@ SRCS+= scan.l SRCS+= optim.c pftn.c trees.c inline.c symtabs.c SRCS+= gcc_compat.c init.c local.c code.c stabs.c builtins.c SRCS+= match.c reader.c optim2.c regs.c local2.c order.c table.c -SRCS+= common.c main.c external.c +SRCS+= common.c main.c external.c unicode.c MAN= ccom.1 @@ -28,7 +28,7 @@ CPPFLAGS+= -I${PCC_DIST}/os/${TARGOS} CPPFLAGS+= -I${PCC_DIST}/arch/${TARGMACH} CPPFLAGS+= -I${PCC_DIST}/cc/ccom -COPTS.pftn.c+= -Wno-uninitialized +COPTS.pftn.c+= ${${ACTIVE_CC} == "gcc" :? -Wno-uninitialized :} DPSRCS= external.c diff --git a/external/bsd/pcc/libexec/cpp/Makefile b/external/bsd/pcc/libexec/cpp/Makefile index 0f9edd5d89a..8cdb76d10a5 100644 --- a/external/bsd/pcc/libexec/cpp/Makefile +++ b/external/bsd/pcc/libexec/cpp/Makefile @@ -1,9 +1,8 @@ -# $NetBSD: Makefile,v 1.9 2011/06/07 13:30:35 plunky Exp $ +# $NetBSD: Makefile,v 1.10 2014/07/24 20:20:49 plunky Exp $ .include <bsd.init.mk> -.PATH: ${PCC_DIST}/cc/cpp \ - ${PCC_DIST}/mip +.PATH: ${PCC_DIST}/cc/cpp # # We build cpp(1) as pcpp(1) to avoid confusion with GCC @@ -28,12 +27,6 @@ CPPFLAGS+= -I${PCC_DIST}/cc/cpp # generate cpy.h YHEADER= -# some files include y.tab.h instead -DPSRCS= y.tab.h - -y.tab.h: cpy.h - ${HOST_LN} -f ${.ALLSRC} ${.TARGET} - -CLEANFILES+= pcpp.1 y.tab.h +CLEANFILES+= pcpp.1 .include <bsd.prog.mk> diff --git a/external/bsd/pcc/libexec/cxxcom/Makefile b/external/bsd/pcc/libexec/cxxcom/Makefile new file mode 100644 index 00000000000..8ccacd6d26f --- /dev/null +++ b/external/bsd/pcc/libexec/cxxcom/Makefile @@ -0,0 +1,43 @@ +# $NetBSD: Makefile,v 1.1 2014/07/24 20:20:49 plunky Exp $ + +WARNS?= 2 + +.include <bsd.init.mk> + +.PATH: ${PCC_DIST}/cc/cxxcom \ + ${PCC_DIST}/arch/${TARGMACH} \ + ${PCC_DIST}/mip + +PROG= cxxcom + +SRCS= cgram.y +SRCS+= scan.l +SRCS+= optim.c pftn.c trees.c inline.c symtabs.c +SRCS+= gcc_compat.c init.c local.c code.c stabs.c builtins.c +SRCS+= match.c reader.c optim2.c regs.c local2.c order.c table.c +SRCS+= common.c main.c external.c cxxcode.c + +MAN= + +# generate cgram.h +YHEADER= + +CPPFLAGS+= -I${.OBJDIR} +CPPFLAGS+= -I${PCC_DIST}/mip +CPPFLAGS+= -I${PCC_DIST}/os/${TARGOS} +CPPFLAGS+= -I${PCC_DIST}/arch/${TARGMACH} +CPPFLAGS+= -I${PCC_DIST}/cc/cxxcom + +COPTS.pftn.c+= ${${ACTIVE_CC} == "gcc" :? -Wno-uninitialized :} + +DPSRCS= external.c + +MKEXTDIR!= cd ${.CURDIR}/../mkext && ${PRINTOBJDIR} + +external.c: ${MKEXTDIR}/mkext + ${_MKTARGET_CREATE} + ${MKEXTDIR}/mkext + +CLEANFILES+= external.c external.h + +.include <bsd.prog.mk> |
