Loading...
pthreads/Makefile.inc Libc-498.1.7 Libc-498
--- Libc/Libc-498.1.7/pthreads/Makefile.inc
+++ Libc/Libc-498/pthreads/Makefile.inc
@@ -1,4 +1,8 @@
-.sinclude "${.CURDIR}/${MACHINE_ARCH}/pthreads/Makefile.inc"
+.ifnmake autopatch
+.if exists(${.CURDIR}/${MACHINE_ARCH}/pthreads/Makefile.inc)
+.include "${.CURDIR}/${MACHINE_ARCH}/pthreads/Makefile.inc"
+.endif
+.endif # !autopatch
 
 .PATH: ${.CURDIR}/pthreads
 
@@ -7,15 +11,13 @@
 MISRCS += pthread_cancelable.c pthread_cond.c pthread_tsd.c pthread.c \
         pthread_mutex.c    thread_setup.c   stack.s pthread_rwlock.c
 
-.ifdef FEATURE_PLOCKSTAT
-${SYMROOTINC}/plockstat.h: ${.CURDIR}/pthreads/plockstat.d
-	mkdir -p ${SYMROOTINC}
+${SYMROOT}/plockstat.h: ${.CURDIR}/pthreads/plockstat.d
 	dtrace -o ${.TARGET} -C -h -s ${.ALLSRC}
 
 .for _src in pthread_cond.c pthread_mutex.c pthread_rwlock.c
-${_src:R}.${OBJSUFFIX}: ${SYMROOTINC}/plockstat.h
+CFLAGS-${_src} += -I${SYMROOT}
+${_src:R}.So ${_src:R}.po ${_src:R}.do ${_src:R}.o: ${SYMROOT}/plockstat.h
 .endfor
-.endif # FEATURE_PLOCKSTAT
 
 PTHREADS_INSTHDRS += pthread.h pthread_impl.h sched.h
 PTHREADS_INSTHDRS := ${PTHREADS_INSTHDRS:S/^/${.CURDIR}\/pthreads\//}