head	1.56;
access;
symbols
	netbsd-11-0-RC4:1.54
	netbsd-11-0-RC3:1.54
	netbsd-11-0-RC2:1.54
	netbsd-11-0-RC1:1.54
	perseant-exfatfs-base-20250801:1.54
	netbsd-11:1.54.0.4
	netbsd-11-base:1.54
	netbsd-10-1-RELEASE:1.51
	perseant-exfatfs-base-20240630:1.54
	perseant-exfatfs:1.54.0.2
	perseant-exfatfs-base:1.54
	netbsd-8-3-RELEASE:1.51
	netbsd-9-4-RELEASE:1.51
	netbsd-10-0-RELEASE:1.51
	netbsd-10-0-RC6:1.51
	netbsd-10-0-RC5:1.51
	netbsd-10-0-RC4:1.51
	netbsd-10-0-RC3:1.51
	netbsd-10-0-RC2:1.51
	netbsd-10-0-RC1:1.51
	netbsd-10:1.51.0.26
	netbsd-10-base:1.51
	netbsd-9-3-RELEASE:1.51
	cjep_sun2x-base1:1.51
	cjep_sun2x:1.51.0.24
	cjep_sun2x-base:1.51
	cjep_staticlib_x-base1:1.51
	netbsd-9-2-RELEASE:1.51
	cjep_staticlib_x:1.51.0.22
	cjep_staticlib_x-base:1.51
	netbsd-9-1-RELEASE:1.51
	phil-wifi-20200421:1.51
	phil-wifi-20200411:1.51
	is-mlppp:1.51.0.20
	is-mlppp-base:1.51
	phil-wifi-20200406:1.51
	netbsd-8-2-RELEASE:1.51
	netbsd-9-0-RELEASE:1.51
	netbsd-9-0-RC2:1.51
	netbsd-9-0-RC1:1.51
	phil-wifi-20191119:1.51
	netbsd-9:1.51.0.18
	netbsd-9-base:1.51
	phil-wifi-20190609:1.51
	netbsd-8-1-RELEASE:1.51
	netbsd-8-1-RC1:1.51
	pgoyette-compat-merge-20190127:1.51
	pgoyette-compat-20190127:1.51
	pgoyette-compat-20190118:1.51
	pgoyette-compat-1226:1.51
	pgoyette-compat-1126:1.51
	pgoyette-compat-1020:1.51
	pgoyette-compat-0930:1.51
	pgoyette-compat-0906:1.51
	netbsd-7-2-RELEASE:1.50
	pgoyette-compat-0728:1.51
	netbsd-8-0-RELEASE:1.51
	phil-wifi:1.51.0.16
	phil-wifi-base:1.51
	pgoyette-compat-0625:1.51
	netbsd-8-0-RC2:1.51
	pgoyette-compat-0521:1.51
	pgoyette-compat-0502:1.51
	pgoyette-compat-0422:1.51
	netbsd-8-0-RC1:1.51
	pgoyette-compat-0415:1.51
	pgoyette-compat-0407:1.51
	pgoyette-compat-0330:1.51
	pgoyette-compat-0322:1.51
	pgoyette-compat-0315:1.51
	netbsd-7-1-2-RELEASE:1.50
	pgoyette-compat:1.51.0.14
	pgoyette-compat-base:1.51
	netbsd-7-1-1-RELEASE:1.50
	matt-nb8-mediatek:1.51.0.12
	matt-nb8-mediatek-base:1.51
	perseant-stdc-iso10646:1.51.0.10
	perseant-stdc-iso10646-base:1.51
	netbsd-8:1.51.0.8
	netbsd-8-base:1.51
	prg-localcount2-base3:1.51
	prg-localcount2-base2:1.51
	prg-localcount2-base1:1.51
	prg-localcount2:1.51.0.6
	prg-localcount2-base:1.51
	pgoyette-localcount-20170426:1.51
	bouyer-socketcan-base1:1.51
	pgoyette-localcount-20170320:1.51
	netbsd-7-1:1.50.0.8
	netbsd-7-1-RELEASE:1.50
	netbsd-7-1-RC2:1.50
	netbsd-7-nhusb-base-20170116:1.50
	bouyer-socketcan:1.51.0.4
	bouyer-socketcan-base:1.51
	pgoyette-localcount-20170107:1.51
	netbsd-7-1-RC1:1.50
	pgoyette-localcount-20161104:1.51
	netbsd-7-0-2-RELEASE:1.50
	localcount-20160914:1.51
	netbsd-7-nhusb:1.50.0.6
	netbsd-7-nhusb-base:1.50
	pgoyette-localcount-20160806:1.51
	pgoyette-localcount-20160726:1.51
	pgoyette-localcount:1.51.0.2
	pgoyette-localcount-base:1.51
	netbsd-7-0-1-RELEASE:1.50
	netbsd-7-0:1.50.0.4
	netbsd-7-0-RELEASE:1.50
	netbsd-7-0-RC3:1.50
	netbsd-7-0-RC2:1.50
	netbsd-7-0-RC1:1.50
	netbsd-5-2-3-RELEASE:1.45
	netbsd-5-1-5-RELEASE:1.45
	netbsd-6-0-6-RELEASE:1.48
	netbsd-6-1-5-RELEASE:1.48
	netbsd-7:1.50.0.2
	netbsd-7-base:1.50
	yamt-pagecache-base9:1.49
	yamt-pagecache-tag8:1.48.2.1
	netbsd-6-1-4-RELEASE:1.48
	netbsd-6-0-5-RELEASE:1.48
	tls-earlyentropy:1.49.0.8
	tls-earlyentropy-base:1.49
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.49
	riastradh-drm2-base3:1.49
	netbsd-6-1-3-RELEASE:1.48
	netbsd-6-0-4-RELEASE:1.48
	netbsd-5-2-2-RELEASE:1.45
	netbsd-5-1-4-RELEASE:1.45
	netbsd-6-1-2-RELEASE:1.48
	netbsd-6-0-3-RELEASE:1.48
	netbsd-5-2-1-RELEASE:1.45
	netbsd-5-1-3-RELEASE:1.45
	netbsd-6-1-1-RELEASE:1.48
	riastradh-drm2-base2:1.49
	riastradh-drm2-base1:1.49
	riastradh-drm2:1.49.0.4
	riastradh-drm2-base:1.49
	netbsd-6-1:1.48.0.10
	netbsd-6-0-2-RELEASE:1.48
	netbsd-6-1-RELEASE:1.48
	netbsd-6-1-RC4:1.48
	netbsd-6-1-RC3:1.48
	agc-symver:1.49.0.6
	agc-symver-base:1.49
	netbsd-6-1-RC2:1.48
	netbsd-6-1-RC1:1.48
	yamt-pagecache-base8:1.49
	netbsd-5-2:1.45.0.14
	netbsd-6-0-1-RELEASE:1.48
	yamt-pagecache-base7:1.49
	netbsd-5-2-RELEASE:1.45
	netbsd-5-2-RC1:1.45
	matt-nb6-plus-nbase:1.48
	yamt-pagecache-base6:1.49
	netbsd-6-0:1.48.0.8
	netbsd-6-0-RELEASE:1.48
	netbsd-6-0-RC2:1.48
	tls-maxphys:1.49.0.2
	tls-maxphys-base:1.50
	matt-nb6-plus:1.48.0.6
	matt-nb6-plus-base:1.48
	netbsd-6-0-RC1:1.48
	yamt-pagecache-base5:1.49
	yamt-pagecache-base4:1.49
	netbsd-6:1.48.0.4
	netbsd-6-base:1.48
	netbsd-5-1-2-RELEASE:1.45
	netbsd-5-1-1-RELEASE:1.45
	yamt-pagecache-base3:1.48
	yamt-pagecache-base2:1.48
	yamt-pagecache:1.48.0.2
	yamt-pagecache-base:1.48
	cherry-xenmp:1.47.0.2
	cherry-xenmp-base:1.47
	bouyer-quota2-nbase:1.47
	bouyer-quota2:1.46.0.2
	bouyer-quota2-base:1.47
	matt-mips64-premerge-20101231:1.46
	matt-nb5-mips64-premerge-20101231:1.45
	matt-nb5-pq3:1.45.0.12
	matt-nb5-pq3-base:1.45
	netbsd-5-1:1.45.0.10
	netbsd-5-1-RELEASE:1.45
	netbsd-5-1-RC4:1.45
	matt-nb5-mips64-k15:1.45
	netbsd-5-1-RC3:1.45
	netbsd-5-1-RC2:1.45
	netbsd-5-1-RC1:1.45
	netbsd-5-0-2-RELEASE:1.45
	matt-nb5-mips64-premerge-20091211:1.45
	matt-premerge-20091211:1.45
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.45
	matt-nb4-mips64-k7-u2a-k9b:1.45
	matt-nb5-mips64-u1-k1-k5:1.45
	matt-nb5-mips64:1.45.0.8
	netbsd-5-0-1-RELEASE:1.45
	jym-xensuspend-nbase:1.45
	netbsd-5-0:1.45.0.6
	netbsd-5-0-RELEASE:1.45
	netbsd-5-0-RC4:1.45
	netbsd-5-0-RC3:1.45
	netbsd-5-0-RC2:1.45
	jym-xensuspend:1.45.0.4
	jym-xensuspend-base:1.45
	netbsd-5-0-RC1:1.45
	netbsd-5:1.45.0.2
	netbsd-5-base:1.45
	matt-mips64-base2:1.44
	matt-mips64:1.44.0.16
	mjf-devfs2:1.44.0.14
	mjf-devfs2-base:1.44
	netbsd-4-0-1-RELEASE:1.42
	wrstuden-revivesa-base-3:1.44
	wrstuden-revivesa-base-2:1.44
	wrstuden-fixsa-newbase:1.42
	wrstuden-revivesa-base-1:1.44
	yamt-pf42-base4:1.44
	yamt-pf42-base3:1.44
	hpcarm-cleanup-nbase:1.44
	yamt-pf42-baseX:1.44
	yamt-pf42-base2:1.44
	wrstuden-revivesa:1.44.0.12
	wrstuden-revivesa-base:1.44
	yamt-pf42:1.44.0.10
	yamt-pf42-base:1.44
	keiichi-mipv6:1.44.0.8
	keiichi-mipv6-base:1.44
	matt-armv6-nbase:1.44
	matt-armv6-prevmlocking:1.44
	wrstuden-fixsa-base-1:1.42
	netbsd-4-0:1.42.0.20
	netbsd-4-0-RELEASE:1.42
	cube-autoconf:1.44.0.6
	cube-autoconf-base:1.44
	netbsd-4-0-RC5:1.42
	netbsd-4-0-RC4:1.42
	netbsd-4-0-RC3:1.42
	netbsd-4-0-RC2:1.42
	netbsd-4-0-RC1:1.42
	matt-armv6:1.44.0.4
	matt-armv6-base:1.44
	matt-mips64-base:1.44
	hpcarm-cleanup:1.44.0.2
	hpcarm-cleanup-base:1.44
	netbsd-3-1-1-RELEASE:1.42
	netbsd-3-0-3-RELEASE:1.42
	wrstuden-fixsa:1.42.0.18
	wrstuden-fixsa-base:1.42
	abandoned-netbsd-4-base:1.42
	abandoned-netbsd-4:1.42.0.12
	netbsd-3-1:1.42.0.14
	netbsd-3-1-RELEASE:1.42
	netbsd-3-0-2-RELEASE:1.42
	netbsd-3-1-RC4:1.42
	netbsd-3-1-RC3:1.42
	netbsd-3-1-RC2:1.42
	netbsd-3-1-RC1:1.42
	netbsd-4:1.42.0.16
	netbsd-4-base:1.42
	netbsd-3-0-1-RELEASE:1.42
	netbsd-3-0:1.42.0.10
	netbsd-3-0-RELEASE:1.42
	netbsd-3-0-RC6:1.42
	netbsd-3-0-RC5:1.42
	netbsd-3-0-RC4:1.42
	netbsd-3-0-RC3:1.42
	netbsd-3-0-RC2:1.42
	netbsd-3-0-RC1:1.42
	netbsd-2-0-3-RELEASE:1.42
	netbsd-2-1:1.42.0.8
	netbsd-2-1-RELEASE:1.42
	netbsd-2-1-RC6:1.42
	netbsd-2-1-RC5:1.42
	netbsd-2-1-RC4:1.42
	netbsd-2-1-RC3:1.42
	netbsd-2-1-RC2:1.42
	netbsd-2-1-RC1:1.42
	netbsd-2-0-2-RELEASE:1.42
	netbsd-3:1.42.0.6
	netbsd-3-base:1.42
	netbsd-2-0-1-RELEASE:1.42
	netbsd-2:1.42.0.4
	netbsd-2-base:1.42
	netbsd-2-0-RELEASE:1.42
	netbsd-2-0-RC5:1.42
	netbsd-2-0-RC4:1.42
	netbsd-2-0-RC3:1.42
	netbsd-2-0-RC2:1.42
	netbsd-2-0-RC1:1.42
	netbsd-2-0:1.42.0.2
	netbsd-2-0-base:1.42
	netbsd-1-6-PATCH002-RELEASE:1.37
	netbsd-1-6-PATCH002:1.37
	netbsd-1-6-PATCH002-RC4:1.37
	netbsd-1-6-PATCH002-RC3:1.37
	netbsd-1-6-PATCH002-RC2:1.37
	netbsd-1-6-PATCH002-RC1:1.37
	netbsd-1-6-PATCH001:1.37
	netbsd-1-6-PATCH001-RELEASE:1.37
	netbsd-1-6-PATCH001-RC3:1.37
	netbsd-1-6-PATCH001-RC2:1.37
	netbsd-1-6-PATCH001-RC1:1.37
	nathanw_sa_before_merge:1.38
	nathanw_sa_end:1.37.2.3
	fvdl_fs64_base:1.38
	netbsd-1-6-RELEASE:1.37
	netbsd-1-6-RC3:1.37
	netbsd-1-6-RC2:1.37
	netbsd-1-6-RC1:1.37
	netbsd-1-6:1.37.0.4
	netbsd-1-6-base:1.37
	nathanw_sa:1.37.0.2
	nathanw_sa_base:1.38
	netbsd-1-5-PATCH003:1.32
	netbsd-1-5-PATCH002:1.32
	netbsd-1-5-PATCH001:1.32
	netbsd-1-5-RELEASE:1.32
	netbsd-1-5-BETA2:1.32
	netbsd-1-5-BETA:1.32
	netbsd-1-4-PATCH003:1.29
	netbsd-1-5-ALPHA2:1.32
	netbsd-1-5:1.32.0.2
	netbsd-1-5-base:1.32
	minoura-xpg4dl:1.31.0.2
	minoura-xpg4dl-base:1.31
	netbsd-1-4-PATCH002:1.29
	wrstuden-devbsize-19991221:1.30
	wrstuden-devbsize:1.30.0.4
	wrstuden-devbsize-base:1.30
	comdex-fall-1999:1.30.0.2
	comdex-fall-1999-base:1.30
	netbsd-1-4-PATCH001:1.29
	netbsd-1-4-RELEASE:1.29
	netbsd-1-4:1.29.0.2
	netbsd-1-4-base:1.29
	netbsd-1-3-PATCH003:1.20.2.1
	netbsd-1-3-PATCH003-CANDIDATE2:1.20.2.1
	netbsd-1-3-PATCH003-CANDIDATE1:1.20.2.1
	netbsd-1-3-PATCH003-CANDIDATE0:1.20.2.1
	netbsd-1-3-PATCH002:1.20.2.1
	netbsd-1-3-PATCH001:1.20.2.1
	netbsd-1-3-RELEASE:1.20.2.1
	netbsd-1-3-BETA:1.20.2.1
	netbsd-1-3:1.20.0.2
	netbsd-1-3-base:1.20
	netbsd-1-2-PATCH001:1.11
	netbsd-1-2-RELEASE:1.11
	netbsd-1-2-BETA:1.11
	netbsd-1-2:1.11.0.4
	netbsd-1-2-base:1.11
	netbsd-1-1-PATCH001:1.9
	netbsd-1-1-RELEASE:1.9
	netbsd-1-1:1.9.0.2
	netbsd-1-1-base:1.9
	netbsd-1-0-PATCH06:1.6.2.1
	netbsd-1-0-PATCH05:1.6.2.1
	netbsd-1-0-PATCH04:1.6.2.1
	netbsd-1-0-PATCH03:1.6.2.1
	netbsd-1-0-PATCH02:1.6.2.1
	netbsd-1-0-PATCH1:1.6.2.1
	netbsd-1-0-PATCH0:1.6.2.1
	netbsd-1-0-RELEASE:1.6.2.1
	netbsd-1-0:1.6.0.2
	netbsd-1-0-base:1.6
	lite-1:1.1.1.1
	CSRG:1.1.1;
locks; strict;
comment	@# @;


1.56
date	2025.11.27.15.42.13;	author thorpej;	state Exp;
branches;
next	1.55;
commitid	Gq0vNPwD3Xs8SckG;

1.55
date	2025.09.18.03.36.00;	author mrg;	state Exp;
branches;
next	1.54;
commitid	RQc1sc69acbZ59bG;

1.54
date	2023.08.03.14.56.36;	author rin;	state Exp;
branches;
next	1.53;
commitid	fl6rr2AREazmQlzE;

1.53
date	2023.08.03.13.36.08;	author rin;	state Exp;
branches;
next	1.52;
commitid	cA3k7MJ9XZ44olzE;

1.52
date	2023.04.01.09.08.11;	author rillig;	state Exp;
branches;
next	1.51;
commitid	65ZO6bLjETRMTnjE;

1.51
date	2016.01.24.16.07.48;	author christos;	state Exp;
branches;
next	1.50;
commitid	jvwHtiGojnzozcSy;

1.50
date	2014.08.10.23.39.08;	author matt;	state Exp;
branches;
next	1.49;
commitid	IYetTcutJpmuaSLx;

1.49
date	2012.03.21.10.08.30;	author matt;	state Exp;
branches
	1.49.2.1;
next	1.48;

1.48
date	2011.09.12.21.11.31;	author christos;	state Exp;
branches
	1.48.2.1;
next	1.47;

1.47
date	2011.02.14.18.27.24;	author matt;	state Exp;
branches;
next	1.46;

1.46
date	2010.10.05.23.48.16;	author jym;	state Exp;
branches
	1.46.2.1;
next	1.45;

1.45
date	2008.10.25.23.59.42;	author mrg;	state Exp;
branches;
next	1.44;

1.44
date	2007.05.28.12.06.20;	author tls;	state Exp;
branches;
next	1.43;

1.43
date	2007.02.10.00.23.13;	author ad;	state Exp;
branches;
next	1.42;

1.42
date	2003.03.28.14.02.45;	author christos;	state Exp;
branches;
next	1.41;

1.41
date	2003.03.28.14.01.46;	author christos;	state Exp;
branches;
next	1.40;

1.40
date	2003.03.01.06.10.39;	author lukem;	state Exp;
branches;
next	1.39;

1.39
date	2003.01.18.10.40.41;	author thorpej;	state Exp;
branches;
next	1.38;

1.38
date	2002.08.19.14.55.16;	author lukem;	state Exp;
branches;
next	1.37;

1.37
date	2001.12.28.01.32.39;	author lukem;	state Exp;
branches
	1.37.2.1;
next	1.36;

1.36
date	2001.05.21.14.56.29;	author fredette;	state Exp;
branches;
next	1.35;

1.35
date	2001.01.08.18.30.03;	author bjh21;	state Exp;
branches;
next	1.34;

1.34
date	2001.01.08.08.30.00;	author itojun;	state Exp;
branches;
next	1.33;

1.33
date	2001.01.04.08.59.24;	author itojun;	state Exp;
branches;
next	1.32;

1.32
date	2000.06.13.15.48.56;	author simonb;	state Exp;
branches;
next	1.31;

1.31
date	2000.05.09.21.55.53;	author bjh21;	state Exp;
branches
	1.31.2.1;
next	1.30;

1.30
date	99.09.12.01.19.24;	author chs;	state Exp;
branches;
next	1.29;

1.29
date	99.03.24.05.50.50;	author mrg;	state Exp;
branches;
next	1.28;

1.28
date	99.02.24.15.10.16;	author drochner;	state Exp;
branches;
next	1.27;

1.27
date	98.02.19.23.35.36;	author thorpej;	state Exp;
branches;
next	1.26;

1.26
date	98.02.19.17.22.31;	author thorpej;	state Exp;
branches;
next	1.25;

1.25
date	98.02.19.07.06.59;	author thorpej;	state Exp;
branches;
next	1.24;

1.24
date	98.02.18.03.55.11;	author perry;	state Exp;
branches;
next	1.23;

1.23
date	98.02.18.01.13.08;	author thorpej;	state Exp;
branches;
next	1.22;

1.22
date	98.02.11.06.30.11;	author mrg;	state Exp;
branches;
next	1.21;

1.21
date	97.10.22.23.51.27;	author lukem;	state Exp;
branches;
next	1.20;

1.20
date	97.10.19.19.15.30;	author oki;	state Exp;
branches
	1.20.2.1;
next	1.19;

1.19
date	97.10.19.19.10.26;	author oki;	state Exp;
branches;
next	1.18;

1.18
date	97.10.05.23.52.14;	author mark;	state Exp;
branches;
next	1.17;

1.17
date	97.06.23.22.16.56;	author veego;	state Exp;
branches;
next	1.16;

1.16
date	97.06.23.09.45.19;	author veego;	state Exp;
branches;
next	1.15;

1.15
date	97.06.23.09.07.49;	author veego;	state Exp;
branches;
next	1.14;

1.14
date	97.06.23.05.24.19;	author mrg;	state Exp;
branches;
next	1.13;

1.13
date	97.03.21.18.48.58;	author gwr;	state Exp;
branches;
next	1.12;

1.12
date	97.03.21.18.44.21;	author gwr;	state Exp;
branches;
next	1.11;

1.11
date	96.03.18.22.33.07;	author thorpej;	state Exp;
branches;
next	1.10;

1.10
date	96.03.18.21.11.10;	author leo;	state Exp;
branches;
next	1.9;

1.9
date	94.12.22.09.58.28;	author cgd;	state Exp;
branches;
next	1.8;

1.8
date	94.09.18.03.32.50;	author mycroft;	state Exp;
branches;
next	1.7;

1.7
date	94.07.28.21.46.34;	author gwr;	state Exp;
branches;
next	1.6;

1.6
date	94.05.16.05.31.19;	author chopps;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	94.05.09.04.09.21;	author cgd;	state Exp;
branches;
next	1.4;

1.4
date	94.05.09.03.17.28;	author cgd;	state Exp;
branches;
next	1.3;

1.3
date	94.04.23.02.41.59;	author briggs;	state Exp;
branches;
next	1.2;

1.2
date	94.02.14.04.34.42;	author chopps;	state Exp;
branches;
next	1.1;

1.1
date	94.01.27.23.31.08;	author cgd;	state Exp;
branches
	1.1.1.1;
next	;

1.49.2.1
date	2014.08.20.00.02.17;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.48.2.1
date	2012.04.17.00.05.28;	author yamt;	state Exp;
branches;
next	;

1.46.2.1
date	2011.02.17.11.59.23;	author bouyer;	state Exp;
branches;
next	;

1.37.2.1
date	2001.12.28.01.32.39;	author nathanw;	state dead;
branches;
next	1.37.2.2;

1.37.2.2
date	2002.04.23.20.10.19;	author nathanw;	state Exp;
branches;
next	1.37.2.3;

1.37.2.3
date	2002.12.19.02.26.13;	author thorpej;	state Exp;
branches;
next	;

1.31.2.1
date	2000.06.23.16.16.47;	author minoura;	state Exp;
branches;
next	;

1.20.2.1
date	97.11.09.01.00.24;	author lukem;	state Exp;
branches;
next	;

1.6.2.1
date	94.07.29.05.10.36;	author cgd;	state Exp;
branches;
next	;

1.1.1.1
date	94.05.09.03.15.32;	author cgd;	state Exp;
branches;
next	;


desc
@@


1.56
log
@libkvm support for the new m68k pmap.
@
text
@#	$NetBSD: Makefile,v 1.55 2025/09/18 03:36:00 mrg Exp $
#	from: @@(#)Makefile	8.1 (Berkeley) 6/4/93

WARNS=	3

USE_FORT?= yes	# used primarily by setgid programs

USE_SHLIBDIR=	yes

LIB=	kvm
CPPFLAGS+=-DLIBC_SCCS -I${NETBSDSRCDIR}/sys -D_KMEMUSER

SRCS=	kvm.c kvm_file.c kvm_getloadavg.c kvm_proc.c

# This library should compile to the same thing on all variants of
# ${MACHINE} with the same ${MACHINE_ARCH} so shared /usr works.
# If it is necessary to run different code based on ${MACHINE} then
# the dispatch on ${MACHINE} should be done at run time (see m68k).

.include <bsd.own.mk>
.if exists(kvm_${KVM_MACHINE_ARCH}.c)
SRCS+=	kvm_${KVM_MACHINE_ARCH}.c
.elif exists(kvm_${KVM_MACHINE_CPU}.c)
SRCS+=	kvm_${KVM_MACHINE_CPU}.c
.elif exists(kvm_${MACHINE_ARCH}.c)
SRCS+=	kvm_${MACHINE_ARCH}.c
.elif  exists(kvm_${MACHINE_CPU}.c)
SRCS+=	kvm_${MACHINE_CPU}.c
.else
.BEGIN:
	@@echo no kvm_xx.c for ${MACHINE_ARCH} nor ${MACHINE_CPU}
	@@false
.endif

.if ${MACHINE_ARCH} == "i386"
LINTFLAGS+=-w
LINTFLAGS+=	-X 351		# 'extern' declaration outside header
LINTFLAGS+=	-X 352		# 'extern' declaration in function body
SRCS+=	kvm_i386pae.c # Hook PAE support in the i386 build
.endif

# Additional modules needed for m68k
.if (${MACHINE_ARCH} == "m68k" || ${MACHINE_CPU} == "m68k")
SRCS+=	kvm_m68k_cmn.c kvm_m68k_gen.c kvm_sun2.c kvm_sun3.c kvm_sun3x.c
.endif

MAN=	kvm.3 kvm_dump.3 kvm_geterr.3 kvm_getfiles.3 kvm_getloadavg.3 \
	kvm_getkernelname.3 \
	kvm_getprocs.3 kvm_nlist.3 kvm_open.3 kvm_read.3 kvm_getlwps.3

MLINKS+=kvm_getprocs.3 kvm_getargv.3 kvm_getprocs.3 kvm_getenvv.3
MLINKS+=kvm_getprocs.3 kvm_getproc2.3
MLINKS+=kvm_getprocs.3 kvm_getargv2.3 kvm_getprocs.3 kvm_getenvv2.3
MLINKS+=kvm_open.3 kvm_openfiles.3 kvm_open.3 kvm_close.3
MLINKS+=kvm_read.3 kvm_write.3
MLINKS+=kvm_dump.3 kvm_dump_mkheader.3 kvm_dump.3 kvm_dump_wrtheader.3
MLINKS+=kvm_dump.3 kvm_dump_inval.3

# This fixes building with MACHINE==sparc64, MACHINE_ARCH==sparc
# XXX:	this is a hack, but until the sparc MD headers are separated
#	out from the sparc AD headers, it's the easiest solution.
#
.if (${MACHINE_ARCH} == "sparc")	# {
.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
	@@([ -h machine ] || \
	    ln -fs ${NETBSDSRCDIR}/sys/arch/sparc/include machine)
	@@([ -h sparc ] || ln -fs ${NETBSDSRCDIR}/sys/arch/sparc/include sparc)
.NOPATH: machine sparc
.endif
CLEANFILES+=	machine sparc
CPPFLAGS+=	-I.
.endif					# }

.if (${MACHINE_ARCH} == "mips")
CPPFLAGS+=	-D_KMEMUSER
.endif

COPTS.kvm_x86_64.c+=	${CC_WNO_CALLOC_TRANSPOSED_ARGS}

.include <bsd.lib.mk>
@


1.55
log
@introduce a couple of new turn-off-gcc-warning variables and use them.

GCC 14 has a new annoying calloc() checker that we turn off in a bunch
of places, and there are a few more dangling-pointer issuse that come up,
but seem bogus.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.54 2023/08/03 14:56:36 rin Exp $
d44 1
a44 1
SRCS+=	kvm_m68k_cmn.c kvm_sun2.c kvm_sun3.c kvm_sun3x.c
@


1.54
log
@Revert CC_WNO_USE_AFTER_FREE from Makefile's (thanks uwe@@)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.52 2023/04/01 09:08:11 rillig Exp $
d79 1
@


1.53
log
@Sprinkle CC_WNO_USE_AFTER_FREE for GCC 12

All of them are blamed for idiom equivalent to:
	newbuf = realloc(buf, size);
	p = newbuf + (p - buf);
@
text
@a78 1
COPTS.kvm_proc.c+=	${CC_WNO_USE_AFTER_FREE}
@


1.52
log
@libkvm: suppress lint warnings about extern declarations for now

This should be properly fixed by someone who is familiar with libkvm, as
it affects <sys/cpu_data.h> as well.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.51 2016/01/24 16:07:48 christos Exp $
d79 1
@


1.51
log
@mips needs _KMEMUSER for label_t in pcb.h
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.50 2014/08/10 23:39:08 matt Exp $
d37 2
@


1.50
log
@MKCOMPAT fixes for when compat MACHINE_CPU != normal MACHINE_CPU
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.49 2012/03/21 10:08:30 matt Exp $
d73 4
@


1.49
log
@These directories don't handle WARNS=5
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.48 2011/09/12 21:11:31 christos Exp $
d23 2
@


1.49.2.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
a22 2
.elif exists(kvm_${KVM_MACHINE_CPU}.c)
SRCS+=	kvm_${KVM_MACHINE_CPU}.c
@


1.48
log
@add a function to report the name of the file kvm_open{,.files} is using.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.47 2011/02/14 18:27:24 matt Exp $
d4 2
@


1.48.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.48 2011/09/12 21:11:31 christos Exp $
a3 2
WARNS=	3

@


1.47
log
@Add -D_KMEMUSER to CPPFLAGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.46 2010/10/05 23:48:16 jym Exp $
d42 1
@


1.46
log
@Import PAE support for kvm(3):
- add kvm_i386pae.c (used for PAE memory translations), and update Makefile
  for libkvm build.
- in pdppaddr: pass a flag to indicate PAE mode. Use a bit ignored
  by the MMU. Mask address with PG_FRAME to avoid side effects.

Tested with vmstat(1)/netstat(1) to debug core files of PAE and !PAE
kernels. Older kernel dumps will default to native i386 (!PAE) mode.

XXX Currently, savecore(8) will fail to dump a PAE kernel in a !PAE
    environment (and reciprocally). So you need to sync and reboot
    with a kernel of the same mode as the one that crashed. Once the dump
    is successful, this does not matter anymore.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.45 2008/10/25 23:59:42 mrg Exp $
d9 1
a9 1
CPPFLAGS+=-DLIBC_SCCS -I${NETBSDSRCDIR}/sys
@


1.46.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.47 2011/02/14 18:27:24 matt Exp $
d9 1
a9 1
CPPFLAGS+=-DLIBC_SCCS -I${NETBSDSRCDIR}/sys -D_KMEMUSER
@


1.45
log
@look for ${KVM_MACHINE_ARCH} before ${MACHINE_ARCH} and ${MACHINE_CPU}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.44 2007/05/28 12:06:20 tls Exp $
a9 3
.if ${MACHINE_ARCH} == "i386"
LINTFLAGS+=-w
.endif
d31 5
@


1.44
log
@Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.43 2007/02/10 00:23:13 ad Exp $
d22 3
a24 1
.if exists(kvm_${MACHINE_ARCH}.c)
@


1.43
log
@Add ${NETBSDSRCDIR}/sys to the include path.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.42 2003/03/28 14:02:45 christos Exp $
d4 2
@


1.42
log
@do the exit on lint warnings only on i386 like libc, to avoid the wrath of
the sloppy archs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.41 2003/03/28 14:01:46 christos Exp $
d7 1
a7 1
CPPFLAGS+=-DLIBC_SCCS
@


1.41
log
@exit on lint warnings.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.40 2003/03/01 06:10:39 lukem Exp $
d8 1
d10 1
@


1.40
log
@Add workaround for building with ${MACHINE}==sparc64, ${MACHINE_ARCH}==sparc;
symlink the appropriate machine & sparc include directories into the objdir.

XXX: this is necessary until (when?) the sparc Arch Dependent headers
(used by MACHINE_ARCH==sparc) are separated from the sparc Machine
Dependent headeres (used by MACHINE==sparc but not MACHINE==sparc64).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.39 2003/01/18 10:40:41 thorpej Exp $
d8 1
@


1.39
log
@Merge the nathanw_sa branch.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.38 2002/08/19 14:55:16 lukem Exp $
d42 17
@


1.38
log
@Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the
Makefile (before including <bsd.own.mk>)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.37 2001/12/28 01:32:39 lukem Exp $
d33 1
a33 1
	kvm_getprocs.3 kvm_nlist.3 kvm_open.3 kvm_read.3
@


1.37
log
@* Add user-controlled mk.conf variables
	- SHLIBDIR	Location to install shared libraries if ${USE_SHLIBDIR}
			is "yes".  Defaults to "/usr/lib".

	- USE_SHLIBDIR	If "yes", install shared libraries in ${SHLIBDIR}
			instead of ${LIBDIR}.  Defaults to "no".
			Sets ${_LIBSODIR} to the appropriate value.
			This may be set by individual Makefiles as well.

	- SHLINKDIR	Location of shared linker.  Defaults to "/usr/libexec".
			If != "/usr/libexec", change the dynamic-linker
			encoded in shared programs

* Set USE_SHLIBDIR for libraries used by /bin and /sbin:
	libc libcrypt libcrypto libedit libipsec libkvm libm libmi387
	libtermcap libutil libz

* If ${_LIBSODIR} != ${LIBDIR}, add symlinks from ${LIBDIR}/${LIB}.so*
  to ${_LIBSODIR}/${LIB}.so* for compatibility.

* Always install /sbin/init statically (for now)


The net effect of these changes depends on how the variables are set:

  1.)	If nothing is set or changed, there is no change from the
	current behaviour:
		- Static /bin, /sbin, and bits of /usr/*
		- Dynamic rest
		- Shared linker is /usr/libexec/ld*so

  2.)	If the following make variables are set:
		LDSTATIC=
		SHLINKDIR=/lib
		SHLIBDIR=/lib
	Then the behaviour becomes:
		- Dynamic tools
		- .so libraries used by /bin and /sbin are installed to /lib,
		  with symlinks from /usr/lib/lib*so to -> /lib/lib*so
		  where appropriate
		- Shared linker is /lib/ld*so

  3.)	As per 2.), but add the following variable:
		USE_SHLIBDIR=yes
	This forces all .so's to be instaleld in /lib (with compat
	symlinks), not just those tagged by their Makefiles to be.
	Again, compat symlinks are installed
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 2001/05/21 14:56:29 fredette Exp $
d4 2
a6 1
USE_SHLIBDIR=	yes
@


1.37.2.1
log
@file Makefile was added on branch nathanw_sa on 2002-04-23 20:10:19 +0000
@
text
@d1 42
@


1.37.2.2
log
@Make libkvm able to cope with a LWPified kernel.

Add a kvm_getlwps() function to retrieve the LWPs of a specific process.
@
text
@a0 42
#	$NetBSD: Makefile,v 1.37.2.1 2002/04/23 20:10:19 nathanw Exp $
#	from: @@(#)Makefile	8.1 (Berkeley) 6/4/93

LIB=	kvm
USE_SHLIBDIR=	yes
CPPFLAGS+=-DLIBC_SCCS

SRCS=	kvm.c kvm_file.c kvm_getloadavg.c kvm_proc.c

# This library should compile to the same thing on all variants of
# ${MACHINE} with the same ${MACHINE_ARCH} so shared /usr works.
# If it is necessary to run different code based on ${MACHINE} then
# the dispatch on ${MACHINE} should be done at run time (see m68k).

.include <bsd.own.mk>
.if exists(kvm_${MACHINE_ARCH}.c)
SRCS+=	kvm_${MACHINE_ARCH}.c
.elif  exists(kvm_${MACHINE_CPU}.c)
SRCS+=	kvm_${MACHINE_CPU}.c
.else
.BEGIN:
	@@echo no kvm_xx.c for ${MACHINE_ARCH} nor ${MACHINE_CPU}
	@@false
.endif

# Additional modules needed for m68k
.if (${MACHINE_ARCH} == "m68k" || ${MACHINE_CPU} == "m68k")
SRCS+=	kvm_m68k_cmn.c kvm_sun2.c kvm_sun3.c kvm_sun3x.c
.endif

MAN=	kvm.3 kvm_dump.3 kvm_geterr.3 kvm_getfiles.3 kvm_getloadavg.3 \
	kvm_getprocs.3 kvm_nlist.3 kvm_open.3 kvm_read.3 kvm_getlwps.3

MLINKS+=kvm_getprocs.3 kvm_getargv.3 kvm_getprocs.3 kvm_getenvv.3
MLINKS+=kvm_getprocs.3 kvm_getproc2.3
MLINKS+=kvm_getprocs.3 kvm_getargv2.3 kvm_getprocs.3 kvm_getenvv2.3
MLINKS+=kvm_open.3 kvm_openfiles.3 kvm_open.3 kvm_close.3
MLINKS+=kvm_read.3 kvm_write.3
MLINKS+=kvm_dump.3 kvm_dump_mkheader.3 kvm_dump.3 kvm_dump_wrtheader.3
MLINKS+=kvm_dump.3 kvm_dump_inval.3

.include <bsd.lib.mk>
@


1.37.2.3
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.37.2.2 2002/12/19 02:26:13 thorpej Exp $
d4 1
a5 2

LIB=	kvm
@


1.36
log
@Added support for sun2 kernel cores.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 2001/01/08 18:30:03 bjh21 Exp $
d5 1
@


1.35
log
@Rename kvm_arm32.c to kvm_arm.c, since it's shared between arm32 and arm26.
The Makefile now finds the correct file without help.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.34 2001/01/08 08:30:00 itojun Exp $
d26 2
a27 2
.if (${MACHINE_ARCH} == "m68k")
SRCS+=	kvm_m68k_cmn.c kvm_sun3.c kvm_sun3x.c
@


1.34
log
@use MACIHNE_CPU to determine architecture-dependent source code directory.
is use of exists(foo) safe enough?
TODO: many other places to fix
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2001/01/04 08:59:24 itojun Exp $
d15 1
a15 3
.if ${MACHINE_ARCH} == "arm26"
SRCS+=	kvm_arm32.c
.elif exists(kvm_${MACHINE_ARCH}.c)
@


1.33
log
@sh3 split
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 2000/06/13 15:48:56 simonb Exp $
d14 2
a15 3
.if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
SRCS+=	kvm_mips.c
.elif ${MACHINE_ARCH} == "arm26"
d17 4
a20 2
.elif ${MACHINE_ARCH} == "sh3eb" || ${MACHINE_ARCH} == "sh3el"
SRCS+=	kvm_sh3.c
d22 3
a24 1
SRCS+=	kvm_${MACHINE_ARCH}.c
@


1.32
log
@Document KVM_NO_FILES and kvm_get{proc,argv,envv}2().  Better wording
kindly accepted!

XXX: Need to update distrib lists.  Tomorrow...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2000/05/09 21:55:53 bjh21 Exp $
d18 2
@


1.31
log
@Initial commit of arm26 port
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 1999/09/12 01:19:24 chs Exp $
d31 2
@


1.31.2.1
log
@Sync w/ netbsd-1-5-base.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 2000/06/13 15:48:56 simonb Exp $
a30 2
MLINKS+=kvm_getprocs.3 kvm_getproc2.3
MLINKS+=kvm_getprocs.3 kvm_getargv2.3 kvm_getprocs.3 kvm_getenvv2.3
@


1.30
log
@the PMAP_NEW option is gone as the new interface is no longer optional.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 1999/03/24 05:50:50 mrg Exp $
d16 2
@


1.29
log
@completely remove Mach VM support.  all that is left is the all the
header files as UVM still uses (most of) these.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 1999/02/24 15:10:16 drochner Exp $
a34 5

# XXX
.if defined(PMAP_NEW)
CPPFLAGS+=      -DPMAP_NEW
.endif
@


1.28
log
@make this build again after the mips->mipse? transition
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 1998/02/19 23:35:36 thorpej Exp $
a36 3
.if defined(UVM)
CPPFLAGS+=      -DUVM
.endif
@


1.27
log
@NetBSD/mips uses new libkvm now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 1998/02/19 17:22:31 thorpej Exp $
d14 3
d18 1
@


1.26
log
@Sigh, typo.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 1998/02/19 07:06:59 thorpej Exp $
a3 1
.if	(${MACHINE_ARCH} != "mips")
a19 1
.endif
a29 2
.if	(${MACHINE} != "pica")   && \
	(${MACHINE} != "pmax")
a30 3
.else
.include <bsd.prog.mk>
.endif
@


1.25
log
@Simplify test ... MACHINE_ARCH == "mips"
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 1998/02/18 03:55:11 perry Exp $
d4 1
a4 1
.if	(${MACHNIE_ARCH} != "mips")
@


1.24
log
@add -DPMAP_NEW if PMAP_NEW is on in mk.conf
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 1998/02/18 01:13:08 thorpej Exp $
d4 1
a4 2
.if	(${MACHINE} != "pica")   && \
	(${MACHINE} != "pmax")
@


1.23
log
@Rewrite _kvm_kvatop() to work with the new crash dump format, and make
the i386 port use libkvm, not libkvm.old.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 1998/02/11 06:30:11 mrg Exp $
d43 3
@


1.22
log
@oops, forgot to add support for UVM here.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 1997/10/22 23:51:27 lukem Exp $
d4 1
a4 2
.if	(${MACHINE} != "i386")   && \
	(${MACHINE} != "pica")   && \
d33 1
a33 2
.if	(${MACHINE} != "i386")   && \
	(${MACHINE} != "pica")   && \
@


1.21
log
@use CPPFLAGS instead of CFLAGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 1997/10/19 19:15:30 oki Exp $
d40 5
@


1.20
log
@Oops, fixed edit error at previous commit.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 1997/10/19 19:10:26 oki Exp $
d8 1
a8 1
CFLAGS+=-DLIBC_SCCS
@


1.20.2.1
log
@sync with trunk (approved by thorpej)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 1997/10/22 23:51:27 lukem Exp $
d8 1
a8 1
CPPFLAGS+=-DLIBC_SCCS
@


1.19
log
@NetBSD/x68k now use libkvm instead of libkvm.old
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 1997/10/05 23:52:14 mark Exp $
d36 1
a36 2
	(${MACHINE} != "pmax")   && \
	(${MACHINE} != "x68k")
@


1.18
log
@Switch from libkvm.old to libkvm for the arm32 port.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 1997/06/23 22:16:56 veego Exp $
d6 1
a6 2
	(${MACHINE} != "pmax")   && \
	(${MACHINE} != "x68k")
@


1.17
log
@Use bsd.prog.mk and not bsd.{own,man}.mk
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 1997/06/23 09:45:19 veego Exp $
d4 1
a4 2
.if	(${MACHINE} != "arm32")  && \
	(${MACHINE} != "i386")   && \
d35 1
a35 2
.if	(${MACHINE} != "arm32")  && \
	(${MACHINE} != "i386")   && \
@


1.16
log
@Add bsd.own.mk for bsd.man.mk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 1997/06/23 09:07:49 veego Exp $
d43 1
a43 2
.include <bsd.own.mk>
.include <bsd.man.mk>
@


1.15
log
@Don't include bsd.lib.mk if you don't build a library, just use bsd.man.mk
to build the manpages.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 1997/06/23 05:24:19 mrg Exp $
d43 1
@


1.14
log
@move man pages into share/man.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 1997/03/21 18:48:58 gwr Exp $
d36 5
d42 3
@


1.13
log
@typo
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 1997/03/21 18:44:21 gwr Exp $
d4 5
d24 1
@


1.12
log
@Build the same libkvm.* on all m68k machines.  (Well... except for the
stragglers that still use libkvm.old )  The m68k machines now dispatch
based on the machine name to the appropriate libkvm implementation.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 1996/03/18 22:33:07 thorpej Exp $
d11 1
a11 1
# If it is necessary for to run different based on ${MACHINE} then
@


1.11
log
@RCS id police.
@
text
@d1 1
a1 1
#	$NetBSD: $
d7 12
a18 7
# Try most specific name first.
.if	exists(kvm_${MACHINE}.c)
SRCS=	kvm_${MACHINE}.c
.else
# Less specific name (i.e. m68k)
CFLAGS+=-D${MACHINE}
SRCS=	kvm_${MACHINE_ARCH}.c
a19 2

SRCS+=	kvm.c kvm_file.c kvm_getloadavg.c kvm_proc.c
@


1.10
log
@Add a manual page for the kvm_dump_* functions.
@
text
@d1 1
a2 1
#	$Id: Makefile,v 1.9 1994/12/22 09:58:28 cgd Exp $
@


1.9
log
@specify man pages the new way.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.8 1994/09/18 03:32:50 mycroft Exp $
d18 2
a19 2
MAN=	kvm.3 kvm_geterr.3 kvm_getfiles.3 kvm_getloadavg.3 kvm_getprocs.3 \
	kvm_nlist.3 kvm_open.3 kvm_read.3
d24 2
@


1.8
log
@Merge the m68k files.  The code itself should be merged.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.7 1994/07/28 21:46:34 gwr Exp $
d18 2
a19 2
MAN3=	kvm.0 kvm_geterr.0 kvm_getfiles.0 kvm_getloadavg.0 kvm_getprocs.0 \
	kvm_nlist.0 kvm_open.0 kvm_read.0
@


1.7
log
@Add sun3 support (only "live" kernels for now).
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.6 1994/05/16 05:31:19 chopps Exp $
a12 4
# XXX - Should merge m68k versions...
.if	(${MACHINE_ARCH} == "m68k")
SRCS=	kvm_o${MACHINE_ARCH}.c
.else
a13 1
.endif
@


1.6
log
@add support for current m68k based pmaps till they can be "fixed"
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.5 1994/05/09 04:09:21 cgd Exp $
d7 5
a11 1
.if (${MACHINE_ARCH} == "m68k")
d13 2
d19 1
a19 1

@


1.6.2.1
log
@from trunk
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.7 1994/07/28 21:46:34 gwr Exp $
d7 1
a7 5
# Try most specific name first.
.if	exists(kvm_${MACHINE}.c)
SRCS=	kvm_${MACHINE}.c
.else
# Less specific name (i.e. m68k)
a8 2
# XXX - Should merge m68k versions...
.if	(${MACHINE_ARCH} == "m68k")
d13 1
a13 1
.endif
@


1.5
log
@m68k-ify the hp300 kvm file; use MACHINE_ARCH to pick files up
@
text
@d2 1
a2 1
#	$Id$
d6 10
a15 1
SRCS=	kvm.c kvm_${MACHINE_ARCH}.c kvm_file.c kvm_getloadavg.c kvm_proc.c
@


1.4
log
@clean up import
@
text
@d1 2
a2 1
#	@@(#)Makefile	8.1 (Berkeley) 6/4/93
d5 2
a6 2
CFLAGS+=-DLIBC_SCCS -I/sys
SRCS=	kvm.c kvm_${MACHINE}.c kvm_file.c kvm_getloadavg.c kvm_proc.c
@


1.3
log
@Add mac68k to amiga in looking for cpu040.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.2 1994/02/14 04:34:42 chopps Exp $
d4 9
a12 5
CFLAGS+=-DLIBC_SCCS
SRCS=	kvm.c
.if (${MACHINE} == "amiga") || (${MACHINE} == "mac68k")
CFLAGS+=-D${MACHINE}
.endif
@


1.2
log
@temporary additional lookup of cpu040 for amiga's until new kvm stuff or new
amiga 040 VM stuff.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.1 1994/01/27 23:31:08 cgd Exp $
d6 1
a6 1
.if (${MACHINE} == "amiga")
@


1.1
log
@create this in preparation for later.
@
text
@d1 1
a1 1
#	$Id$
d6 3
@


1.1.1.1
log
@new libkvm
@
text
@d1 1
a1 1
#	@@(#)Makefile	8.1 (Berkeley) 6/4/93
d4 2
a5 9
CFLAGS+=-DLIBC_SCCS -I/sys
SRCS=	kvm.c kvm_${MACHINE}.c kvm_file.c kvm_getloadavg.c kvm_proc.c

MAN3=	kvm.0 kvm_geterr.0 kvm_getfiles.0 kvm_getloadavg.0 kvm_getprocs.0 \
	kvm_nlist.0 kvm_open.0 kvm_read.0

MLINKS+=kvm_getprocs.3 kvm_getargv.3 kvm_getprocs.3 kvm_getenvv.3
MLINKS+=kvm_open.3 kvm_openfiles.3 kvm_open.3 kvm_close.3
MLINKS+=kvm_read.3 kvm_write.3
@
