Skip to content

Commit

Permalink
Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../../some/pat…
Browse files Browse the repository at this point in the history
…h (etc).

(Reduces make output by ~ 20%)
  • Loading branch information
lukem committed Aug 19, 2002
1 parent 953c596 commit 3c54fef
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 46 deletions.
7 changes: 3 additions & 4 deletions gnu/lib/libbfd/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.28 2002/06/19 16:10:48 itojun Exp $
# $NetBSD: Makefile,v 1.29 2002/08/19 09:46:39 lukem Exp $

LIB= bfd

Expand All @@ -17,8 +17,7 @@ NOPROFILE= # defined
SHLIB_MAJOR= 4
SHLIB_MINOR= 0

TOP= ${.CURDIR}/../..
DIST= ${TOP}/dist/toolchain
DIST= ${NETBSDSRCDIR}/gnu/dist/toolchain

GCPPFLAGS= ${G_archdefs} ${G_DEFS} ${G_INCLUDES} ${G_TDEFAULTS}
CPPFLAGS+= -I${.CURDIR}/arch/${MACHINE_ARCH} -I. \
Expand Down Expand Up @@ -70,7 +69,7 @@ BFD64=
CPPFLAGS += -DBFD_TARG_64
.endif

DIST= ${.CURDIR}/../../dist
DIST= ${NETBSDSRCDIR}/gnu/dist

# generic bfd
SRCS= archive.c archures.c bfd.c cache.c coffgen.c corefile.c \
Expand Down
9 changes: 4 additions & 5 deletions gnu/lib/libg2c/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.16 2002/02/11 21:36:34 tv Exp $
# $NetBSD: Makefile,v 1.17 2002/08/19 09:46:40 lukem Exp $

REQUIRETOOLS= yes
NOLINT= # defined
Expand All @@ -15,8 +15,7 @@ LIB= g2c
SHLIB_MAJOR= 1
SHLIB_MINOR= 0

TOP= ${.CURDIR}/../..
DIST= ${TOP}/dist/toolchain
DIST= ${NETBSDSRCDIR}/gnu/dist/toolchain

SRCS= ${G_OBJS:.o=.c} ${G_OBJ:.o=.c}

Expand Down Expand Up @@ -145,8 +144,8 @@ CLEANFILES+= g2c.h g2ctypes.sed
# XXX may need a better way to do this; can be overridden with "cp"
MAKE_SYMLINK?= ln -sf

DIST= ${.CURDIR}/../../dist
ARCH= ${.CURDIR}/../../usr.bin/egcs/arch
DIST= ${NETBSDSRCDIR}/gnu/dist
ARCH= ${NETBSDSRCDIR}/gnu/usr.bin/egcs/arch

.if exists(${ARCH}/${MACHINE_ARCH})
ARCHSUBDIR= ${MACHINE_ARCH}
Expand Down
11 changes: 5 additions & 6 deletions gnu/lib/libgcc/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.41 2002/03/28 09:58:09 jmc Exp $
# $NetBSD: Makefile,v 1.42 2002/08/19 09:46:40 lukem Exp $

REQUIRETOOLS= yes

Expand All @@ -14,9 +14,8 @@ NOLINT= # defined
.if exists(${.CURDIR}/${MACHINE_ARCH}.mk)
.include "${.CURDIR}/${MACHINE_ARCH}.mk"

TOP= ${.CURDIR}/../..
DIST= ${TOP}/dist/toolchain
GCCARCH= ${TOP}/usr.bin/gcc/arch/${MACHINE_ARCH}
DIST= ${NETBSDSRCDIR}/gnu/dist/toolchain
GCCARCH= ${NETBSDSRCDIR}/gnu/usr.bin/gcc/arch/${MACHINE_ARCH}

GCPPFLAGS= ${G_LIBGCC2_CFLAGS} ${G_MAYBE_USE_COLLECT2} ${G_INCLUDES}
CPPFLAGS+= -I${GCCARCH} ${GCPPFLAGS:M-D*} ${GCPPFLAGS:M-I*:N-I.*} \
Expand Down Expand Up @@ -81,8 +80,8 @@ HAVE_GCC28!= ${CXX} --version | egrep "^(2\.8|egcs)" ; echo
MKPIC:= no
MKPROFILE:= no

DIST= ${.CURDIR}/../../dist/gcc
ARCH= ${.CURDIR}/../../usr.bin/egcs/arch
DIST= ${NETBSDSRCDIR}/gnu/dist/gcc
ARCH= ${NETBSDSRCDIR}/gnu/usr.bin/egcs/arch

.if exists(${ARCH}/${MACHINE_ARCH})
ARCHSUBDIR= ${MACHINE_ARCH}
Expand Down
5 changes: 2 additions & 3 deletions gnu/lib/libiberty/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2002/02/27 17:03:49 tv Exp $
# $NetBSD: Makefile,v 1.6 2002/08/19 09:46:41 lukem Exp $

NOLINT= # defined
NOPROFILE= # defined
Expand All @@ -13,8 +13,7 @@ LIB= iberty

.include "${.CURDIR}/defs.mk"

TOP= ${.CURDIR}/../..
DIST= ${TOP}/dist/toolchain
DIST= ${NETBSDSRCDIR}/gnu/dist/toolchain

SRCS= ${G_REQUIRED_OFILES:.o=.c} ${G_EXTRA_OFILES:.o=.c} \
${G_LIBOBJS:.o=.c} ${G_ALLOCA:.o=.c}
Expand Down
11 changes: 5 additions & 6 deletions gnu/lib/libobjc/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.19 2002/02/27 17:58:52 tv Exp $
# $NetBSD: Makefile,v 1.20 2002/08/19 09:46:41 lukem Exp $

REQUIRETOOLS= yes
NOLINT= # defined
Expand All @@ -15,9 +15,8 @@ SHLIB_MINOR= 0
# Machine-independent definitions (include file names).
.include "${.CURDIR}/defs.mk"

TOP= ${.CURDIR}/../..
DIST= ${TOP}/dist/toolchain
GCCARCH= ${TOP}/usr.bin/gcc/arch/${MACHINE_ARCH}
DIST= ${NETBSDSRCDIR}/gnu/dist/toolchain
GCCARCH= ${NETBSDSRCDIR}/gnu/usr.bin/gcc/arch/${MACHINE_ARCH}

SRCS= ${G_OBJS:N[A-Z]*:Nlinking.o:.o=.c} ${G_OBJS:M[A-Z]*:.o=.m} linking.m

Expand Down Expand Up @@ -59,8 +58,8 @@ DPSRCS+= runtime-info.h
INCS= hash.h objc-list.h sarray.h objc.h objc-api.h NXConstStr.h \
Object.h Protocol.h encoding.h typedstream.h thr.h
INCSDIR= /usr/include/objc
DIST= ${.CURDIR}/../../dist/gcc
ARCH= ${.CURDIR}/../../usr.bin/egcs/arch
DIST= ${NETBSDSRCDIR}/gnu/dist/gcc
ARCH= ${NETBSDSRCDIR}/gnu/usr.bin/egcs/arch

.if exists(${ARCH}/${MACHINE_ARCH})
ARCHSUBDIR= ${MACHINE_ARCH}
Expand Down
9 changes: 4 additions & 5 deletions gnu/lib/libstdc++/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.18 2002/02/28 02:13:34 tv Exp $
# $NetBSD: Makefile,v 1.19 2002/08/19 09:46:41 lukem Exp $

REQUIRETOOLS= yes
NOLINT= # defined
Expand All @@ -17,8 +17,7 @@ SHLIB_MINOR= 0

SUBDIR= include io config

TOP= ${.CURDIR}/../..
DIST= ${TOP}/dist/toolchain
DIST= ${NETBSDSRCDIR}/gnu/dist/toolchain

SRCS= ${G_OBJS:.o=.cc} ${G_LIBIBERTY_OBJS:.o=.c}
INCS= _G_config.h
Expand All @@ -37,7 +36,7 @@ GCPPFLAGS= ${G_XCFLAGS} ${G_CINCLUDES} ${G_MT_CFLAGS} ${G_CXXINCLUDES}
CPPFLAGS+= -nostdinc++ -I${.CURDIR}/arch/${MACHINE_ARCH} \
${GCPPFLAGS:M-D*} ${GCPPFLAGS:M-I*:N-I.*} \
-I${DIST}/gcc/cp/inc \
-I${.CURDIR}/../libiberty -I${DIST}/include
-I${NETBSDSRCDIR}/gnu/lib/libiberty -I${DIST}/include

CXXFLAGS+= ${G_XCXXFLAGS:M-f*}

Expand Down Expand Up @@ -115,7 +114,7 @@ SRCS= PlotFile.cc SFile.cc builtinbuf.cc editbuf.cc filebuf.cc fstream.cc \
outfloat.c peekc.c strops.c \
cmathi.cc cstdlibi.cc cstringi.cc stdexcepti.cc stlinst.cc

DIST= ${.CURDIR}/../../dist
DIST= ${NETBSDSRCDIR}/gnu/dist
CPPFLAGS+= -I${DESTDIR}/usr/include/g++ -I${DIST}/libstdc++

TEXINFO= iostream.texi
Expand Down
4 changes: 2 additions & 2 deletions gnu/lib/libstdc++/config/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2001/12/30 17:21:19 mrg Exp $
# $NetBSD: Makefile,v 1.10 2002/08/19 09:46:42 lukem Exp $

# Makefile for _G_config.h, a machine-dependent automatically generated
# configuration file.
Expand All @@ -17,7 +17,7 @@ INCSDIR= /usr/include/${MACHINE}

DPSRCS= _G_config.h
CLEANFILES= dummy.c dummy.h dummy.C _G_config.h
DIST= ${.CURDIR}/../../../dist
DIST= ${NETBSDSRCDIR}/gnu/dist

.ifdef DESTDIR
LDPRE= -nostdlib -L${DESTDIR}${SHLIBDIR} -L${DESTDIR}/usr/lib \
Expand Down
5 changes: 2 additions & 3 deletions gnu/lib/libstdc++/include/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2001/07/24 19:44:50 tv Exp $
# $NetBSD: Makefile,v 1.2 2002/08/19 09:46:42 lukem Exp $

.include <bsd.own.mk>

Expand All @@ -10,8 +10,7 @@

.include "${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk"

TOP= ${.CURDIR}/../../..
DIST= ${TOP}/dist/toolchain
DIST= ${NETBSDSRCDIR}/gnu/dist/toolchain

INCS= ${G_HEADERS} ${STD_HEADERS} ${STL_HEADERS}
INCSDIR= /usr/include/g++
Expand Down
7 changes: 3 additions & 4 deletions gnu/lib/libstdc++/io/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2001/12/19 20:52:11 tv Exp $
# $NetBSD: Makefile,v 1.8 2002/08/19 09:46:42 lukem Exp $

NOOBJ= # defined

Expand All @@ -12,8 +12,7 @@ NOOBJ= # defined

.include "${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk"

TOP= ${.CURDIR}/../../..
DIST= ${TOP}/dist/toolchain
DIST= ${NETBSDSRCDIR}/gnu/dist/toolchain

INCS= ${LIBIO_HEADERS:Niostdio.h}
INCSDIR= /usr/include/g++
Expand All @@ -31,7 +30,7 @@ INCS= PlotFile.h SFile.h builtinbuf.h editbuf.h floatio.h fstream.h \
procbuf.h stdiostream.h stream.h streambuf.h strfile.h strstream.h
INCSDIR=/usr/include/g++

.PATH: ${.CURDIR}/../../../dist/libio
.PATH: ${NETBSDSRCDIR}/gnu/dist/libio

.include <bsd.prog.mk>

Expand Down
10 changes: 6 additions & 4 deletions gnu/lib/libstdc++/std/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# $NetBSD: Makefile,v 1.5 2001/12/12 01:48:59 tv Exp $
# $NetBSD: Makefile,v 1.6 2002/08/19 09:46:42 lukem Exp $

NOOBJ= # defined

.include <bsd.own.mk>

INCS= bastring.cc bastring.h complext.cc complext.h dcomplex.h fcomplex.h \
ldcomplex.h straits.h
INCS+= bastring_inst.h complext_inst.h
INCSDIR=/usr/include/g++/std

NOOBJ= # defined

.PATH: ${.CURDIR}/../../../dist/libstdc++/std
.PATH: ${NETBSDSRCDIR}/gnu/dist/libstdc++/std

.include <bsd.prog.mk>
10 changes: 6 additions & 4 deletions gnu/lib/libstdc++/stl/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# $NetBSD: Makefile,v 1.6 2001/12/12 01:48:59 tv Exp $
# $NetBSD: Makefile,v 1.7 2002/08/19 09:46:43 lukem Exp $

NOOBJ= # defined

.include <bsd.own.mk>

INCS= algorithm deque functional hash_map hash_set iterator list map \
memory numeric pthread_alloc queue rope set slist stack utility \
Expand All @@ -16,9 +20,7 @@ INCS= algorithm deque functional hash_map hash_set iterator list map \
tempbuf.h tree.h type_traits.h vector.h
INCSDIR=/usr/include/g++

NOOBJ= # defined

.PATH: ${.CURDIR}/../../../dist/libstdc++/stl
.PATH: ${NETBSDSRCDIR}/gnu/dist/libstdc++/stl

.SUFFIXES:

Expand Down

0 comments on commit 3c54fef

Please sign in to comment.