socsvn commit: r236216 - soc2012/gmiller/locking-head/lib/libthr

gmiller at FreeBSD.org gmiller at FreeBSD.org
Wed May 23 17:05:22 UTC 2012


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 <bsd.lib.mk>
+
+.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}


More information about the svn-soc-all mailing list