Initial version of reachover Makefiles for pcc
This commit is contained in:
parent
92f04f1f80
commit
a49e168197
5
usr.bin/pcc/Makefile
Normal file
5
usr.bin/pcc/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2007/09/21 21:10:54 abs Exp $
|
||||
|
||||
SUBDIR=cc
|
||||
|
||||
.include <bsd.subdir.mk>
|
5
usr.bin/pcc/cc/Makefile
Normal file
5
usr.bin/pcc/cc/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2007/09/21 21:10:55 abs Exp $
|
||||
|
||||
SUBDIR=cc cpp ccom
|
||||
|
||||
.include <bsd.subdir.mk>
|
22
usr.bin/pcc/cc/Makefile.inc
Normal file
22
usr.bin/pcc/cc/Makefile.inc
Normal file
@ -0,0 +1,22 @@
|
||||
# $NetBSD: Makefile.inc,v 1.1 2007/09/21 21:10:55 abs Exp $
|
||||
|
||||
MDIR= ${DIST}/arch/${TARGMACH}
|
||||
MIPDIR= ${DIST}/mip
|
||||
|
||||
TARGOS = netbsd
|
||||
# XXX Currently only handles x86 (i386)
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
TARGMACH = x86
|
||||
.elif ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
|
||||
TARGMACH = mips
|
||||
.elif ${MACHINE_ARCH} == "vax"
|
||||
TARGMACH = vax
|
||||
.else
|
||||
ERROR!= echo "ERROR: ${MACHINE_ARCH} not yet supported - write code!" >&2;echo
|
||||
.endif
|
||||
|
||||
libexecdir = ${DESTDIR}/usr/libexec
|
||||
includedir = ${DESTDIR}/usr/include
|
||||
|
||||
CPPFLAGS+= -DLIBEXECDIR=\"${libexecdir}\" -DINCLUDEDIR=\"${includedir}\"
|
||||
CPPFLAGS+= -I${DIST}/os/${TARGOS} -I${MDIR} -Dmach_${TARGMACH} -Dos_${TARGOS}
|
18
usr.bin/pcc/cc/cc/Makefile
Normal file
18
usr.bin/pcc/cc/cc/Makefile
Normal file
@ -0,0 +1,18 @@
|
||||
# $NetBSD: Makefile,v 1.1 2007/09/21 21:10:55 abs Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
USE_FORT?= yes
|
||||
|
||||
DIST= ${NETBSDSRCDIR}/dist/pcc
|
||||
SUBDIST=${DIST}/cc/cc
|
||||
.PATH: ${SUBDIST}
|
||||
|
||||
PROG= pcc
|
||||
SRCS= cc.c
|
||||
|
||||
MAN= cc.1
|
||||
|
||||
CLEANFILES+= cc.cat1
|
||||
|
||||
.include <bsd.prog.mk>
|
37
usr.bin/pcc/cc/ccom/Makefile
Normal file
37
usr.bin/pcc/cc/ccom/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# $NetBSD: Makefile,v 1.1 2007/09/21 21:10:55 abs Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
# USE_FORT?= yes
|
||||
|
||||
DIST= ${NETBSDSRCDIR}/dist/pcc
|
||||
SUBDIST=${DIST}/cc/ccom
|
||||
|
||||
PROG= ccom
|
||||
SRCS= cgram.y
|
||||
SRCS+= optim.c pftn.c scan.c trees.c inline.c symtabs.c
|
||||
SRCS+= gcc_compat.c init.c local.c code.c stabs.c match.c reader.c optim2.c
|
||||
SRCS+= regs.c local2.c order.c table.c common.c main.c external.c
|
||||
|
||||
BINDIR= /usr/libexec
|
||||
|
||||
CPPFLAGS+= -I${SUBDIST} -I${.CURDIR} -I${DIST}/mip
|
||||
CPPFLAGS+= -DPCC_DEBUG -DGCC_COMPAT
|
||||
YFLAGS+= -d
|
||||
|
||||
CLEANFILES+= external.h external.c ccom.cat1 cgram.h mkext
|
||||
|
||||
trees.c: pass2.h
|
||||
|
||||
pass2.h: external.h
|
||||
|
||||
optim2.o reader.o: external.h
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
.PATH: ${SUBDIST} ${MIPDIR} ${MDIR}
|
||||
|
||||
external.h external.c: ${MIPDIR}/mkext.c $(MDIR)/table.c
|
||||
$(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -DMKEXT -o mkext ${MIPDIR}/mkext.c \
|
||||
$(MDIR)/table.c ${MIPDIR}/common.c
|
||||
./mkext
|
27
usr.bin/pcc/cc/cpp/Makefile
Normal file
27
usr.bin/pcc/cc/cpp/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
# $NetBSD: Makefile,v 1.1 2007/09/21 21:10:55 abs Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
# USE_FORT?= yes
|
||||
|
||||
DIST= ${NETBSDSRCDIR}/dist/pcc
|
||||
SUBDIST=${DIST}/cc/cpp
|
||||
.PATH: ${SUBDIST}
|
||||
|
||||
PROG= cpp
|
||||
SRCS= cpy.y scanner.c cpp.c
|
||||
|
||||
BINDIR= /usr/libexec
|
||||
|
||||
YFLAGS+= -d
|
||||
CPPFLAGS+= -I${DIST}/cc/cpp -I${.CURDIR}
|
||||
CPPFLAGS+= -DCPP_DEBUG
|
||||
|
||||
CLEANFILES+= lex.yy.c y.tab.h cpp.cat1
|
||||
|
||||
# scanner.l expects to include y.tab.h
|
||||
cpy.c: cpy.y
|
||||
${YACC} ${YFLAGS} -o ${.TARGET} ${.ALLSRC}
|
||||
mv cpy.h y.tab.h
|
||||
|
||||
.include <bsd.prog.mk>
|
Loading…
Reference in New Issue
Block a user