From 2f15ee67243320d906c911e1d8c24806b7bc4ed2 Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 7 Mar 1998 09:48:14 +0000 Subject: Use `foo/bar.a' instead of `-Lfoo -lbar' for linking to static internal libraries so that `ld -f' in can create correct dependencies for yet-to-be-built libraries. Get the default BINDIR correctly (by including ../Makefile.inc recursively. Override the default it it is wrong. Don't override defaults when the defaults are correct. --- usr.sbin/lpr/lpc/Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'usr.sbin/lpr/lpc/Makefile') diff --git a/usr.sbin/lpr/lpc/Makefile b/usr.sbin/lpr/lpc/Makefile index cf3412d..46a4166 100644 --- a/usr.sbin/lpr/lpc/Makefile +++ b/usr.sbin/lpr/lpc/Makefile @@ -1,5 +1,5 @@ # From: @(#)Makefile 8.1 (Berkeley) 6/6/93 -# $Id: Makefile,v 1.3 1997/12/02 20:45:35 wollman Exp $ +# $Id: Makefile,v 1.4 1997/12/16 17:53:19 bde Exp $ PROG= lpc CFLAGS+=-I${.CURDIR}/../common_source ${CWARNFLAGS} @@ -8,8 +8,7 @@ SRCS= lpc.c cmds.c cmdtab.c BINGRP= daemon BINMODE=2555 .PATH: ${.CURDIR}/../common_source -DPADD= ${.OBJDIR}/../common_source/liblpr.a -LDADD= -L${.OBJDIR}/../common_source -llpr +DPADD= ${LIBLPR} +LDADD= ${LIBLPR} -.include "../../Makefile.inc" .include -- cgit v1.1