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
	netbsd-8-3-RELEASE:1.14
	netbsd-9-4-RELEASE:1.16
	bouyer-sunxi-drm:1.17.0.10
	bouyer-sunxi-drm-base:1.17
	netbsd-9-3-RELEASE:1.16
	cjep_sun2x:1.17.0.8
	cjep_sun2x-base:1.17
	cjep_staticlib_x-base1:1.17
	netbsd-9-2-RELEASE:1.16
	cjep_staticlib_x:1.17.0.6
	cjep_staticlib_x-base:1.17
	thorpej-futex-base:1.17
	netbsd-9-1-RELEASE:1.16
	bouyer-xenpvh-base2:1.17
	phil-wifi-20200421:1.17
	bouyer-xenpvh-base1:1.17
	phil-wifi-20200411:1.17
	bouyer-xenpvh:1.17.0.4
	bouyer-xenpvh-base:1.17
	phil-wifi-20200406:1.17
	netbsd-8-2-RELEASE:1.14
	ad-namecache-base3:1.17
	netbsd-9-0-RELEASE:1.16
	netbsd-9-0-RC2:1.16
	ad-namecache-base2:1.17
	ad-namecache-base1:1.17
	ad-namecache:1.17.0.2
	ad-namecache-base:1.17
	netbsd-9-0-RC1:1.16
	phil-wifi-20191119:1.16
	netbsd-9:1.16.0.4
	netbsd-9-base:1.16
	phil-wifi-20190609:1.16
	netbsd-8-1-RELEASE:1.14
	netbsd-8-1-RC1:1.14
	isaki-audio2:1.16.0.2
	isaki-audio2-base:1.16
	pgoyette-compat-merge-20190127:1.14.14.7
	pgoyette-compat-20190127:1.15
	pgoyette-compat-20190118:1.15
	pgoyette-compat-1226:1.15
	pgoyette-compat-1126:1.15
	pgoyette-compat-1020:1.15
	pgoyette-compat-0930:1.15
	pgoyette-compat-0906:1.15
	netbsd-7-2-RELEASE:1.10
	pgoyette-compat-0728:1.15
	netbsd-8-0-RELEASE:1.14
	phil-wifi:1.15.0.2
	phil-wifi-base:1.15
	pgoyette-compat-0625:1.15
	netbsd-8-0-RC2:1.14
	pgoyette-compat-0521:1.15
	pgoyette-compat-0502:1.15
	pgoyette-compat-0422:1.15
	netbsd-8-0-RC1:1.14
	pgoyette-compat-0415:1.15
	pgoyette-compat-0407:1.15
	pgoyette-compat-0330:1.15
	pgoyette-compat-0322:1.15
	pgoyette-compat-0315:1.14
	netbsd-7-1-2-RELEASE:1.10
	pgoyette-compat:1.14.0.14
	pgoyette-compat-base:1.14
	netbsd-7-1-1-RELEASE:1.10
	tls-maxphys-base-20171202:1.14
	matt-nb8-mediatek:1.14.0.12
	matt-nb8-mediatek-base:1.14
	nick-nhusb-base-20170825:1.14
	perseant-stdc-iso10646:1.14.0.10
	perseant-stdc-iso10646-base:1.14
	netbsd-8:1.14.0.8
	netbsd-8-base:1.14
	prg-localcount2-base3:1.14
	prg-localcount2-base2:1.14
	prg-localcount2-base1:1.14
	prg-localcount2:1.14.0.6
	prg-localcount2-base:1.14
	pgoyette-localcount-20170426:1.14
	bouyer-socketcan-base1:1.14
	jdolecek-ncq:1.14.0.4
	jdolecek-ncq-base:1.14
	pgoyette-localcount-20170320:1.14
	netbsd-7-1:1.10.0.12
	netbsd-7-1-RELEASE:1.10
	netbsd-7-1-RC2:1.10
	nick-nhusb-base-20170204:1.14
	netbsd-7-nhusb-base-20170116:1.10
	bouyer-socketcan:1.14.0.2
	bouyer-socketcan-base:1.14
	pgoyette-localcount-20170107:1.14
	netbsd-7-1-RC1:1.10
	nick-nhusb-base-20161204:1.14
	pgoyette-localcount-20161104:1.14
	netbsd-7-0-2-RELEASE:1.10
	nick-nhusb-base-20161004:1.13
	localcount-20160914:1.13
	netbsd-7-nhusb:1.10.0.10
	netbsd-7-nhusb-base:1.10
	pgoyette-localcount-20160806:1.13
	pgoyette-localcount-20160726:1.13
	pgoyette-localcount:1.13.0.2
	pgoyette-localcount-base:1.13
	nick-nhusb-base-20160907:1.13
	nick-nhusb-base-20160529:1.13
	netbsd-7-0-1-RELEASE:1.10
	nick-nhusb-base-20160422:1.13
	nick-nhusb-base-20160319:1.12
	nick-nhusb-base-20151226:1.12
	netbsd-7-0:1.10.0.8
	netbsd-7-0-RELEASE:1.10
	nick-nhusb-base-20150921:1.12
	netbsd-7-0-RC3:1.10
	netbsd-7-0-RC2:1.10
	netbsd-7-0-RC1:1.10
	nick-nhusb-base-20150606:1.12
	nick-nhusb-base-20150406:1.11
	nick-nhusb:1.10.0.6
	nick-nhusb-base:1.10
	netbsd-6-0-6-RELEASE:1.6
	netbsd-6-1-5-RELEASE:1.6
	netbsd-7:1.10.0.4
	netbsd-7-base:1.10
	yamt-pagecache-base9:1.10
	yamt-pagecache-tag8:1.6.6.1
	netbsd-6-1-4-RELEASE:1.6
	netbsd-6-0-5-RELEASE:1.6
	tls-earlyentropy:1.10.0.2
	tls-earlyentropy-base:1.10
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.9
	riastradh-drm2-base3:1.9
	netbsd-6-1-3-RELEASE:1.6
	netbsd-6-0-4-RELEASE:1.6
	netbsd-6-1-2-RELEASE:1.6
	netbsd-6-0-3-RELEASE:1.6
	rmind-smpnet-nbase:1.10
	netbsd-6-1-1-RELEASE:1.6
	riastradh-drm2-base2:1.9
	riastradh-drm2-base1:1.9
	riastradh-drm2:1.9.0.6
	riastradh-drm2-base:1.9
	rmind-smpnet:1.9.0.4
	rmind-smpnet-base:1.10
	netbsd-6-1:1.6.0.20
	netbsd-6-0-2-RELEASE:1.6
	netbsd-6-1-RELEASE:1.6
	khorben-n900:1.9.0.2
	netbsd-6-1-RC4:1.6
	netbsd-6-1-RC3:1.6
	agc-symver:1.7.0.4
	agc-symver-base:1.7
	netbsd-6-1-RC2:1.6
	netbsd-6-1-RC1:1.6
	yamt-pagecache-base8:1.7
	netbsd-6-0-1-RELEASE:1.6
	yamt-pagecache-base7:1.6
	matt-nb6-plus-nbase:1.6
	yamt-pagecache-base6:1.6
	netbsd-6-0:1.6.0.18
	netbsd-6-0-RELEASE:1.6
	netbsd-6-0-RC2:1.6
	tls-maxphys:1.6.0.16
	tls-maxphys-base:1.10
	matt-nb6-plus:1.6.0.14
	matt-nb6-plus-base:1.6
	netbsd-6-0-RC1:1.6
	jmcneill-usbmp-base10:1.6
	yamt-pagecache-base5:1.6
	jmcneill-usbmp-base9:1.6
	yamt-pagecache-base4:1.6
	jmcneill-usbmp-base8:1.6
	jmcneill-usbmp-base7:1.6
	jmcneill-usbmp-base6:1.6
	jmcneill-usbmp-base5:1.6
	jmcneill-usbmp-base4:1.6
	jmcneill-usbmp-base3:1.6
	jmcneill-usbmp-pre-base2:1.6
	jmcneill-usbmp-base2:1.6
	netbsd-6:1.6.0.12
	netbsd-6-base:1.6
	jmcneill-usbmp:1.6.0.10
	jmcneill-usbmp-base:1.6
	jmcneill-audiomp3:1.6.0.8
	jmcneill-audiomp3-base:1.6
	yamt-pagecache-base3:1.6
	yamt-pagecache-base2:1.6
	yamt-pagecache:1.6.0.6
	yamt-pagecache-base:1.6
	rmind-uvmplock-nbase:1.6
	cherry-xenmp:1.6.0.4
	cherry-xenmp-base:1.6
	bouyer-quota2-nbase:1.6
	bouyer-quota2:1.6.0.2
	bouyer-quota2-base:1.6
	jruoho-x86intr:1.5.0.10
	jruoho-x86intr-base:1.5
	matt-mips64-premerge-20101231:1.5
	uebayasi-xip-base4:1.5
	uebayasi-xip-base3:1.5
	yamt-nfs-mp-base11:1.5
	uebayasi-xip-base2:1.5
	yamt-nfs-mp-base10:1.5
	uebayasi-xip-base1:1.5
	rmind-uvmplock:1.5.0.8
	rmind-uvmplock-base:1.6
	yamt-nfs-mp-base9:1.5
	uebayasi-xip:1.5.0.6
	uebayasi-xip-base:1.5
	matt-premerge-20091211:1.5
	yamt-nfs-mp-base8:1.5
	yamt-nfs-mp-base7:1.5
	jymxensuspend-base:1.5
	yamt-nfs-mp-base6:1.5
	yamt-nfs-mp-base5:1.5
	yamt-nfs-mp-base4:1.5
	jym-xensuspend-nbase:1.5
	yamt-nfs-mp:1.5.0.4
	yamt-nfs-mp-base3:1.5
	nick-hppapmap-base4:1.5
	nick-hppapmap-base3:1.5
	nick-hppapmap-base2:1.5
	jym-xensuspend:1.5.0.2
	jym-xensuspend-base:1.5
	nick-hppapmap-base:1.5
	nick-hppapmap:1.4.0.4
	mjf-devfs2-base:1.4
	mjf-devfs2:1.4.0.2
	haad-dm-base:1.3
	haad-dm-base2:1.3
	haad-nbase2:1.3
	ad-audiomp2:1.3.0.4
	ad-audiomp2-base:1.3
	christos-time_t-nbase:1.3
	christos-time_t-base:1.3
	christos-time_t:1.3.0.2;
locks; strict;
comment	@# @;


1.17
date	2020.01.01.19.36.27;	author pgoyette;	state dead;
branches;
next	1.16;
commitid	QKNW9k4QTnIav1RB;

1.16
date	2019.01.27.02.08.44;	author pgoyette;	state Exp;
branches;
next	1.15;
commitid	ipPva1Pj3xTcBm9B;

1.15
date	2018.03.18.00.51.46;	author christos;	state Exp;
branches
	1.15.2.1;
next	1.14;
commitid	YvPEist26onIiSuA;

1.14
date	2016.11.03.04.26.58;	author riastradh;	state Exp;
branches
	1.14.14.1;
next	1.13;
commitid	5ssImNMNETJ5yDsz;

1.13
date	2016.04.06.19.45.45;	author roy;	state Exp;
branches
	1.13.2.1;
next	1.12;
commitid	b0qWwvlraL2VpB1z;

1.12
date	2015.05.10.07.41.16;	author pgoyette;	state Exp;
branches;
next	1.11;
commitid	AfRemwEAFpE14Sky;

1.11
date	2014.12.14.21.14.06;	author christos;	state Exp;
branches;
next	1.10;
commitid	j5D7bMw5hSjpj32y;

1.10
date	2014.04.04.18.17.36;	author njoly;	state Exp;
branches
	1.10.6.1;
next	1.9;
commitid	4HMdsTg9oXBWuovx;

1.9
date	2013.04.16.15.30.09;	author christos;	state Exp;
branches
	1.9.4.1;
next	1.8;

1.8
date	2013.04.16.15.21.33;	author christos;	state Exp;
branches;
next	1.7;

1.7
date	2013.01.22.01.48.34;	author christos;	state Exp;
branches;
next	1.6;

1.6
date	2011.01.17.15.57.04;	author pooka;	state Exp;
branches
	1.6.6.1
	1.6.16.1;
next	1.5;

1.5
date	2009.01.19.19.39.41;	author christos;	state Exp;
branches
	1.5.4.1
	1.5.8.1
	1.5.10.1;
next	1.4;

1.4
date	2009.01.11.02.45.54;	author christos;	state Exp;
branches
	1.4.2.1
	1.4.4.1;
next	1.3;

1.3
date	2008.11.20.10.54.38;	author ad;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2008.11.20.09.22.57;	author ad;	state Exp;
branches;
next	1.1;

1.1
date	2008.11.19.18.36.07;	author ad;	state Exp;
branches;
next	;

1.15.2.1
date	2019.06.10.22.09.13;	author christos;	state Exp;
branches;
next	1.15.2.2;
commitid	jtc8rnCzWiEEHGqB;

1.15.2.2
date	2020.04.08.14.08.54;	author martin;	state dead;
branches;
next	;
commitid	Qli2aW9E74UFuA3C;

1.14.14.1
date	2018.03.08.09.54.36;	author pgoyette;	state Exp;
branches;
next	1.14.14.2;
commitid	0zuEfKZXsaxsCDtA;

1.14.14.2
date	2018.03.17.00.48.20;	author pgoyette;	state Exp;
branches;
next	1.14.14.3;
commitid	nGuUky58GonvjKuA;

1.14.14.3
date	2018.03.17.06.49.57;	author pgoyette;	state Exp;
branches;
next	1.14.14.4;
commitid	J44NuKNZoLZljMuA;

1.14.14.4
date	2018.03.18.01.17.29;	author pgoyette;	state Exp;
branches;
next	1.14.14.5;
commitid	XkbyD7GCqZLqrSuA;

1.14.14.5
date	2018.03.22.01.44.51;	author pgoyette;	state Exp;
branches;
next	1.14.14.6;
commitid	fxb4Rxa9G9QMsovA;

1.14.14.6
date	2018.03.26.00.00.39;	author pgoyette;	state Exp;
branches;
next	1.14.14.7;
commitid	J6CpEmGYobPdLTvA;

1.14.14.7
date	2018.03.27.03.41.51;	author pgoyette;	state Exp;
branches;
next	;
commitid	zsz8CVO40wT6X2wA;

1.13.2.1
date	2016.11.04.14.49.18;	author pgoyette;	state Exp;
branches;
next	;
commitid	2m1JRwYmpwPkOOsz;

1.10.6.1
date	2015.04.06.15.18.20;	author skrll;	state Exp;
branches;
next	1.10.6.2;
commitid	pz01Zhy7RP6iGxgy;

1.10.6.2
date	2015.06.06.14.40.23;	author skrll;	state Exp;
branches;
next	1.10.6.3;
commitid	O6LVO5i6UulOvnoy;

1.10.6.3
date	2016.04.22.15.44.17;	author skrll;	state Exp;
branches;
next	1.10.6.4;
commitid	bbo6x38wuxyZyD3z;

1.10.6.4
date	2016.12.05.10.55.27;	author skrll;	state Exp;
branches;
next	;
commitid	4H3tiQVJXN6oEMwz;

1.9.4.1
date	2014.05.18.17.46.10;	author rmind;	state Exp;
branches;
next	;
commitid	mL5ZYSzpqK6QS2Bx;

1.6.6.1
date	2013.01.23.00.06.24;	author yamt;	state Exp;
branches;
next	1.6.6.2;

1.6.6.2
date	2014.05.22.11.41.06;	author yamt;	state Exp;
branches;
next	;
commitid	VUUXuyNWnt3AKwBx;

1.6.16.1
date	2013.02.25.00.29.59;	author tls;	state Exp;
branches;
next	1.6.16.2;

1.6.16.2
date	2013.06.23.06.20.24;	author tls;	state Exp;
branches;
next	1.6.16.3;
commitid	eVjr9caYRQbRGHUw;

1.6.16.3
date	2014.08.20.00.04.32;	author tls;	state Exp;
branches;
next	1.6.16.4;
commitid	jTnpym9Qu0o4R1Nx;

1.6.16.4
date	2017.12.03.11.38.50;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.5.4.1
date	2009.01.19.19.39.41;	author yamt;	state dead;
branches;
next	1.5.4.2;

1.5.4.2
date	2009.05.04.08.14.07;	author yamt;	state Exp;
branches;
next	;

1.5.8.1
date	2011.03.05.20.55.39;	author rmind;	state Exp;
branches;
next	;

1.5.10.1
date	2011.06.06.09.09.47;	author jruoho;	state Exp;
branches;
next	;

1.4.2.1
date	2009.01.11.02.45.54;	author mjf;	state dead;
branches;
next	1.4.2.2;

1.4.2.2
date	2009.01.17.13.29.28;	author mjf;	state Exp;
branches;
next	;

1.4.4.1
date	2009.01.11.02.45.54;	author skrll;	state dead;
branches;
next	1.4.4.2;

1.4.4.2
date	2009.01.19.13.20.07;	author skrll;	state Exp;
branches;
next	1.4.4.3;

1.4.4.3
date	2009.03.03.18.33.37;	author skrll;	state Exp;
branches;
next	;

1.3.2.1
date	2008.11.20.10.54.38;	author christos;	state dead;
branches;
next	1.3.2.2;

1.3.2.2
date	2008.11.20.22.18.31;	author christos;	state Exp;
branches;
next	1.3.2.3;

1.3.2.3
date	2008.12.28.01.29.57;	author christos;	state Exp;
branches;
next	;


desc
@@


1.17
log
@One more vestige.
@
text
@#	$NetBSD: Makefile,v 1.16 2019/01/27 02:08:44 pgoyette Exp $

.include "../Makefile.inc"

.PATH:	${S}/compat/common

KMOD=	compat

#
# We don't want to hook these in for the native emulation, but do want
# the symbols available for other emulations.  So include the source
# files but don't hook them in via compat_modcmd().
#
CPPFLAGS+=	-DCOMPAT_09
CPPFLAGS+=	-DCOMPAT_10
CPPFLAGS+=	-DCOMPAT_11
CPPFLAGS+=	-DCOMPAT_12
CPPFLAGS+=	-DCOMPAT_13
CPPFLAGS+=	-DCOMPAT_14
CPPFLAGS+=	-DCOMPAT_15
CPPFLAGS+=	-DCOMPAT_16

CPPFLAGS+=	-DCOMPAT_20
CPPFLAGS+=	-DCOMPAT_30 -DCOMPAT_40 -DCOMPAT_50
CPPFLAGS+=	-DCOMPAT_60 -DCOMPAT_70 -DCOMPAT_80
CPPFLAGS+=	-DCOMPAT_43
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
CPPFLAGS+=	-DCPU_UCODE
# pick up more for bsd.klinks.mk as needed.
MACHINE_EXTRA=	x86
.else
MACHINE_EXTRA=	none
.endif

.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
CPPFLAGS+=	-DCPU_UCODE
# pick up more for bsd.klinks.mk as needed.
MACHINE_EXTRA= x86
.else
MACHINE_EXTRA= none
.endif

.include "../../compat/common/Makefile.sysio"

SRCS+=	compat_mod.c compat_exec.c compat_util.c

.PATH:	${S}/arch/${MACHINE}/${MACHINE}
.PATH:	${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}
.PATH:	${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}
.PATH:	${S}	${S}/arch/${MACHINE_EXTRA}/${MACHINE_EXTRA}

.for i in compat_13_machdep.c compat_16_machdep.c # compat_60_cpu_ucode.c
.   if	exists(${S}/arch/${MACHINE}/${MACHINE}/${i}) || \
	exists(${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}/${i}) || \
	exists(${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}/${i}) || \
	exists(${S}/arch/${MACHINE_EXTRA}/${MACHINE_EXTRA}/${i})
SRCS+=	${i}
.   endif
.endfor

.include <bsd.kmodule.mk>
@


1.16
log
@Merge the [pgoyette-compat] branch
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2018/03/18 00:51:46 christos Exp $
@


1.15
log
@finish MD glue for compat ucode module.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2016/11/03 04:26:58 riastradh Exp $
d35 8
d45 1
a45 1
SRCS+=	compat_mod.c
d52 1
a52 1
.for i in compat_13_machdep.c compat_16_machdep.c compat_60_cpu_ucode.c
@


1.15.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2019/01/27 02:08:44 pgoyette Exp $
a34 8
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
CPPFLAGS+=	-DCPU_UCODE
# pick up more for bsd.klinks.mk as needed.
MACHINE_EXTRA= x86
.else
MACHINE_EXTRA= none
.endif

d37 1
a37 1
SRCS+=	compat_mod.c compat_exec.c compat_util.c
d44 1
a44 1
.for i in compat_13_machdep.c compat_16_machdep.c # compat_60_cpu_ucode.c
@


1.15.2.2
log
@Merge changes from current as of 20200406
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15.2.1 2019/06/10 22:09:13 christos Exp $
@


1.14
log
@Reorganize SRCS lists for libcompat, compat.kmod, sysv_ipc.kmod.

- Share lists between the libcompat and module makefiles.
- Include some omitted entries in compat.kmod:
  . if_43.c
  . kern_sa_60.c
  . kern_time_30.c
  . rndpseudo_50.c
  . rtsock_14.c
  . rtsock_50.c
  . rtsock_70.c
  . uipc_syscalls_40.c
  . uipc_syscalls_50.c
- Exclude a (harmless) spurious entry in sysv_ipc.kmod on LP64 systems:
  . kern_ipc_10.c

Should fix broken ifconfig on modular current kernels.

ok pgoyette
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2016/04/06 19:45:45 roy Exp $
d27 7
d42 1
d44 8
a51 11
.if (exists(${S}/arch/${MACHINE}/${MACHINE}/compat_13_machdep.c)) || \
    (exists(${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}/compat_13_machdep.c)) || \
    (exists(${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}/compat_13_machdep.c))
SRCS+=	compat_13_machdep.c
.endif

.if (exists(${S}/arch/${MACHINE}/${MACHINE}/compat_16_machdep.c)) || \
    (exists(${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}/compat_16_machdep.c)) || \
    (exists(${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}/compat_16_machdep.c))
SRCS+=	compat_16_machdep.c
.endif
@


1.14.14.1
log
@Include shared/common routines in the compat_netbsd Makefile

XXX These may later be extracted into an independant compat_util
XXX module.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2016/11/03 04:26:58 riastradh Exp $
d30 1
a30 1
SRCS+=	compat_mod.c compat_exec.c compat_util.c
@


1.14.14.2
log
@Move closer to having a compat_60 module
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14.14.1 2018/03/08 09:54:36 pgoyette Exp $
a47 10
.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386"

CPPFLAGS+=      -DCPU_UCODE

.PATH:  ${S}/arch/x86/x86

SRCS+=  cpu_ucode.c

.endif

@


1.14.14.3
log
@Back out changes on the branch related to kernel microcode compat.

Christos didn't like the way it was done, so waiting for a better
approach/implementation.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14.14.2 2018/03/17 00:48:20 pgoyette Exp $
d48 10
@


1.14.14.4
log
@Import from -current the MD glue code for compat cpu_ucode
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14.14.3 2018/03/17 06:49:57 pgoyette Exp $
a27 9
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
CPPFLAGS+=	-DCPU_UCODE
# pick up more for bsd.klinks.mk as needed.
MACHINE_EXTRA= x86
.else
MACHINE_EXTRA= none

.endif

a34 1
.PATH:	${S}	${S}/arch/${MACHINE_EXTRA}/${MACHINE_EXTRA}
d36 11
a46 8
.for i in compat_13_machdep.c compat_16_machdep.c compat_60_cpu_ucode.c
.   if exists(${S}/arch/${MACHINE}/${MACHINE}/${i}) || \
	exists(${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}/${i}) || \
	exists(${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}/${i}) || \
	exists(${S}/arch/${MACHINE_EXTRA}/${MACHINE_EXTRA}/${i})
SRCS+= ${i}
.   endif
.endfor
@


1.14.14.5
log
@Synch with HEAD, resolve conflicts
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2018/03/18 00:51:46 christos Exp $
a26 7
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
CPPFLAGS+=	-DCPU_UCODE
# pick up more for bsd.klinks.mk as needed.
MACHINE_EXTRA=	x86
.else
MACHINE_EXTRA=	none
.endif
d47 1
a47 1
.   if	exists(${S}/arch/${MACHINE}/${MACHINE}/${i}) || \
d51 1
a51 1
SRCS+=	${i}
@


1.14.14.6
log
@Remove duplicate setting of -DCPU_UCODE
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14.14.5 2018/03/22 01:44:51 pgoyette Exp $
d27 7
d41 1
@


1.14.14.7
log
@Finish disable of compat_60_cpu_ucode.c
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14.14.6 2018/03/26 00:00:39 pgoyette Exp $
d45 1
a45 1
.for i in compat_13_machdep.c compat_16_machdep.c # compat_60_cpu_ucode.c
@


1.13
log
@Add sc_pid to sockcred so that SOCK_DGRAM and LOCAL_CREDS socket option
can learn the process id of the AF_LOCAL sender.
Add compat glue for old structure.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2015/05/10 07:41:16 pgoyette Exp $
d28 3
a30 10
SRCS=	kern_exit_43.c kern_info_09.c
SRCS+=	kern_info_43.c kern_resource_43.c kern_select_50.c
SRCS+=	kern_sig_13.c kern_sig_43.c kern_xxx_12.c
SRCS+=	tty_43.c uipc_syscalls_30.c
SRCS+=	uipc_syscalls_43.c vfs_syscalls_12.c kern_sig_16.c
SRCS+=	vfs_syscalls_20.c vfs_syscalls_30.c vfs_syscalls_40.c
SRCS+=	vfs_syscalls_43.c vm_12.c vm_43.c compat_mod.c
SRCS+=	kern_time_50.c kern_50.c vfs_syscalls_50.c
SRCS+=	tty_60.c kern_time_60.c
SRCS+=	uipc_usrreq_70.c
@


1.13.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2016/11/03 04:26:58 riastradh Exp $
d28 10
a37 3
.include "../../compat/common/Makefile.sysio"

SRCS+=	compat_mod.c
@


1.12
log
@Split the SYSV* compat code out into a separate compat_sysv module.

For monolithic kernels, both modules will be compiled as "built-ins",
while modular environments will be able to load the SYSVSEM, SYSVSHM,
and SYSVMSG code independant from the rest of compat.

This is a necessary precursor step to making the "STD" SYSV* code
into a separate module.

Tested in both monolithic and modular environments with no errors
seen.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2014/12/14 21:14:06 christos Exp $
d37 1
@


1.11
log
@Don't exclude amd64 from COMPAT < 15. We need it for COMPAT_NETBSD32 a.out
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2014/04/04 18:17:36 njoly Exp $
d26 1
a26 1
CPPFLAGS+=	-DSYSVSEM -DSYSVSHM -DSYSVMSG -DCOMPAT_43
d29 3
a31 3
SRCS+=	kern_info_43.c kern_ipc_10.c kern_resource_43.c kern_select_50.c
SRCS+=	kern_sig_13.c kern_sig_43.c kern_xxx_12.c sysv_msg_14.c
SRCS+=	sysv_sem_14.c sysv_shm_14.c tty_43.c uipc_syscalls_30.c
d35 1
a35 2
SRCS+=	sysv_msg_50.c sysv_sem_50.c kern_time_50.c kern_50.c
SRCS+=	sysv_shm_50.c vfs_syscalls_50.c sysv_ipc_50.c
@


1.10
log
@Move a few compat 50 syscalls, not applicable to rump kernels, out of
kern_time_50.c to a new source module.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2013/04/16 15:30:09 christos Exp $
a13 1
.if (${MACHINE_ARCH} != "x86_64")
a21 1
.endif
@


1.10.6.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2014/12/14 21:14:06 christos Exp $
d14 1
d23 1
@


1.10.6.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10.6.1 2015/04/06 15:18:20 skrll Exp $
d26 1
a26 1
CPPFLAGS+=	-DCOMPAT_43
d29 3
a31 3
SRCS+=	kern_info_43.c kern_resource_43.c kern_select_50.c
SRCS+=	kern_sig_13.c kern_sig_43.c kern_xxx_12.c
SRCS+=	tty_43.c uipc_syscalls_30.c
d35 2
a36 1
SRCS+=	kern_time_50.c kern_50.c vfs_syscalls_50.c
@


1.10.6.3
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10.6.2 2015/06/06 14:40:23 skrll Exp $
a36 1
SRCS+=	uipc_usrreq_70.c
@


1.10.6.4
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10.6.3 2016/04/22 15:44:17 skrll Exp $
d28 10
a37 3
.include "../../compat/common/Makefile.sysio"

SRCS+=	compat_mod.c
@


1.9
log
@remove dup
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2013/04/16 15:21:33 christos Exp $
d37 1
a37 1
SRCS+=	sysv_msg_50.c sysv_sem_50.c kern_time_50.c
@


1.9.4.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2013/04/16 15:30:09 christos Exp $
d37 1
a37 1
SRCS+=	sysv_msg_50.c sysv_sem_50.c kern_time_50.c kern_50.c
@


1.8
log
@add missing file
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2013/01/22 01:48:34 christos Exp $
a39 1
SRCS+=	kern_time_60.c
@


1.7
log
@No need to wrap each version with a separate conditional.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2011/01/17 15:57:04 pooka Exp $
d39 2
@


1.6
log
@Put async i/o compat routines in a separate source module from the
ones related to clock and process management.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2009/01/19 19:39:41 christos Exp $
a15 2
.endif
.if (${MACHINE_ARCH} != "x86_64")
a16 2
.endif
.if (${MACHINE_ARCH} != "x86_64")
a17 2
.endif
.if (${MACHINE_ARCH} != "x86_64")
a18 2
.endif
.if (${MACHINE_ARCH} != "x86_64")
a19 2
.endif
.if (${MACHINE_ARCH} != "x86_64")
a20 2
.endif
.if (${MACHINE_ARCH} != "x86_64")
a21 2
.endif
.if (${MACHINE_ARCH} != "x86_64")
@


1.6.16.1
log
@resync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2011/01/17 15:57:04 pooka Exp $
d16 2
d19 2
d22 2
d25 2
d28 2
d31 2
d34 2
@


1.6.16.2
log
@resync from head
@
text
@d1 1
a1 1
#	$NetBSD$
a38 1
SRCS+=	tty_60.c kern_time_60.c
@


1.6.16.3
log
@Rebase to HEAD as of a few days ago.
@
text
@d37 1
a37 1
SRCS+=	sysv_msg_50.c sysv_sem_50.c kern_time_50.c kern_50.c
@


1.6.16.4
log
@update from HEAD
@
text
@d14 1
d23 1
d28 1
a28 3
CPPFLAGS+=	-DCOMPAT_43

.include "../../compat/common/Makefile.sysio"
d30 10
a39 1
SRCS+=	compat_mod.c
@


1.6.6.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2011/01/17 15:57:04 pooka Exp $
d16 2
d19 2
d22 2
d25 2
d28 2
d31 2
d34 2
@


1.6.6.2
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.6.6.1 2013/01/23 00:06:24 yamt Exp $
d37 1
a37 1
SRCS+=	sysv_msg_50.c sysv_sem_50.c kern_time_50.c kern_50.c
a38 1
SRCS+=	tty_60.c kern_time_60.c
@


1.5
log
@Provide compatibility for pre-christos-time_t sysv sysctls.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2009/01/11 02:45:54 christos Exp $
d45 2
a46 2
SRCS+=	kern_info_43.c kern_ipc_10.c kern_resource_43.c kern_sig_13.c
SRCS+=	kern_sig_43.c kern_xxx_12.c sysv_msg_14.c
@


1.5.10.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2011/01/17 15:57:04 pooka Exp $
d45 2
a46 2
SRCS+=	kern_info_43.c kern_ipc_10.c kern_resource_43.c kern_select_50.c
SRCS+=	kern_sig_13.c kern_sig_43.c kern_xxx_12.c sysv_msg_14.c
@


1.5.8.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD$
d45 2
a46 2
SRCS+=	kern_info_43.c kern_ipc_10.c kern_resource_43.c kern_select_50.c
SRCS+=	kern_sig_13.c kern_sig_43.c kern_xxx_12.c sysv_msg_14.c
@


1.5.4.1
log
@file Makefile was added on branch yamt-nfs-mp on 2009-05-04 08:14:07 +0000
@
text
@d1 70
@


1.5.4.2
log
@sync with head.
@
text
@a0 70
#	$NetBSD$

.include "../Makefile.inc"

.PATH:	${S}/compat/common

KMOD=	compat

#
# We don't want to hook these in for the native emulation, but do want
# the symbols available for other emulations.  So include the source
# files but don't hook them in via compat_modcmd().
#
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_09
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_10
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_11
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_12
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_13
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_14
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_15
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_16
.endif

CPPFLAGS+=	-DCOMPAT_20
CPPFLAGS+=	-DCOMPAT_30 -DCOMPAT_40 -DCOMPAT_50
CPPFLAGS+=	-DCOMPAT_60 -DCOMPAT_70 -DCOMPAT_80
CPPFLAGS+=	-DSYSVSEM -DSYSVSHM -DSYSVMSG -DCOMPAT_43

SRCS=	kern_exit_43.c kern_info_09.c
SRCS+=	kern_info_43.c kern_ipc_10.c kern_resource_43.c kern_sig_13.c
SRCS+=	kern_sig_43.c kern_xxx_12.c sysv_msg_14.c
SRCS+=	sysv_sem_14.c sysv_shm_14.c tty_43.c uipc_syscalls_30.c
SRCS+=	uipc_syscalls_43.c vfs_syscalls_12.c kern_sig_16.c
SRCS+=	vfs_syscalls_20.c vfs_syscalls_30.c vfs_syscalls_40.c
SRCS+=	vfs_syscalls_43.c vm_12.c vm_43.c compat_mod.c
SRCS+=	sysv_msg_50.c sysv_sem_50.c kern_time_50.c
SRCS+=	sysv_shm_50.c vfs_syscalls_50.c sysv_ipc_50.c

.PATH:	${S}/arch/${MACHINE}/${MACHINE}
.PATH:	${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}
.PATH:	${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}

.if (exists(${S}/arch/${MACHINE}/${MACHINE}/compat_13_machdep.c)) || \
    (exists(${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}/compat_13_machdep.c)) || \
    (exists(${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}/compat_13_machdep.c))
SRCS+=	compat_13_machdep.c
.endif

.if (exists(${S}/arch/${MACHINE}/${MACHINE}/compat_16_machdep.c)) || \
    (exists(${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}/compat_16_machdep.c)) || \
    (exists(${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}/compat_16_machdep.c))
SRCS+=	compat_16_machdep.c
.endif

.include <bsd.kmodule.mk>
@


1.4
log
@merge christos-time_t
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3.2.2 2008/12/28 01:29:57 christos Exp $
d52 1
a52 1
SRCS+=	sysv_shm_50.c vfs_syscalls_50.c
@


1.4.4.1
log
@file Makefile was added on branch nick-hppapmap on 2009-01-19 13:20:07 +0000
@
text
@d1 70
@


1.4.4.2
log
@Sync with HEAD.
@
text
@a0 70
#	$NetBSD: Makefile,v 1.4 2009/01/11 02:45:54 christos Exp $

.include "../Makefile.inc"

.PATH:	${S}/compat/common

KMOD=	compat

#
# We don't want to hook these in for the native emulation, but do want
# the symbols available for other emulations.  So include the source
# files but don't hook them in via compat_modcmd().
#
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_09
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_10
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_11
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_12
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_13
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_14
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_15
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_16
.endif

CPPFLAGS+=	-DCOMPAT_20
CPPFLAGS+=	-DCOMPAT_30 -DCOMPAT_40 -DCOMPAT_50
CPPFLAGS+=	-DCOMPAT_60 -DCOMPAT_70 -DCOMPAT_80
CPPFLAGS+=	-DSYSVSEM -DSYSVSHM -DSYSVMSG -DCOMPAT_43

SRCS=	kern_exit_43.c kern_info_09.c
SRCS+=	kern_info_43.c kern_ipc_10.c kern_resource_43.c kern_sig_13.c
SRCS+=	kern_sig_43.c kern_xxx_12.c sysv_msg_14.c
SRCS+=	sysv_sem_14.c sysv_shm_14.c tty_43.c uipc_syscalls_30.c
SRCS+=	uipc_syscalls_43.c vfs_syscalls_12.c kern_sig_16.c
SRCS+=	vfs_syscalls_20.c vfs_syscalls_30.c vfs_syscalls_40.c
SRCS+=	vfs_syscalls_43.c vm_12.c vm_43.c compat_mod.c
SRCS+=	sysv_msg_50.c sysv_sem_50.c kern_time_50.c
SRCS+=	sysv_shm_50.c vfs_syscalls_50.c

.PATH:	${S}/arch/${MACHINE}/${MACHINE}
.PATH:	${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}
.PATH:	${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}

.if (exists(${S}/arch/${MACHINE}/${MACHINE}/compat_13_machdep.c)) || \
    (exists(${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}/compat_13_machdep.c)) || \
    (exists(${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}/compat_13_machdep.c))
SRCS+=	compat_13_machdep.c
.endif

.if (exists(${S}/arch/${MACHINE}/${MACHINE}/compat_16_machdep.c)) || \
    (exists(${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}/compat_16_machdep.c)) || \
    (exists(${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}/compat_16_machdep.c))
SRCS+=	compat_16_machdep.c
.endif

.include <bsd.kmodule.mk>
@


1.4.4.3
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4.4.2 2009/01/19 13:20:07 skrll Exp $
d52 1
a52 1
SRCS+=	sysv_shm_50.c vfs_syscalls_50.c sysv_ipc_50.c
@


1.4.2.1
log
@file Makefile was added on branch mjf-devfs2 on 2009-01-17 13:29:28 +0000
@
text
@d1 70
@


1.4.2.2
log
@Sync with HEAD.
@
text
@a0 70
#	$NetBSD$

.include "../Makefile.inc"

.PATH:	${S}/compat/common

KMOD=	compat

#
# We don't want to hook these in for the native emulation, but do want
# the symbols available for other emulations.  So include the source
# files but don't hook them in via compat_modcmd().
#
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_09
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_10
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_11
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_12
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_13
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_14
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_15
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_16
.endif

CPPFLAGS+=	-DCOMPAT_20
CPPFLAGS+=	-DCOMPAT_30 -DCOMPAT_40 -DCOMPAT_50
CPPFLAGS+=	-DCOMPAT_60 -DCOMPAT_70 -DCOMPAT_80
CPPFLAGS+=	-DSYSVSEM -DSYSVSHM -DSYSVMSG -DCOMPAT_43

SRCS=	kern_exit_43.c kern_info_09.c
SRCS+=	kern_info_43.c kern_ipc_10.c kern_resource_43.c kern_sig_13.c
SRCS+=	kern_sig_43.c kern_xxx_12.c sysv_msg_14.c
SRCS+=	sysv_sem_14.c sysv_shm_14.c tty_43.c uipc_syscalls_30.c
SRCS+=	uipc_syscalls_43.c vfs_syscalls_12.c kern_sig_16.c
SRCS+=	vfs_syscalls_20.c vfs_syscalls_30.c vfs_syscalls_40.c
SRCS+=	vfs_syscalls_43.c vm_12.c vm_43.c compat_mod.c
SRCS+=	sysv_msg_50.c sysv_sem_50.c kern_time_50.c
SRCS+=	sysv_shm_50.c vfs_syscalls_50.c

.PATH:	${S}/arch/${MACHINE}/${MACHINE}
.PATH:	${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}
.PATH:	${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}

.if (exists(${S}/arch/${MACHINE}/${MACHINE}/compat_13_machdep.c)) || \
    (exists(${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}/compat_13_machdep.c)) || \
    (exists(${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}/compat_13_machdep.c))
SRCS+=	compat_13_machdep.c
.endif

.if (exists(${S}/arch/${MACHINE}/${MACHINE}/compat_16_machdep.c)) || \
    (exists(${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}/compat_16_machdep.c)) || \
    (exists(${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}/compat_16_machdep.c))
SRCS+=	compat_16_machdep.c
.endif

.include <bsd.kmodule.mk>
@


1.3
log
@exec_aout module:

- compat_exec.c belongs here, not in compat.
- Make COMPAT_NOMID work in here.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2008/11/20 09:22:57 ad Exp $
d46 1
a46 1
SRCS+=	kern_sig_43.c kern_xxx_12.c sysv_ipc_14.c sysv_msg_14.c
d51 2
@


1.3.2.1
log
@file Makefile was added on branch christos-time_t on 2008-11-20 22:18:31 +0000
@
text
@d1 68
@


1.3.2.2
log
@nuke ipc14
@
text
@a0 68
#	$NetBSD: Makefile,v 1.3.2.1 2008/11/20 22:18:31 christos Exp $

.include "../Makefile.inc"

.PATH:	${S}/compat/common

KMOD=	compat

#
# We don't want to hook these in for the native emulation, but do want
# the symbols available for other emulations.  So include the source
# files but don't hook them in via compat_modcmd().
#
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_09
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_10
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_11
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_12
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_13
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_14
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_15
.endif
.if (${MACHINE_ARCH} != "x86_64")
CPPFLAGS+=	-DCOMPAT_16
.endif

CPPFLAGS+=	-DCOMPAT_20
CPPFLAGS+=	-DCOMPAT_30 -DCOMPAT_40 -DCOMPAT_50
CPPFLAGS+=	-DCOMPAT_60 -DCOMPAT_70 -DCOMPAT_80
CPPFLAGS+=	-DSYSVSEM -DSYSVSHM -DSYSVMSG -DCOMPAT_43

SRCS=	kern_exit_43.c kern_info_09.c
SRCS+=	kern_info_43.c kern_ipc_10.c kern_resource_43.c kern_sig_13.c
SRCS+=	kern_sig_43.c kern_xxx_12.c sysv_msg_14.c
SRCS+=	sysv_sem_14.c sysv_shm_14.c tty_43.c uipc_syscalls_30.c
SRCS+=	uipc_syscalls_43.c vfs_syscalls_12.c kern_sig_16.c
SRCS+=	vfs_syscalls_20.c vfs_syscalls_30.c vfs_syscalls_40.c
SRCS+=	vfs_syscalls_43.c vm_12.c vm_43.c compat_mod.c

.PATH:	${S}/arch/${MACHINE}/${MACHINE}
.PATH:	${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}
.PATH:	${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}

.if (exists(${S}/arch/${MACHINE}/${MACHINE}/compat_13_machdep.c)) || \
    (exists(${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}/compat_13_machdep.c)) || \
    (exists(${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}/compat_13_machdep.c))
SRCS+=	compat_13_machdep.c
.endif

.if (exists(${S}/arch/${MACHINE}/${MACHINE}/compat_16_machdep.c)) || \
    (exists(${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}/compat_16_machdep.c)) || \
    (exists(${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}/compat_16_machdep.c))
SRCS+=	compat_16_machdep.c
.endif

.include <bsd.kmodule.mk>
@


1.3.2.3
log
@add new files.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3.2.2 2008/12/28 01:29:57 christos Exp $
a50 2
SRCS+=	sysv_msg_50.c sysv_sem_50.c kern_time_50.c
SRCS+=	sysv_shm_50.c vfs_syscalls_50.c
@


1.2
log
@PR port-amd64 modules/compat missing symbols on amd64

Also, test for compat_??_machdep.c so we don't have to grow more ifdefs
in the makefile.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2008/11/19 18:36:07 ad Exp $
d44 1
a44 1
SRCS=	compat_exec.c kern_exit_43.c kern_info_09.c
@


1.1
log
@Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2008/06/28 16:11:35 rumble Exp $
d9 31
a39 4
CPPFLAGS+=	-DSYSVSEM -DSYSVSHM -DSYSVMSG -DCOMPAT_43
CPPFLAGS+=	-DCOMPAT_09 -DCOMPAT_10 -DCOMPAT_11
CPPFLAGS+=	-DCOMPAT_12 -DCOMPAT_13 -DCOMPAT_14
CPPFLAGS+=	-DCOMPAT_15 -DCOMPAT_16	-DCOMPAT_20
d42 1
d52 14
a65 3
.if ${MACHINE} == "i386"
.PATH:	${S}/arch/i386/i386
SRCS+=	compat_13_machdep.c compat_16_machdep.c
@
