summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorpaul <paul@NetBSD.org>1993-07-16 00:25:43 +0000
committerpaul <paul@NetBSD.org>1993-07-16 00:25:43 +0000
commit2b47e3e1ae647cd2e461e1c24983f293bfedaa17 (patch)
tree4737e6fd3721950c201897888e415e44ae043865 /gnu
parent9c0456d7d77f5706d5c7206003b32fda2b23281f (diff)
Configured gcc2 for multiple architectures.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/gcc2/cc/Makefile6
-rw-r--r--gnu/usr.bin/gcc2/cc1/Makefile5
-rw-r--r--gnu/usr.bin/gcc2/cc1obj/Makefile6
-rw-r--r--gnu/usr.bin/gcc2/cc1plus/Makefile5
4 files changed, 13 insertions, 9 deletions
diff --git a/gnu/usr.bin/gcc2/cc/Makefile b/gnu/usr.bin/gcc2/cc/Makefile
index 19062f4384a..dc3509c8808 100644
--- a/gnu/usr.bin/gcc2/cc/Makefile
+++ b/gnu/usr.bin/gcc2/cc/Makefile
@@ -3,7 +3,8 @@ PROG= cc
SRCS= gcc.c version.c obstack.c
MAN1= gcc.0 g++.0
BINDIR= /usr/bin
-CFLAGS+= -I$(.CURDIR) -I$(.CURDIR)/../common
+CFLAGS+= -I$(.CURDIR) -I$(.CURDIR)/../common \
+ -I$(.CURDIR)/.. -I$(.CURDIR)/../$(MACHINE)
LINKS+= ${DESTDIR}${BINDIR}/cc ${DESTDIR}${BINDIR}/gcc
LINKS+= ${DESTDIR}${BINDIR}/g++ ${DESTDIR}${BINDIR}/c++
@@ -13,6 +14,5 @@ MLINKS= gcc.1 cc.1 g++.1 c++.1
afterinstall:
install -c -o $(BINOWN) -g $(BINGRP) -m $(BINMODE) \
- $(.CURDIR)/g++.script $(DESTDIR)/usr/bin/g++
-
+ $(.CURDIR)/g++.script $(DESTDIR)$(BINDIR)/g++
.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/gcc2/cc1/Makefile b/gnu/usr.bin/gcc2/cc1/Makefile
index ebeafc3869f..ae10a254d05 100644
--- a/gnu/usr.bin/gcc2/cc1/Makefile
+++ b/gnu/usr.bin/gcc2/cc1/Makefile
@@ -5,8 +5,9 @@ SRCS= c-parse.c c-lang.c c-lex.c c-pragma.c c-decl.c \
c-typeck.c c-convert.c c-aux-info.c c-iterate.c \
$(COMMON_SRC)
-CFLAGS+= -I. -I$(.CURDIR) -I$(.CURDIR)/../common
+CFLAGS+= -I. -I$(.CURDIR) -I$(.CURDIR)/../common \
+ -I$(.CURDIR)/.. -I$(.CURDIR)/../$(MACHINE)
YFLAGS=
NOMAN= noman
-.PATH: $(.CURDIR)/../common
+.PATH: $(.CURDIR)/../common $(.CURDIR)/../$(MACHINE)
.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/gcc2/cc1obj/Makefile b/gnu/usr.bin/gcc2/cc1obj/Makefile
index a7c398dca3f..b2d1793792d 100644
--- a/gnu/usr.bin/gcc2/cc1obj/Makefile
+++ b/gnu/usr.bin/gcc2/cc1obj/Makefile
@@ -4,9 +4,11 @@ SRCS= objc-parse.c objc-act.c \
c-lex.c c-pragma.c c-decl.c c-typeck.c c-convert.c\
c-aux-info.c c-iterate.c \
$(COMMON_SRC)
-CFLAGS+= -I. -I$(.CURDIR) -I$(.CURDIR)/../common
+CFLAGS+= -I. -I$(.CURDIR) -I$(.CURDIR)/../common \
+ -I$(.CURDIR)/.. -I$(.CURDIR)/../$(MACHINE)
YFLAGS=
NOMAN= noman
-.PATH: $(.CURDIR)/../common $(.CURDIR)/../cc1
+.PATH: $(.CURDIR)/../common $(.CURDIR)/../cc1 \
+ $(.CURDIR)/../$(MACHINE)
.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/gcc2/cc1plus/Makefile b/gnu/usr.bin/gcc2/cc1plus/Makefile
index def6f2bf501..f37b632c44e 100644
--- a/gnu/usr.bin/gcc2/cc1plus/Makefile
+++ b/gnu/usr.bin/gcc2/cc1plus/Makefile
@@ -6,9 +6,10 @@ SRCS= cp-parse.c cp-decl.c cp-decl2.c cp-typeck.c cp-type2.c \
cp-except.c cp-expr.c cp-pt.c cp-edsel.c cp-xref.c \
cp-spew.c $(COMMON_SRC)
-CFLAGS+= -I. -I$(.CURDIR) -I$(.CURDIR)/../common
+CFLAGS+= -I. -I$(.CURDIR) -I$(.CURDIR)/../common \
+ -I$(.CURDIR)/.. -I$(.CURDIR)/../$(MACHINE)
NOMAN= noman
YFLAGS=
-.PATH: $(.CURDIR)/../common
+.PATH: $(.CURDIR)/../common $(.CURDIR)/../$(MACHINE)
.include <bsd.prog.mk>