diff options
author | etheisen <etheisen@cvs.openbsd.org> | 1996-02-06 06:58:27 +0000 |
---|---|---|
committer | etheisen <etheisen@cvs.openbsd.org> | 1996-02-06 06:58:27 +0000 |
commit | cc9d95ae2a9bed0fdf355a01ba545bfff8892653 (patch) | |
tree | 4f8cb362220e193458d4552999ffd39af0a05b2a /gnu/usr.bin/gcc | |
parent | 3e4d3d2374196cbd06f6cc355de8dbf88e88f91f (diff) |
Set default include path to '/usr/include/g++' for g++ and '/usr/include'
for gcc. Should help eliminate header file conflicts.
Diffstat (limited to 'gnu/usr.bin/gcc')
-rw-r--r-- | gnu/usr.bin/gcc/Makefile.bsd-wrapper | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/gnu/usr.bin/gcc/Makefile.bsd-wrapper b/gnu/usr.bin/gcc/Makefile.bsd-wrapper index e6574e4671b..62eb7022e98 100644 --- a/gnu/usr.bin/gcc/Makefile.bsd-wrapper +++ b/gnu/usr.bin/gcc/Makefile.bsd-wrapper @@ -1,30 +1,41 @@ -# $Id: Makefile.bsd-wrapper,v 1.6 1996/02/05 01:39:13 etheisen Exp $ +# $Id: Makefile.bsd-wrapper,v 1.7 1996/02/06 06:58:26 etheisen Exp $ MAN= cccp.1 gcc.1 cp/g++.1 -MLINKS= gcc.1 cc.1 +MLINKS+= gcc.1 cc.1 +MLINKS+= cccp.1 cpp.1 +MLINKS+= g++.1 c++.1 GNUCFLAGS= CFLAGS="${CFLAGS}" CLEANFILES= .gdbinit cp/.gdbinit *.info* bi-parser.c bi-parser.h \ c-parse.c c-parse.h cexp.c cp/parse.c cp/parse.h objc-parse.c +# +# This is ugly, but appears to be the only +# method to override default include paths +# without goofing with the source. +# +GPLUSPLUS_INCLUDE_DIR= /usr/include/g++ +GCC_INCLUDE_DIR= /usr/include +INCDEF= T_CPPFLAGS=-DINCLUDE_DEFAULTS=\'{{\"$(GPLUSPLUS_INCLUDE_DIR)\",1,1},{\"$(GCC_INCLUDE_DIR)\",0,0},{0,0,0}}\' + all: config.status - ${MAKE} ${GNUCFLAGS} BISON=yacc LDFLAGS=${LDSTATIC} + ${MAKE} ${GNUCFLAGS} BISON=yacc LDFLAGS=${LDSTATIC} ${INCDEF} .FORCE: .IGNORE config: .FORCE -rm -f config.cache /bin/sh ${.CURDIR}/configure --with-gnu-as --with-gnu-ld \ - --prefix=/usr --gxx-include=/usr/include/g++ + --prefix=/usr --gxx-include=${GPLUSPLUS_INCLUDE_DIR} config.status: /bin/sh ${.CURDIR}/configure --with-gnu-as --with-gnu-ld \ - --prefix=/usr --gxx-include=/usr/include/g++ + --prefix=/usr --gxx-include=${GPLUSPLUS_INCLUDE_DIR} install: maninstall ${MAKE} ${GNUCFLAGS} prefix=${DESTDIR}/usr \ infodir=${DESTDIR}/usr/share/info \ tooldir=/tmp assertdir=/tmp INSTALL_MAN= NO_TARGET_GCC=true \ - bindir=${DESTDIR}/usr/bin install + bindir=${DESTDIR}/usr/bin ${INCDEF} install ln -f ${DESTDIR}/usr/bin/gcc ${DESTDIR}/usr/bin/cc clean cleandir: |