diff options
Diffstat (limited to 'gnu/usr.bin/cc')
-rw-r--r-- | gnu/usr.bin/cc/Makefile.inc | 10 | ||||
-rw-r--r-- | gnu/usr.bin/cc/c++/Makefile | 3 | ||||
-rw-r--r-- | gnu/usr.bin/cc/cc/Makefile | 3 | ||||
-rw-r--r-- | gnu/usr.bin/cc/cc1/Makefile | 3 | ||||
-rw-r--r-- | gnu/usr.bin/cc/cc1plus/Makefile | 3 | ||||
-rw-r--r-- | gnu/usr.bin/cc/cccp/Makefile | 3 | ||||
-rw-r--r-- | gnu/usr.bin/cc/cpp/Makefile | 3 |
7 files changed, 16 insertions, 12 deletions
diff --git a/gnu/usr.bin/cc/Makefile.inc b/gnu/usr.bin/cc/Makefile.inc index 39ae7e7..d3a8b22 100644 --- a/gnu/usr.bin/cc/Makefile.inc +++ b/gnu/usr.bin/cc/Makefile.inc @@ -10,3 +10,13 @@ CFLAGS+= -DDEFAULT_TARGET_MACHINE=\"i386--freebsd\" CFLAGS+= -DMD_EXEC_PREFIX=\"/usr/libexec/\" CFLAGS+= -DSTANDARD_STARTFILE_PREFIX=\"/usr/lib\" CFLAGS+= -DGCC_NAME=\"cc\" + +.if exists(${.CURDIR}/../cc_int/obj) +LIBDESTDIR= ${.CURDIR}/../cc_int/obj +.else +LIBDESTDIR= ${.CURDIR}/../cc_int +.endif + +# XXX LDDESTDIR isn't a directory and there is no standard name for the dir +LDDESTDIR= -L${LIBDESTDIR} +LIBCC_INT= ${LIBDESTDIR}/libcc_int.a diff --git a/gnu/usr.bin/cc/c++/Makefile b/gnu/usr.bin/cc/c++/Makefile index 71fb59e..6b400b6 100644 --- a/gnu/usr.bin/cc/c++/Makefile +++ b/gnu/usr.bin/cc/c++/Makefile @@ -6,8 +6,7 @@ PROG = c++ SRCS = g++.c BINDIR= /usr/bin NOMAN= 1 -LDDESTDIR+= -L${.CURDIR}/../cc_int/obj -LDDESTDIR+= -L${.CURDIR}/../cc_int +DPADD+= ${LIBCC_INT} LDADD+= -lcc_int .include <bsd.prog.mk> diff --git a/gnu/usr.bin/cc/cc/Makefile b/gnu/usr.bin/cc/cc/Makefile index dc503ab..44fabc5 100644 --- a/gnu/usr.bin/cc/cc/Makefile +++ b/gnu/usr.bin/cc/cc/Makefile @@ -5,8 +5,7 @@ PROG = cc SRCS = gcc.c BINDIR= /usr/bin -LDDESTDIR+= -L${.CURDIR}/../cc_int/obj -LDDESTDIR+= -L${.CURDIR}/../cc_int +DPADD+= ${LIBCC_INT} LDADD+= -lcc_int .include <bsd.prog.mk> diff --git a/gnu/usr.bin/cc/cc1/Makefile b/gnu/usr.bin/cc/cc1/Makefile index 667e454..745dc27 100644 --- a/gnu/usr.bin/cc/cc1/Makefile +++ b/gnu/usr.bin/cc/cc1/Makefile @@ -6,8 +6,7 @@ PROG = cc1 SRCS = c-aux-info.c c-convert.c c-decl.c c-iterate.c c-lang.c c-lex.c c-parse.c c-pragma.c c-typeck.c BINDIR= /usr/libexec NOMAN= 1 -LDDESTDIR+= -L${.CURDIR}/../cc_int/obj -LDDESTDIR+= -L${.CURDIR}/../cc_int +DPADD+= ${LIBCC_INT} LDADD+= -lcc_int .include <bsd.prog.mk> diff --git a/gnu/usr.bin/cc/cc1plus/Makefile b/gnu/usr.bin/cc/cc1plus/Makefile index a03330d..5e43626 100644 --- a/gnu/usr.bin/cc/cc1plus/Makefile +++ b/gnu/usr.bin/cc/cc1plus/Makefile @@ -6,8 +6,7 @@ PROG = cc1plus SRCS = call.c class.c cvt.c decl.c decl2.c edsel.c errfn.c error.c except.c expr.c gc.c init.c lex.c method.c parse.c pt.c ptree.c search.c sig.c spew.c tree.c typeck.c typeck2.c xref.c BINDIR= /usr/libexec NOMAN= 1 -LDDESTDIR+= -L${.CURDIR}/../cc_int/obj -LDDESTDIR+= -L${.CURDIR}/../cc_int +DPADD+= ${LIBCC_INT} LDADD+= -lcc_int .include <bsd.prog.mk> diff --git a/gnu/usr.bin/cc/cccp/Makefile b/gnu/usr.bin/cc/cccp/Makefile index 8467da4..b7e09c2 100644 --- a/gnu/usr.bin/cc/cccp/Makefile +++ b/gnu/usr.bin/cc/cccp/Makefile @@ -5,8 +5,7 @@ PROG = cpp SRCS = cccp.c cexp.c BINDIR= /usr/libexec -LDDESTDIR+= -L${.CURDIR}/../cc_int/obj -LDDESTDIR+= -L${.CURDIR}/../cc_int +DPADD+= ${LIBCC_INT} LDADD+= -lcc_int .include <bsd.prog.mk> diff --git a/gnu/usr.bin/cc/cpp/Makefile b/gnu/usr.bin/cc/cpp/Makefile index 8467da4..b7e09c2 100644 --- a/gnu/usr.bin/cc/cpp/Makefile +++ b/gnu/usr.bin/cc/cpp/Makefile @@ -5,8 +5,7 @@ PROG = cpp SRCS = cccp.c cexp.c BINDIR= /usr/libexec -LDDESTDIR+= -L${.CURDIR}/../cc_int/obj -LDDESTDIR+= -L${.CURDIR}/../cc_int +DPADD+= ${LIBCC_INT} LDADD+= -lcc_int .include <bsd.prog.mk> |