From owner-svn-soc-all@FreeBSD.ORG Wed May 23 17:05:22 2012 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from socsvn.FreeBSD.org (unknown [IPv6:2001:4f8:fff6::2f]) by hub.freebsd.org (Postfix) with SMTP id 179F8106566C for ; Wed, 23 May 2012 17:05:20 +0000 (UTC) (envelope-from gmiller@FreeBSD.org) Received: by socsvn.FreeBSD.org (sSMTP sendmail emulation); Wed, 23 May 2012 17:05:20 +0000 Date: Wed, 23 May 2012 17:05:20 +0000 From: gmiller@FreeBSD.org To: svn-soc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <20120523170520.179F8106566C@hub.freebsd.org> Cc: Subject: socsvn commit: r236216 - soc2012/gmiller/locking-head/lib/libthr X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2012 17:05:22 -0000 Author: gmiller Date: Wed May 23 17:05:19 2012 New Revision: 236216 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=236216 Log: Wire lib_profile.a into the build for make, make clean, and make install. Modified: soc2012/gmiller/locking-head/lib/libthr/Makefile Modified: soc2012/gmiller/locking-head/lib/libthr/Makefile ============================================================================== --- soc2012/gmiller/locking-head/lib/libthr/Makefile Wed May 23 17:03:01 2012 (r236215) +++ soc2012/gmiller/locking-head/lib/libthr/Makefile Wed May 23 17:05:19 2012 (r236216) @@ -65,3 +65,35 @@ .endif .include + +.SUFFIXES: .pro + +PRO_FLAGS = -DLOCK_PROFILING + +_LIBS += libthr_profile.a + +.c.pro: + ${CC} ${PRO_FLAGS} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET} + +.S.pro: + ${CC} ${PRO_FLAGS} ${ACFLAGS} -c ${.IMPSRC} -o ${.TARGET} + +PROBJS = ${OBJS:.o=.pro} +CLEANFILES += ${PROBJS} thr_profile.a thr_profile_p.a + +libthr_profile.a: ${PROBJS} + @${ECHO} building lock profiling library libthr_profile.a + @rm -f ${.TARGET} +.if !defined(NM) + @${AR} cq ${.TARGET} `lorder ${PROBJS} | tsort -q` ${ARADD} +.else + @${AR} cq ${.TARGET} `NM='${NM}' lorder ${PROBJS} | tsort -q` ${ARADD} +.endif + + ${RANLIB} ${.TARGET} + +all: libthr_profile.a + +realinstall: + ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + ${_INSTALLFLAGS} libthr_profile.a ${DESTDIR}${LIBDIR}