head	1.5;
access;
symbols
	netbsd-10-2-RELEASE:1.5
	netbsd-9-5-RELEASE:1.3
	netbsd-11-0-RELEASE:1.5
	netbsd-11-0-RC7:1.5
	netbsd-11-0-RC6:1.5
	netbsd-11-0-RC5:1.5
	netbsd-11-0-RC4:1.5
	netbsd-11-0-RC3:1.5
	netbsd-11-0-RC2:1.5
	netbsd-11-0-RC1:1.5
	perseant-exfatfs-base-20250801:1.5
	netbsd-11:1.5.0.12
	netbsd-11-base:1.5
	netbsd-10-1-RELEASE:1.5
	perseant-exfatfs-base-20240630:1.5
	perseant-exfatfs:1.5.0.10
	perseant-exfatfs-base:1.5
	netbsd-8-3-RELEASE:1.1
	netbsd-9-4-RELEASE:1.3
	netbsd-10-0-RELEASE:1.5
	netbsd-10-0-RC6:1.5
	netbsd-10-0-RC5:1.5
	netbsd-10-0-RC4:1.5
	netbsd-10-0-RC3:1.5
	netbsd-10-0-RC2:1.5
	netbsd-10-0-RC1:1.5
	netbsd-10:1.5.0.8
	netbsd-10-base:1.5
	netbsd-9-3-RELEASE:1.3
	cjep_sun2x-base1:1.5
	cjep_sun2x:1.5.0.6
	cjep_sun2x-base:1.5
	cjep_staticlib_x-base1:1.5
	netbsd-9-2-RELEASE:1.3
	cjep_staticlib_x:1.5.0.4
	cjep_staticlib_x-base:1.5
	netbsd-9-1-RELEASE:1.3
	phil-wifi-20200421:1.5
	phil-wifi-20200411:1.5
	is-mlppp:1.5.0.2
	is-mlppp-base:1.5
	phil-wifi-20200406:1.5
	netbsd-8-2-RELEASE:1.1
	netbsd-9-0-RELEASE:1.3
	netbsd-9-0-RC2:1.3
	netbsd-9-0-RC1:1.3
	phil-wifi-20191119:1.3
	netbsd-9:1.3.0.2
	netbsd-9-base:1.3
	phil-wifi-20190609:1.3
	netbsd-8-1-RELEASE:1.1
	netbsd-8-1-RC1:1.1
	pgoyette-compat-merge-20190127:1.2
	pgoyette-compat-20190127:1.2
	pgoyette-compat-20190118:1.2
	pgoyette-compat-1226:1.2
	pgoyette-compat-1126:1.2
	pgoyette-compat-1020:1.2
	pgoyette-compat-0930:1.2
	pgoyette-compat-0906:1.2
	pgoyette-compat-0728:1.2
	netbsd-8-0-RELEASE:1.1
	phil-wifi:1.2.0.4
	phil-wifi-base:1.2
	pgoyette-compat-0625:1.2
	netbsd-8-0-RC2:1.1
	pgoyette-compat-0521:1.2
	pgoyette-compat-0502:1.2
	pgoyette-compat-0422:1.2
	netbsd-8-0-RC1:1.1
	pgoyette-compat-0415:1.2
	pgoyette-compat-0407:1.2
	pgoyette-compat-0330:1.2
	pgoyette-compat-0322:1.2
	pgoyette-compat-0315:1.2
	pgoyette-compat:1.2.0.2
	pgoyette-compat-base:1.2
	matt-nb8-mediatek:1.1.0.12
	matt-nb8-mediatek-base:1.1
	perseant-stdc-iso10646:1.1.0.10
	perseant-stdc-iso10646-base:1.1
	netbsd-8:1.1.0.8
	netbsd-8-base:1.1
	prg-localcount2-base3:1.1
	prg-localcount2-base2:1.1
	prg-localcount2-base1:1.1
	prg-localcount2:1.1.0.6
	prg-localcount2-base:1.1
	pgoyette-localcount-20170426:1.1
	bouyer-socketcan-base1:1.1
	pgoyette-localcount-20170320:1.1
	bouyer-socketcan:1.1.0.4
	bouyer-socketcan-base:1.1
	pgoyette-localcount-20170107:1.1
	pgoyette-localcount-20161104:1.1
	localcount-20160914:1.1
	pgoyette-localcount-20160806:1.1
	pgoyette-localcount-20160726:1.1
	pgoyette-localcount:1.1.0.2
	pgoyette-localcount-base:1.1;
locks; strict;
comment	@# @;


1.5
date	2020.03.01.20.19.54;	author christos;	state Exp;
branches;
next	1.4;
commitid	AByzuRTlgD8vOJYB;

1.4
date	2020.03.01.18.08.13;	author christos;	state Exp;
branches;
next	1.3;
commitid	M7sRI2w4ldl05JYB;

1.3
date	2019.06.01.06.59.17;	author kre;	state Exp;
branches;
next	1.2;
commitid	o9grrG2qSKUYbspB;

1.2
date	2017.12.10.20.38.14;	author bouyer;	state Exp;
branches
	1.2.4.1;
next	1.1;
commitid	pVRBVKD9Z8UH0oiA;

1.1
date	2016.01.08.17.27.48;	author jakllsch;	state Exp;
branches;
next	;
commitid	ZiXCcXnM2YGvw9Qy;

1.2.4.1
date	2019.06.10.22.10.00;	author christos;	state Exp;
branches;
next	1.2.4.2;
commitid	jtc8rnCzWiEEHGqB;

1.2.4.2
date	2020.04.08.14.09.06;	author martin;	state Exp;
branches;
next	;
commitid	Qli2aW9E74UFuA3C;


desc
@@


1.5
log
@fix build by adding a Makefile.inc that chains up.
@
text
@#	$NetBSD: Makefile,v 1.4 2020/03/01 18:08:13 christos Exp $
#

NOMAN=
.include <bsd.own.mk>

PROG= t_hid

.PATH: ${.CURDIR}/..

CPPFLAGS.t_hid.c= -I${.CURDIR}/../../../../sys/dev/hid
CPPFLAGS.t_hid.c+= -I${.CURDIR}/../../../../sys/dev/usb
CPPFLAGS.t_hid.c+= -D_RUMPKERNEL

BINDIR= ${TESTSBASE}/dev/usb

LIBHIDDIR!= cd ${.CURDIR}/../libhid && ${PRINTOBJDIR}
LDFLAGS+= -L${LIBHIDDIR}
LDADD+= -Wl,--whole-archive -lrumpdev_hid -Wl,--no-whole-archive
DPADD+= ${LIBHIDDIR}/librumpdev_hid.a
DPADD+= ${ATF_C} 

LDADD+= ${LIBRUMPBASE} -latf-c

.include <bsd.prog.mk>
@


1.4
log
@Centralize the base rump libraries into a variable used by all the other
Makefiles so that we can make changes to it centrally as needed and have
less mess. Fixes the sun2 build that needs rumpvfs after librump after
the latest changes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2019/06/01 06:59:17 kre Exp $
d21 1
a21 1
DPADD+= ${ATF_C}
d23 1
a23 1
LDADD+= -latf-c ${LIBRUMPBASE}
@


1.3
log
@Deal with fallout from the addition of
	KERN_PROC_CWD in sysctl(3)
That is kern.proc.$$.KERN_PROC_CWD (I think - not that it matters here)

The effect is that -lrump now requires -lrumpvfs

This set of changes fixes (I believe) regular dynamic builds,
more might be required for static builds (will be verified soon).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2017/12/10 20:38:14 bouyer Exp $
d4 3
a7 1
NOMAN=
a14 2
.include <bsd.own.mk>

d23 1
a23 5
LDADD+= -latf-c
LDADD+= -lrump
LDADD+= -lrumpuser
LDADD+= -lrumpvfs
LDADD+= -lpthread
@


1.2
log
@Fix fallout from hid factorisation:
- need to install sys/dev/hid/hid.h for userland
- include it where needed - most of the time in place if usb/usbhid.h
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2016/01/08 17:27:48 jakllsch Exp $
d26 1
@


1.2.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2019/06/01 06:59:17 kre Exp $
a25 1
LDADD+= -lrumpvfs
@


1.2.4.2
log
@Merge changes from current as of 20200406
@
text
@d1 1
a1 1
#	$NetBSD$
d4 1
a5 3
.include <bsd.own.mk>

PROG= t_hid
d13 2
d21 1
a21 1
DPADD+= ${ATF_C} 
d23 5
a27 1
LDADD+= ${LIBRUMPBASE} -latf-c
@


1.1
log
@rework build of t_hid to be more reliable, while working around ATF cruddyness
@
text
@d1 1
a1 1
#	$NetBSD$
d9 3
a11 1
CPPFLAGS.t_hid.c= -I${.CURDIR}/../../../../sys/dev/usb
@

