head	1.17;
access;
symbols
	perseant-exfatfs-base-20250801:1.17
	perseant-exfatfs-base-20240630:1.17
	perseant-exfatfs:1.17.0.12
	perseant-exfatfs-base:1.17
	cjep_sun2x:1.17.0.10
	cjep_sun2x-base:1.17
	cjep_staticlib_x-base1:1.17
	cjep_staticlib_x:1.17.0.8
	cjep_staticlib_x-base:1.17
	phil-wifi-20200421:1.17
	phil-wifi-20200411:1.17
	phil-wifi-20200406:1.17
	pgoyette-compat-merge-20190127:1.17
	pgoyette-compat-20190127:1.17
	pgoyette-compat-20190118:1.17
	pgoyette-compat-1226:1.17
	pgoyette-compat-1126:1.17
	pgoyette-compat-1020:1.17
	pgoyette-compat-0930:1.17
	pgoyette-compat-0906:1.17
	netbsd-7-2-RELEASE:1.11
	pgoyette-compat-0728:1.17
	pgoyette-compat-0625:1.17
	pgoyette-compat-0521:1.17
	pgoyette-compat-0502:1.17
	pgoyette-compat-0422:1.17
	pgoyette-compat-0415:1.17
	pgoyette-compat-0407:1.17
	pgoyette-compat-0330:1.17
	pgoyette-compat-0322:1.17
	pgoyette-compat-0315:1.17
	netbsd-7-1-2-RELEASE:1.11
	pgoyette-compat:1.17.0.6
	pgoyette-compat-base:1.17
	netbsd-7-1-1-RELEASE:1.11
	perseant-stdc-iso10646:1.17.0.4
	perseant-stdc-iso10646-base:1.17
	prg-localcount2-base3:1.17
	prg-localcount2-base2:1.17
	prg-localcount2-base1:1.17
	prg-localcount2:1.17.0.2
	prg-localcount2-base:1.17
	pgoyette-localcount-20170426:1.17
	bouyer-socketcan-base1:1.17
	pgoyette-localcount-20170320:1.17
	netbsd-7-1:1.11.0.12
	netbsd-7-1-RELEASE:1.11
	netbsd-7-1-RC2:1.11
	netbsd-7-nhusb-base-20170116:1.11
	bouyer-socketcan:1.16.0.2
	bouyer-socketcan-base:1.16
	pgoyette-localcount-20170107:1.16
	netbsd-7-1-RC1:1.11
	pgoyette-localcount-20161104:1.11
	netbsd-7-0-2-RELEASE:1.11
	localcount-20160914:1.11
	netbsd-7-nhusb:1.11.0.10
	netbsd-7-nhusb-base:1.11
	pgoyette-localcount-20160806:1.11
	pgoyette-localcount-20160726:1.11
	pgoyette-localcount:1.11.0.8
	pgoyette-localcount-base:1.11
	netbsd-7-0-1-RELEASE:1.11
	netbsd-7-0:1.11.0.6
	netbsd-7-0-RELEASE:1.11
	netbsd-7-0-RC3:1.11
	netbsd-7-0-RC2:1.11
	netbsd-7-0-RC1:1.11
	netbsd-5-2-3-RELEASE:1.7
	netbsd-5-1-5-RELEASE:1.7
	netbsd-6-0-6-RELEASE:1.8
	netbsd-6-1-5-RELEASE:1.8
	netbsd-7:1.11.0.4
	netbsd-7-base:1.11
	yamt-pagecache-base9:1.11
	yamt-pagecache-tag8:1.8.4.2
	netbsd-6-1-4-RELEASE:1.8
	netbsd-6-0-5-RELEASE:1.8
	tls-earlyentropy:1.11.0.2
	tls-earlyentropy-base:1.11
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.11
	riastradh-drm2-base3:1.11
	netbsd-6-1-3-RELEASE:1.8
	netbsd-6-0-4-RELEASE:1.8
	netbsd-5-2-2-RELEASE:1.7
	netbsd-5-1-4-RELEASE:1.7
	netbsd-6-1-2-RELEASE:1.8
	netbsd-6-0-3-RELEASE:1.8
	netbsd-5-2-1-RELEASE:1.7
	netbsd-5-1-3-RELEASE:1.7
	netbsd-6-1-1-RELEASE:1.8
	riastradh-drm2-base2:1.10
	riastradh-drm2-base1:1.10
	riastradh-drm2:1.10.0.4
	riastradh-drm2-base:1.10
	netbsd-6-1:1.8.0.12
	netbsd-6-0-2-RELEASE:1.8
	netbsd-6-1-RELEASE:1.8
	netbsd-6-1-RC4:1.8
	netbsd-6-1-RC3:1.8
	agc-symver:1.10.0.6
	agc-symver-base:1.10
	netbsd-6-1-RC2:1.8
	netbsd-6-1-RC1:1.8
	yamt-pagecache-base8:1.10
	netbsd-5-2:1.7.0.28
	netbsd-6-0-1-RELEASE:1.8
	yamt-pagecache-base7:1.10
	netbsd-5-2-RELEASE:1.7
	netbsd-5-2-RC1:1.7
	matt-nb6-plus-nbase:1.8
	yamt-pagecache-base6:1.10
	netbsd-6-0:1.8.0.10
	netbsd-6-0-RELEASE:1.8
	netbsd-6-0-RC2:1.8
	tls-maxphys:1.10.0.2
	tls-maxphys-base:1.11
	matt-nb6-plus:1.8.0.8
	matt-nb6-plus-base:1.8
	netbsd-6-0-RC1:1.8
	yamt-pagecache-base5:1.9
	yamt-pagecache-base4:1.9
	netbsd-6:1.8.0.6
	netbsd-6-base:1.8
	netbsd-5-1-2-RELEASE:1.7
	netbsd-5-1-1-RELEASE:1.7
	yamt-pagecache-base3:1.8
	yamt-pagecache-base2:1.8
	yamt-pagecache:1.8.0.4
	yamt-pagecache-base:1.8
	cherry-xenmp:1.8.0.2
	cherry-xenmp-base:1.8
	bouyer-quota2-nbase:1.7
	bouyer-quota2:1.7.0.26
	bouyer-quota2-base:1.7
	matt-mips64-premerge-20101231:1.7
	matt-nb5-mips64-premerge-20101231:1.7
	matt-nb5-pq3:1.7.0.24
	matt-nb5-pq3-base:1.7
	netbsd-5-1:1.7.0.22
	netbsd-5-1-RELEASE:1.7
	netbsd-5-1-RC4:1.7
	matt-nb5-mips64-k15:1.7
	netbsd-5-1-RC3:1.7
	netbsd-5-1-RC2:1.7
	netbsd-5-1-RC1:1.7
	netbsd-5-0-2-RELEASE:1.7
	matt-nb5-mips64-premerge-20091211:1.7
	matt-premerge-20091211:1.7
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.7
	matt-nb4-mips64-k7-u2a-k9b:1.7
	matt-nb5-mips64-u1-k1-k5:1.7
	matt-nb5-mips64:1.7.0.20
	netbsd-5-0-1-RELEASE:1.7
	jym-xensuspend-nbase:1.7
	netbsd-5-0:1.7.0.18
	netbsd-5-0-RELEASE:1.7
	netbsd-5-0-RC4:1.7
	netbsd-5-0-RC3:1.7
	netbsd-5-0-RC2:1.7
	jym-xensuspend:1.7.0.16
	jym-xensuspend-base:1.7
	netbsd-5-0-RC1:1.7
	netbsd-5:1.7.0.14
	netbsd-5-base:1.7
	matt-mips64-base2:1.7
	matt-mips64:1.6.0.6
	mjf-devfs2:1.7.0.12
	mjf-devfs2-base:1.7
	netbsd-4-0-1-RELEASE:1.4
	wrstuden-revivesa-base-3:1.7
	wrstuden-revivesa-base-2:1.7
	wrstuden-fixsa-newbase:1.4
	wrstuden-revivesa-base-1:1.7
	yamt-pf42-base4:1.7
	yamt-pf42-base3:1.7
	hpcarm-cleanup-nbase:1.7
	yamt-pf42-baseX:1.7
	yamt-pf42-base2:1.7
	wrstuden-revivesa:1.7.0.10
	wrstuden-revivesa-base:1.7
	yamt-pf42:1.7.0.8
	yamt-pf42-base:1.7
	keiichi-mipv6:1.7.0.6
	keiichi-mipv6-base:1.7
	matt-armv6-nbase:1.7
	matt-armv6-prevmlocking:1.7
	wrstuden-fixsa-base-1:1.4
	netbsd-4-0:1.4.0.20
	netbsd-4-0-RELEASE:1.4
	cube-autoconf:1.7.0.4
	cube-autoconf-base:1.7
	netbsd-4-0-RC5:1.4
	netbsd-4-0-RC4:1.4
	netbsd-4-0-RC3:1.4
	netbsd-4-0-RC2:1.4
	nick-csl-alignment-base5:1.7
	nick-csl-alignment-base4:1.7
	netbsd-4-0-RC1:1.4
	matt-armv6:1.7.0.2
	matt-armv6-base:1.7
	nick-csl-alignment-base3:1.7
	nick-csl-alignment-base2:1.6
	matt-mips64-base:1.6
	hpcarm-cleanup:1.6.0.4
	hpcarm-cleanup-base:1.7
	nick-csl-alignment:1.6.0.2
	nick-csl-alignment-base:1.6
	netbsd-3-1-1-RELEASE:1.4
	netbsd-3-0-3-RELEASE:1.4
	wrstuden-fixsa:1.4.0.18
	wrstuden-fixsa-base:1.4
	abandoned-netbsd-4-base:1.4
	abandoned-netbsd-4:1.4.0.12
	netbsd-3-1:1.4.0.14
	netbsd-3-1-RELEASE:1.4
	netbsd-3-0-2-RELEASE:1.4
	netbsd-3-1-RC4:1.4
	netbsd-3-1-RC3:1.4
	netbsd-3-1-RC2:1.4
	netbsd-3-1-RC1:1.4
	netbsd-4:1.4.0.16
	netbsd-4-base:1.4
	netbsd-3-0-1-RELEASE:1.4
	netbsd-3-0:1.4.0.10
	netbsd-3-0-RELEASE:1.4
	netbsd-3-0-RC6:1.4
	netbsd-3-0-RC5:1.4
	netbsd-3-0-RC4:1.4
	netbsd-3-0-RC3:1.4
	netbsd-3-0-RC2:1.4
	netbsd-3-0-RC1:1.4
	netbsd-2-0-3-RELEASE:1.4
	netbsd-2-1:1.4.0.8
	netbsd-2-1-RELEASE:1.4
	netbsd-2-1-RC6:1.4
	netbsd-2-1-RC5:1.4
	netbsd-2-1-RC4:1.4
	netbsd-2-1-RC3:1.4
	netbsd-2-1-RC2:1.4
	netbsd-2-1-RC1:1.4
	netbsd-2-0-2-RELEASE:1.4
	netbsd-3:1.4.0.6
	netbsd-3-base:1.4
	netbsd-2-0-1-RELEASE:1.4
	netbsd-2:1.4.0.4
	netbsd-2-base:1.4
	netbsd-2-0-RELEASE:1.4
	netbsd-2-0-RC5:1.4
	netbsd-2-0-RC4:1.4
	netbsd-2-0-RC3:1.4
	netbsd-2-0-RC2:1.4
	netbsd-2-0-RC1:1.4
	netbsd-2-0:1.4.0.2
	netbsd-2-0-base:1.4
	nathanw_sa_end:1.1.2.4
	nathanw_sa_before_merge:1.1
	nathanw_sa:1.1.0.2;
locks; strict;
comment	@# @;


1.17
date	2017.02.08.03.44.41;	author kamil;	state dead;
branches;
next	1.16;
commitid	uFtv2cXdJlIL96Fz;

1.16
date	2016.11.22.03.52.01;	author kamil;	state Exp;
branches
	1.16.2.1;
next	1.15;
commitid	ZREDXVaV411VK4vz;

1.15
date	2016.11.22.01.49.36;	author kamil;	state Exp;
branches;
next	1.14;
commitid	3YSA2l9LMmWH44vz;

1.14
date	2016.11.22.00.07.40;	author kamil;	state Exp;
branches;
next	1.13;
commitid	YYUbuuEqKeeZv3vz;

1.13
date	2016.11.21.22.19.03;	author kamil;	state Exp;
branches;
next	1.12;
commitid	SFuJ4uFZOmLbT2vz;

1.12
date	2016.11.21.20.43.25;	author kamil;	state Exp;
branches;
next	1.11;
commitid	Ul2U741lsMLLn2vz;

1.11
date	2014.03.04.14.58.14;	author joerg;	state Exp;
branches
	1.11.8.1;
next	1.10;
commitid	tpAEAHn6gebjoorx;

1.10
date	2012.07.19.06.33.48;	author joerg;	state Exp;
branches
	1.10.2.1;
next	1.9;

1.9
date	2012.03.21.05.37.43;	author matt;	state Exp;
branches;
next	1.8;

1.8
date	2011.03.17.01.01.15;	author matt;	state Exp;
branches
	1.8.4.1;
next	1.7;

1.7
date	2007.08.16.01.09.50;	author ad;	state Exp;
branches;
next	1.6;

1.6
date	2007.02.09.22.09.32;	author ad;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	2006.12.24.03.54.43;	author christos;	state Exp;
branches;
next	1.4;

1.4
date	2003.11.27.16.32.09;	author cl;	state Exp;
branches;
next	1.3;

1.3
date	2003.10.26.07.25.34;	author lukem;	state Exp;
branches;
next	1.2;

1.2
date	2003.01.18.10.34.23;	author thorpej;	state Exp;
branches;
next	1.1;

1.1
date	2002.07.31.23.05.17;	author nathanw;	state dead;
branches
	1.1.2.1;
next	;

1.16.2.1
date	2017.04.21.16.53.12;	author bouyer;	state dead;
branches;
next	;
commitid	dUG7nkTKALCadqOz;

1.11.8.1
date	2017.01.07.08.56.04;	author pgoyette;	state Exp;
branches;
next	1.11.8.2;
commitid	uEL0C1YuiJrlV0Bz;

1.11.8.2
date	2017.03.20.06.57.00;	author pgoyette;	state dead;
branches;
next	;
commitid	jjw7cAwgyKq7RfKz;

1.10.2.1
date	2014.08.20.00.02.20;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.8.4.1
date	2012.04.17.00.05.31;	author yamt;	state Exp;
branches;
next	1.8.4.2;

1.8.4.2
date	2012.10.30.18.59.15;	author yamt;	state Exp;
branches;
next	1.8.4.3;

1.8.4.3
date	2014.05.22.11.36.59;	author yamt;	state Exp;
branches;
next	;
commitid	HJV5p3BoaVY5KwBx;

1.6.2.1
date	2007.09.03.10.14.17;	author skrll;	state Exp;
branches;
next	;

1.1.2.1
date	2002.07.31.23.05.18;	author nathanw;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	2002.10.07.01.23.08;	author thorpej;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2002.10.07.02.17.37;	author thorpej;	state Exp;
branches;
next	1.1.2.4;

1.1.2.4
date	2002.10.15.11.32.07;	author skrll;	state Exp;
branches;
next	;


desc
@@


1.17
log
@libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>
@
text
@#	$NetBSD: Makefile,v 1.16 2016/11/22 03:52:01 kamil Exp $
#

WARNS?=		5

.include <bsd.own.mk>

LIBPDIR=	${.CURDIR}/../libpthread

.if defined(PTHREAD_MACHINE_ARCH) && !empty(PTHREAD_MACHINE_ARCH) && \
    exists(${LIBPDIR}/arch/${PTHREAD_MACHINE_ARCH})
ARCHSUBDIR=	${PTHREAD_MACHINE_ARCH}
.elif exists(${LIBPDIR}/arch/${MACHINE_ARCH})
ARCHSUBDIR=	${MACHINE_ARCH}
.elif exists(${LIBPDIR}/arch/${MACHINE_CPU}) 
ARCHSUBDIR=	${MACHINE_CPU}
.else
.BEGIN:
	@@echo "no ARCHSUBDIR for ${MACHINE_ARCH}/${MACHINE_CPU}; skipping..."
.endif

.if defined(ARCHSUBDIR)

LIB=	pthread_dbg

ARCHDIR=	${LIBPDIR}/arch/${ARCHSUBDIR}
.PATH:	${ARCHDIR}

CPPFLAGS+=	-I${ARCHDIR} -I${LIBPDIR} -I${.CURDIR}

assym.h: genassym.sh ${ARCHDIR}/genassym.cf
	${TOOL_GENASSYM} -- ${CC} ${CFLAGS:N-Wa,*} ${CPPFLAGS} ${PROF} \
		${GENASSYM_CPPFLAGS} < ${ARCHDIR}/genassym.cf > assym.h.tmp && \
	mv -f assym.h.tmp assym.h

SRCS=	pthread_dbg.c 

CPPFLAGS+=	-D__LIBPTHREAD_SOURCE__

INCS=	pthread_dbg.h
INCSDIR=/usr/include

MAN+=	pthread_dbg.3
MAN+=	td_open.3
MAN+=	td_map_pth2thr.3
MAN+=	td_thr_getname.3
MAN+=	td_thr_info.3
MAN+=	td_thr_iter.3

MLINKS+=	td_open.3 td_close.3

.include <bsd.lib.mk>

.else

.include <bsd.man.mk>

.endif
@


1.16
log
@Document td_map_pth2thr(3) from libpthread_dbg(3)

td_map_pth2thr - convert the pthread_t to a thread handle

Sponsored by <The NetBSD Foundation>
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2016/11/22 01:49:36 kamil Exp $
@


1.16.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2016/11/22 03:52:01 kamil Exp $
@


1.15
log
@Document td_thr_getname(3) from libpthread_dbg(3)

td_thr_getname - get the user-assigned name of a thread

Sponsored by <The NetBSD Foundation>
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2016/11/22 00:07:40 kamil Exp $
d45 1
@


1.14
log
@Document td_thr_iter(3) from libpthread_dbg(3)

td_thr_iter - iterate over the threads in the process

Sponsored by <The NetBSD Foundation>
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2016/11/21 22:19:03 kamil Exp $
d45 1
@


1.13
log
@Document td_thr_info(3) from libpthread_dbg(3)

td_thr_info - get information on a thread

Currently a subset of td_thread_info_t is documented. This version
describes thread_addr and thread_state.

Sponsored by <The NetBSD Foundation>
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2016/11/21 20:43:25 kamil Exp $
d46 1
@


1.12
log
@Add initial documentation (man-pages) for libpthread_dbg

Document libpthread_dbg and basic function calls: td_open() and td_close()

Sponsored by <The NetBSD Foundation>
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2014/03/04 14:58:14 joerg Exp $
d45 1
@


1.11
log
@Introduce GENASSYM_CPPFLAGS for options during genassym processing.
Consistently drop assembler flags.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2012/07/19 06:33:48 joerg Exp $
d43 5
@


1.11.8.1
log
@Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2016/11/22 03:52:01 kamil Exp $
a42 9
MAN+=	pthread_dbg.3
MAN+=	td_open.3
MAN+=	td_map_pth2thr.3
MAN+=	td_thr_getname.3
MAN+=	td_thr_info.3
MAN+=	td_thr_iter.3

MLINKS+=	td_open.3 td_close.3

@


1.11.8.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11.8.1 2017/01/07 08:56:04 pgoyette Exp $
@


1.10
log
@Match ARCHSUBDIR logic from libpthread.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2012/03/21 05:37:43 matt Exp $
d32 2
a33 2
	${HOST_SH} ${.CURDIR}/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
		< ${ARCHDIR}/genassym.cf > assym.h.tmp && \
@


1.10.2.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
d32 2
a33 2
	${TOOL_GENASSYM} -- ${CC} ${CFLAGS:N-Wa,*} ${CPPFLAGS} ${PROF} \
		${GENASSYM_CPPFLAGS} < ${ARCHDIR}/genassym.cf > assym.h.tmp && \
@


1.9
log
@These directories default to WARNS?=5
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2011/03/17 01:01:15 matt Exp $
d10 4
a13 1
.if exists(${LIBPDIR}/arch/${MACHINE_ARCH})
@


1.8
log
@Since this is use pthread_int.h, it needs __LIBPTHREAD_SOURCE__ to be defined.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2007/08/16 01:09:50 ad Exp $
d4 1
a4 1
WARNS=	2
@


1.8.4.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2011/03/17 01:01:15 matt Exp $
d4 1
a4 1
WARNS?=		5
@


1.8.4.2
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8.4.1 2012/04/17 00:05:31 yamt Exp $
d10 1
a10 4
.if defined(PTHREAD_MACHINE_ARCH) && !empty(PTHREAD_MACHINE_ARCH) && \
    exists(${LIBPDIR}/arch/${PTHREAD_MACHINE_ARCH})
ARCHSUBDIR=	${PTHREAD_MACHINE_ARCH}
.elif exists(${LIBPDIR}/arch/${MACHINE_ARCH})
@


1.8.4.3
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8.4.2 2012/10/30 18:59:15 yamt Exp $
d32 2
a33 2
	${TOOL_GENASSYM} -- ${CC} ${CFLAGS:N-Wa,*} ${CPPFLAGS} ${PROF} \
		${GENASSYM_CPPFLAGS} < ${ARCHDIR}/genassym.cf > assym.h.tmp && \
@


1.7
log
@Catch up with libpthread changes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2007/02/09 22:09:32 ad Exp $
d35 2
@


1.6
log
@Sync with kernel changes introduced by merging the newlock2 branch.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2006/12/24 03:54:43 christos Exp $
a9 4
# Define PT_FIXEDSTACKSIZE_LG to set a fixed stacksize (same as libpthread)
#CPPFLAGS+=-DPT_FIXEDSTACKSIZE_LG=18
#CPPFLAGS+=	-DPTHREAD_SA

@


1.6.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2007/08/16 01:09:50 ad Exp $
d10 4
@


1.5
log
@But turn on PTHREAD_SA, since turning it off does not work yet.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2003/11/27 16:32:09 cl Exp $
d12 1
a12 1
CPPFLAGS+=	-DPTHREAD_SA
@


1.4
log
@Add td__getstacksize() to support variable stack sizes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2003/10/26 07:25:34 lukem Exp $
d12 1
@


1.3
log
@Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2003/01/18 10:34:23 thorpej Exp $
d9 3
@


1.2
log
@Merge the nathanw_sa branch.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.2.4 2002/10/15 11:32:07 skrll Exp $
d29 1
a29 1
	sh ${.CURDIR}/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
@


1.1
log
@file Makefile was initially added on branch nathanw_sa.
@
text
@d1 44
@


1.1.2.1
log
@pthread debugging interface library.
@
text
@a0 37
#	$NetBSD: Makefile,v 1.8.2.10 2002/01/28 19:02:35 nathanw Exp $
#

WARNS=	2

.include <bsd.own.mk>

LIB=	pthread_dbg
LIBPDIR=	${.CURDIR}/../libpthread
.if exists(${LIBPDIR}/arch/${MACHINE_ARCH})
ARCHSUBDIR=	${MACHINE_ARCH}
.elif exists(${LIBPDIR}/arch/${MACHINE_CPU}) 
ARCHSUBDIR=	${MACHINE_CPU}
.else
.BEGIN:
	@@echo no ARCHSUBDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU}
	@@false
.endif

ARCHDIR=	${LIBPDIR}/arch/${ARCHSUBDIR}
.PATH:	${ARCHDIR}

CPPFLAGS+=	-I${ARCHDIR} -I${LIBPDIR} -I${.CURDIR}

assym.h: genassym.sh ${ARCHDIR}/genassym.cf
	sh ${.CURDIR}/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
		< ${ARCHDIR}/genassym.cf > assym.h.tmp && \
	mv -f assym.h.tmp assym.h

SRCS=	pthread_dbg.c 

INCS=	pthread_dbg.h
INCSDIR=/usr/include

.include <bsd.lib.mk>

# DO NOT DELETE
@


1.1.2.2
log
@Issue a warning, but to not error out (just skip it) if we don't
yet have pthread support for the platform we're building on.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.2.1 2002/07/31 23:05:18 nathanw Exp $
d8 2
d16 2
a17 1
	@@echo "no ARCHSUBDIR for ${MACHINE_ARCH}/${MACHINE_CPU}; skipping..."
a19 5
.if defined(ARCHSUBDIR)

LIB=	pthread_dbg
LIBPDIR=	${.CURDIR}/../libpthread

a33 2

.endif
@


1.1.2.3
log
@Slight adjustment to last -- Only bring in <bsd.lib.mk> if LIB is
defined, and bring in <bsd.man.mk> otherwise.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.2.2 2002/10/07 01:23:08 thorpej Exp $
d37 2
d41 1
a41 5
.else

.include <bsd.man.mk>

.endif
@


1.1.2.4
log
@Set LIBPDIR before we use it.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.2.3 2002/10/07 02:17:37 thorpej Exp $
a7 2
LIBPDIR=	${.CURDIR}/../libpthread

d20 1
@


