head	1.51;
access;
symbols
	netbsd-11-0-RC4:1.51
	netbsd-11-0-RC3:1.51
	netbsd-11-0-RC2:1.51
	netbsd-11-0-RC1:1.51
	perseant-exfatfs-base-20250801:1.51
	netbsd-11:1.51.0.6
	netbsd-11-base:1.51
	netbsd-10-1-RELEASE:1.51
	perseant-exfatfs-base-20240630:1.51
	perseant-exfatfs:1.51.0.4
	perseant-exfatfs-base:1.51
	netbsd-8-3-RELEASE:1.45
	netbsd-9-4-RELEASE:1.47
	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.2
	netbsd-10-base:1.51
	netbsd-9-3-RELEASE:1.47
	cjep_sun2x-base1:1.49
	cjep_sun2x:1.49.0.4
	cjep_sun2x-base:1.49
	cjep_staticlib_x-base1:1.49
	netbsd-9-2-RELEASE:1.47
	cjep_staticlib_x:1.49.0.2
	cjep_staticlib_x-base:1.49
	netbsd-9-1-RELEASE:1.47
	phil-wifi-20200421:1.47
	phil-wifi-20200411:1.47
	is-mlppp:1.47.0.4
	is-mlppp-base:1.47
	phil-wifi-20200406:1.47
	netbsd-8-2-RELEASE:1.45
	netbsd-9-0-RELEASE:1.47
	netbsd-9-0-RC2:1.47
	netbsd-9-0-RC1:1.47
	phil-wifi-20191119:1.47
	netbsd-9:1.47.0.2
	netbsd-9-base:1.47
	phil-wifi-20190609:1.47
	netbsd-8-1-RELEASE:1.45
	netbsd-8-1-RC1:1.45
	pgoyette-compat-merge-20190127:1.45.12.2
	pgoyette-compat-20190127:1.47
	pgoyette-compat-20190118:1.47
	pgoyette-compat-1226:1.46
	pgoyette-compat-1126:1.46
	pgoyette-compat-1020:1.45
	pgoyette-compat-0930:1.45
	pgoyette-compat-0906:1.45
	netbsd-7-2-RELEASE:1.36
	pgoyette-compat-0728:1.45
	netbsd-8-0-RELEASE:1.45
	phil-wifi:1.45.0.14
	phil-wifi-base:1.45
	pgoyette-compat-0625:1.45
	netbsd-8-0-RC2:1.45
	pgoyette-compat-0521:1.45
	pgoyette-compat-0502:1.45
	pgoyette-compat-0422:1.45
	netbsd-8-0-RC1:1.45
	pgoyette-compat-0415:1.45
	pgoyette-compat-0407:1.45
	pgoyette-compat-0330:1.45
	pgoyette-compat-0322:1.45
	pgoyette-compat-0315:1.45
	netbsd-7-1-2-RELEASE:1.36
	pgoyette-compat:1.45.0.12
	pgoyette-compat-base:1.45
	netbsd-7-1-1-RELEASE:1.36
	matt-nb8-mediatek:1.45.0.10
	matt-nb8-mediatek-base:1.45
	perseant-stdc-iso10646:1.45.0.8
	perseant-stdc-iso10646-base:1.45
	netbsd-8:1.45.0.6
	netbsd-8-base:1.45
	prg-localcount2-base3:1.45
	prg-localcount2-base2:1.45
	prg-localcount2-base1:1.45
	prg-localcount2:1.45.0.4
	prg-localcount2-base:1.45
	pgoyette-localcount-20170426:1.45
	bouyer-socketcan-base1:1.45
	pgoyette-localcount-20170320:1.45
	netbsd-7-1:1.36.0.10
	netbsd-7-1-RELEASE:1.36
	netbsd-7-1-RC2:1.36
	netbsd-7-nhusb-base-20170116:1.36
	bouyer-socketcan:1.45.0.2
	bouyer-socketcan-base:1.45
	pgoyette-localcount-20170107:1.45
	netbsd-7-1-RC1:1.36
	pgoyette-localcount-20161104:1.45
	netbsd-7-0-2-RELEASE:1.36
	localcount-20160914:1.45
	netbsd-7-nhusb:1.36.0.8
	netbsd-7-nhusb-base:1.36
	pgoyette-localcount-20160806:1.41
	pgoyette-localcount-20160726:1.41
	pgoyette-localcount:1.41.0.2
	pgoyette-localcount-base:1.41
	netbsd-7-0-1-RELEASE:1.36
	netbsd-7-0:1.36.0.6
	netbsd-7-0-RELEASE:1.36
	netbsd-7-0-RC3:1.36
	netbsd-7-0-RC2:1.36
	netbsd-7-0-RC1:1.36
	netbsd-5-2-3-RELEASE:1.10.2.3
	netbsd-5-1-5-RELEASE:1.10.2.3
	netbsd-6-0-6-RELEASE:1.31.4.1
	netbsd-6-1-5-RELEASE:1.31.4.2
	netbsd-7:1.36.0.4
	netbsd-7-base:1.36
	yamt-pagecache-base9:1.36
	yamt-pagecache-tag8:1.31.2.2
	netbsd-6-1-4-RELEASE:1.31.4.2
	netbsd-6-0-5-RELEASE:1.31.4.1
	tls-earlyentropy:1.36.0.2
	tls-earlyentropy-base:1.36
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.36
	riastradh-drm2-base3:1.36
	netbsd-6-1-3-RELEASE:1.31.4.2
	netbsd-6-0-4-RELEASE:1.31.4.1
	netbsd-5-2-2-RELEASE:1.10.2.3
	netbsd-5-1-4-RELEASE:1.10.2.3
	netbsd-6-1-2-RELEASE:1.31.4.2
	netbsd-6-0-3-RELEASE:1.31.4.1
	netbsd-5-2-1-RELEASE:1.10.2.3
	netbsd-5-1-3-RELEASE:1.10.2.3
	netbsd-6-1-1-RELEASE:1.31.4.2
	riastradh-drm2-base2:1.35
	riastradh-drm2-base1:1.35
	riastradh-drm2:1.35.0.4
	riastradh-drm2-base:1.35
	netbsd-6-1:1.31.4.2.0.2
	netbsd-6-0-2-RELEASE:1.31.4.1
	netbsd-6-1-RELEASE:1.31.4.2
	netbsd-6-1-RC4:1.31.4.2
	netbsd-6-1-RC3:1.31.4.2
	agc-symver:1.35.0.2
	agc-symver-base:1.35
	netbsd-6-1-RC2:1.31.4.2
	netbsd-6-1-RC1:1.31.4.2
	yamt-pagecache-base8:1.33
	netbsd-5-2:1.10.2.3.0.6
	netbsd-6-0-1-RELEASE:1.31.4.1
	yamt-pagecache-base7:1.33
	netbsd-5-2-RELEASE:1.10.2.3
	netbsd-5-2-RC1:1.10.2.3
	matt-nb6-plus-nbase:1.31.4.1
	yamt-pagecache-base6:1.33
	netbsd-6-0:1.31.4.1.0.4
	netbsd-6-0-RELEASE:1.31.4.1
	netbsd-6-0-RC2:1.31.4.1
	tls-maxphys:1.33.0.2
	tls-maxphys-base:1.36
	matt-nb6-plus:1.31.4.1.0.2
	matt-nb6-plus-base:1.31.4.1
	netbsd-6-0-RC1:1.31.4.1
	yamt-pagecache-base5:1.33
	yamt-pagecache-base4:1.32
	netbsd-6:1.31.0.4
	netbsd-6-base:1.31
	netbsd-5-1-2-RELEASE:1.10.2.3
	netbsd-5-1-1-RELEASE:1.10.2.3
	yamt-pagecache-base3:1.31
	yamt-pagecache-base2:1.31
	yamt-pagecache:1.31.0.2
	yamt-pagecache-base:1.31
	cherry-xenmp:1.28.0.2
	cherry-xenmp-base:1.28
	bouyer-quota2-nbase:1.28
	bouyer-quota2:1.26.0.2
	bouyer-quota2-base:1.27
	matt-mips64-premerge-20101231:1.26
	matt-nb5-mips64-premerge-20101231:1.10.2.1.4.1
	matt-nb5-pq3:1.10.2.3.0.4
	matt-nb5-pq3-base:1.10.2.3
	pre-xorg-192:1.24
	netbsd-5-1:1.10.2.3.0.2
	netbsd-5-1-RELEASE:1.10.2.3
	netbsd-5-1-RC4:1.10.2.3
	matt-nb5-mips64-k15:1.10.2.1.4.1
	netbsd-5-1-RC3:1.10.2.3
	netbsd-5-1-RC2:1.10.2.3
	netbsd-5-1-RC1:1.10.2.3
	netbsd-5-0-2-RELEASE:1.10.2.1
	matt-nb5-mips64-premerge-20091211:1.10.2.1
	matt-premerge-20091211:1.19
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.10.2.1
	matt-nb4-mips64-k7-u2a-k9b:1.10.2.1
	matt-nb5-mips64-u1-k1-k5:1.10.2.1
	matt-nb5-mips64:1.10.2.1.0.4
	netbsd-5-0-1-RELEASE:1.10.2.1
	jym-xensuspend-nbase:1.13
	netbsd-5-0:1.10.2.1.0.2
	netbsd-5-0-RELEASE:1.10.2.1
	netbsd-5-0-RC4:1.10.2.1
	netbsd-5-0-RC3:1.10.2.1
	netbsd-5-0-RC2:1.10
	jym-xensuspend:1.12.0.2
	jym-xensuspend-base:1.13
	netbsd-5-0-RC1:1.10
	haad-dm-base:1.11
	haad-dm-base2:1.11
	haad-nbase2:1.11
	netbsd-5:1.10.0.2
	netbsd-5-base:1.10
	matt-mips64-base2:1.10
	haad-dm:1.8.0.4
	haad-dm-base1:1.8
	wrstuden-revivesa-base-3:1.7
	wrstuden-revivesa:1.6.0.2
	wrstuden-revivesa-base-2:1.5;
locks; strict;
comment	@# @;


1.51
date	2022.07.15.04.18.55;	author mrg;	state Exp;
branches;
next	1.50;
commitid	o4A4jy8xMVZZEWLD;

1.50
date	2021.12.06.17.51.59;	author abs;	state Exp;
branches;
next	1.49;
commitid	JTvS1SeAqYxSfCjD;

1.49
date	2021.03.07.10.42.27;	author rin;	state Exp;
branches;
next	1.48;
commitid	xsMwFxJZXIL2HmKC;

1.48
date	2020.10.09.17.01.29;	author macallan;	state Exp;
branches;
next	1.47;
commitid	UI9rLCOXLzc1AfrC;

1.47
date	2018.12.31.11.14.05;	author mrg;	state Exp;
branches;
next	1.46;
commitid	TUVjjF1MdjrmtW5B;

1.46
date	2018.11.10.01.38.02;	author macallan;	state Exp;
branches;
next	1.45;
commitid	I3G6EIJV04dcWkZA;

1.45
date	2016.08.16.19.09.48;	author mrg;	state Exp;
branches
	1.45.12.1
	1.45.14.1;
next	1.44;
commitid	vO5j9orVscs2Zyiz;

1.44
date	2016.08.14.03.43.05;	author mrg;	state Exp;
branches;
next	1.43;
commitid	J271e7p9sa4wUdiz;

1.43
date	2016.08.12.01.15.51;	author mrg;	state Exp;
branches;
next	1.42;
commitid	5GiziC5fk8bIaXhz;

1.42
date	2016.08.11.08.32.43;	author mrg;	state Exp;
branches;
next	1.41;
commitid	8krHm1L1UVyjzRhz;

1.41
date	2016.02.28.15.15.42;	author joerg;	state Exp;
branches;
next	1.40;
commitid	7ATsXSNBVoOH9HWy;

1.40
date	2015.11.04.17.06.23;	author phx;	state Exp;
branches;
next	1.39;
commitid	Oy2zOX1EfcWIuNHy;

1.39
date	2015.10.13.19.43.44;	author rjs;	state Exp;
branches;
next	1.38;
commitid	fgVrBaQDRC5I4ZEy;

1.38
date	2015.09.30.22.58.02;	author rjs;	state Exp;
branches;
next	1.37;
commitid	UwdeIovyZUddzkDy;

1.37
date	2015.07.23.08.03.25;	author mrg;	state Exp;
branches;
next	1.36;
commitid	nfGa2DVpEPUUPnuy;

1.36
date	2013.11.27.02.04.48;	author macallan;	state Exp;
branches;
next	1.35;
commitid	fC5Tav1Pi8i9dRex;

1.35
date	2013.02.28.13.28.36;	author macallan;	state Exp;
branches;
next	1.34;

1.34
date	2013.02.14.16.16.25;	author macallan;	state Exp;
branches;
next	1.33;

1.33
date	2012.05.14.08.42.04;	author abs;	state Exp;
branches
	1.33.2.1;
next	1.32;

1.32
date	2012.04.04.01.23.27;	author bsh;	state Exp;
branches;
next	1.31;

1.31
date	2011.08.30.04.22.56;	author macallan;	state Exp;
branches
	1.31.2.1
	1.31.4.1;
next	1.30;

1.30
date	2011.07.21.10.20.25;	author tsutsui;	state Exp;
branches;
next	1.29;

1.29
date	2011.06.29.14.49.14;	author tsutsui;	state Exp;
branches;
next	1.28;

1.28
date	2011.02.21.04.42.17;	author mrg;	state Exp;
branches;
next	1.27;

1.27
date	2011.02.09.13.37.48;	author tsutsui;	state Exp;
branches;
next	1.26;

1.26
date	2010.11.29.09.34.41;	author skrll;	state Exp;
branches
	1.26.2.1;
next	1.25;

1.25
date	2010.11.23.08.22.35;	author mrg;	state Exp;
branches;
next	1.24;

1.24
date	2010.11.18.08.20.17;	author mrg;	state Exp;
branches;
next	1.23;

1.23
date	2010.08.01.06.24.31;	author kiyohara;	state Exp;
branches;
next	1.22;

1.22
date	2010.07.12.07.54.12;	author kiyohara;	state Exp;
branches;
next	1.21;

1.21
date	2010.06.19.18.17.56;	author tsutsui;	state Exp;
branches;
next	1.20;

1.20
date	2010.06.18.09.15.23;	author tsutsui;	state Exp;
branches;
next	1.19;

1.19
date	2009.12.13.05.04.36;	author nonaka;	state Exp;
branches;
next	1.18;

1.18
date	2009.08.27.04.34.13;	author mrg;	state Exp;
branches;
next	1.17;

1.17
date	2009.07.07.07.58.46;	author mrg;	state Exp;
branches;
next	1.16;

1.16
date	2009.07.02.04.27.47;	author macallan;	state Exp;
branches;
next	1.15;

1.15
date	2009.06.12.01.59.07;	author mrg;	state Exp;
branches;
next	1.14;

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

1.13
date	2009.02.14.13.32.13;	author abs;	state Exp;
branches;
next	1.12;

1.12
date	2009.01.24.17.24.52;	author bouyer;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	2008.11.06.22.10.47;	author macallan;	state Exp;
branches;
next	1.10;

1.10
date	2008.10.25.03.47.00;	author macallan;	state Exp;
branches
	1.10.2.1;
next	1.9;

1.9
date	2008.10.24.19.49.30;	author macallan;	state Exp;
branches;
next	1.8;

1.8
date	2008.09.25.13.58.41;	author rtr;	state Exp;
branches
	1.8.4.1;
next	1.7;

1.7
date	2008.09.18.10.57.03;	author rtr;	state Exp;
branches;
next	1.6;

1.6
date	2008.09.12.07.47.39;	author mrg;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	2008.08.31.09.58.47;	author rtr;	state Exp;
branches;
next	1.4;

1.4
date	2008.08.30.01.06.35;	author mrg;	state Exp;
branches;
next	1.3;

1.3
date	2008.08.15.15.55.06;	author rtr;	state Exp;
branches;
next	1.2;

1.2
date	2008.08.09.05.20.52;	author mrg;	state Exp;
branches;
next	1.1;

1.1
date	2008.08.09.01.16.39;	author rtr;	state Exp;
branches;
next	;

1.45.12.1
date	2018.11.26.01.52.09;	author pgoyette;	state Exp;
branches;
next	1.45.12.2;
commitid	Zj4q5SspGdKXto1B;

1.45.12.2
date	2019.01.18.08.49.08;	author pgoyette;	state Exp;
branches;
next	;
commitid	Lmlzg3OVT2cd6f8B;

1.45.14.1
date	2019.06.10.22.02.49;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.33.2.1
date	2013.02.25.00.27.41;	author tls;	state Exp;
branches;
next	1.33.2.2;

1.33.2.2
date	2013.06.23.06.28.48;	author tls;	state Exp;
branches;
next	1.33.2.3;
commitid	OnlO1cBgtQRcIHUw;

1.33.2.3
date	2014.08.20.00.00.15;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.31.2.1
date	2012.04.17.00.04.51;	author yamt;	state Exp;
branches;
next	1.31.2.2;

1.31.2.2
date	2012.05.23.10.07.29;	author yamt;	state Exp;
branches;
next	1.31.2.3;

1.31.2.3
date	2014.05.22.14.09.47;	author yamt;	state Exp;
branches;
next	;
commitid	FFQX08bYGKywAxBx;

1.31.4.1
date	2012.06.11.20.53.39;	author riz;	state Exp;
branches;
next	1.31.4.2;

1.31.4.2
date	2013.02.13.20.52.05;	author riz;	state Exp;
branches;
next	;

1.26.2.1
date	2011.02.17.11.59.20;	author bouyer;	state Exp;
branches;
next	1.26.2.2;

1.26.2.2
date	2011.03.05.15.09.13;	author bouyer;	state Exp;
branches;
next	;

1.12.2.1
date	2009.05.13.18.53.29;	author jym;	state Exp;
branches;
next	;

1.10.2.1
date	2009.02.25.20.15.08;	author snj;	state Exp;
branches
	1.10.2.1.4.1;
next	1.10.2.2;

1.10.2.2
date	2009.09.17.04.24.41;	author snj;	state Exp;
branches;
next	1.10.2.3;

1.10.2.3
date	2009.09.18.02.03.35;	author snj;	state Exp;
branches;
next	;

1.10.2.1.4.1
date	2010.04.21.05.24.46;	author matt;	state Exp;
branches;
next	;

1.8.4.1
date	2008.09.25.13.58.41;	author haad;	state dead;
branches;
next	1.8.4.2;

1.8.4.2
date	2008.10.19.22.41.21;	author haad;	state Exp;
branches;
next	;

1.6.2.1
date	2008.09.12.07.47.39;	author wrstuden;	state dead;
branches;
next	1.6.2.2;

1.6.2.2
date	2008.09.18.05.18.47;	author wrstuden;	state Exp;
branches;
next	1.6.2.3;

1.6.2.3
date	2008.09.24.16.35.06;	author wrstuden;	state Exp;
branches;
next	;


desc
@@


1.51
log
@various updates to build with xorg-server 21.1.3.

- the s3, tga, and trident drivers use old functionality and are disabled
- dixmods/fb is removed, main fb has all these now (we retain our revert
  of an upstream change here.)
- adjust source lists as necessary
- remove vbe module, now part of int10
- use -lxcvt
- misc clean up
- ramdac loses IBM, BT and TI support (this is one of the problems for
  the disabled drivers, but also some structures in RamDac.h are gone
  entirely, not copied anywhere.)
- old apm code is gone, all bsd uses pm_noop. now

this probably require a clean build in at least xorg-server and the
drivers, and perhaps the DESTDIR as well.  will update src/UPDATING with
details when they are fully known.
@
text
@#	$NetBSD: Makefile,v 1.50 2021/12/06 17:51:59 abs Exp $

.include "../../../Makefile.serverlib"
.include "../../../Makefile.servermod"

LIB=	xorgos

.PATH:	${X11SRCDIR.xorg-server}/hw/xfree86/os-support
.PATH:	${X11SRCDIR.xorg-server}/hw/xfree86/os-support/bsd
.PATH:	${X11SRCDIR.xorg-server}/hw/xfree86/os-support/shared
SRCS.bsd=	\
		bsd_VTsw.c bsd_bell.c bsd_init.c bsd_pci.c \
		kmod_noop.c pm_noop.c \
		posix_tty.c sigio.c vidmem.c

.PATH:	${X11SRCDIR.xorg-server}/hw/xfree86/os-support/linux
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
SRCS.bsd+=	i386_video.c lnx_agp.c
.for _FN in ${SRCS.bsd}
.if ${MACHINE_ARCH} == "i386"
CPPFLAGS.${_FN}+=	-DPCCONS_SUPPORT -DHAS_APERTURE_DRV
CPPFLAGS.${_FN}+=	-DUSE_I386_IOPL
.else
CPPFLAGS.${_FN}+=	-DUSE_AMD64_IOPL
.endif
CPPFLAGS.${_FN}+=	-DPCVT_SUPPORT -DWSCONS_SUPPORT \
			-DUSESTDRES -DHAVE_SYSV_IPC \
			-DHAS_MTRR_BUILTIN
.endfor
.endif

.if ${MACHINE_CPU} == "powerpc" || ${MACHINE} == "hppa"
SRCS.bsd+=	ppc_video.c
.  if ${MACHINE} != "evbppc"
SRCS.bsd+=	lnx_agp.c
.  else
SRCS.bsd+=	agp_noop.c
.  endif
.for _FN in ${SRCS.bsd}
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DPCVT_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
.endfor
.endif

.if ${MACHINE_ARCH} == "alpha"
SRCS.bsd+=	alpha_video.c agp_noop.c
.for _FN in ${SRCS.bsd}
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC -DUSE_ALPHA_PIO
.endfor
.endif

.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64"
SRCS.bsd+=	ppc_video.c agp_noop.c
SRCS.bus+=	netbsdSbus.c
.for _FN in ${SRCS.bsd}
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DPCVT_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
.endfor
.endif

.if ${MACHINE} == "ews4800mips" || \
    ${MACHINE} == "hpcmips" || \
    ${MACHINE} == "newsmips" || \
    ${MACHINE} == "sgimips" || \
    ${MACHINE} == "evbmips"
SRCS.bsd+=	ppc_video.c agp_noop.c
.for _FN in ${SRCS.bsd}
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DPCVT_SUPPORT  -DUSESTDRES -DHAVE_SYSV_IPC
.endfor
.endif

.if ${MACHINE} == "cats" || \
    ${MACHINE} == "evbarm" || \
    ${MACHINE} == "hpcarm" || \
    ${MACHINE} == "iyonix" || \
    ${MACHINE} == "shark" || \
    ${MACHINE} == "netwinder" || \
    ${MACHINE} == "zaurus"
SRCS.bsd+=      ppc_video.c agp_noop.c
.for _FN in ${SRCS.bsd}
CPPFLAGS.${_FN}=        -DWSCONS_SUPPORT -DPCVT_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
.endfor
.endif

.if ${MACHINE} == "shark"
CPPFLAGS.ppc_video.c += -DPCI_MAGIC_IO_RANGE=0xf0000000
.endif

.if ${MACHINE} == "dreamcast" || \
    ${MACHINE} == "hpcsh"
SRCS.bsd+=	ppc_video.c agp_noop.c
.for _FN in ${SRCS.bsd}
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
.endfor
.endif

.if ${MACHINE} == "amiga" || \
    ${MACHINE} == "hp300" || \
    ${MACHINE} == "luna68k" || \
    ${MACHINE} == "mac68k"
SRCS.bsd+=	ppc_video.c agp_noop.c
.for _FN in ${SRCS.bsd}
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
.endfor
.endif

.if ${MACHINE} == "pmax" || \
    ${MACHINE} == "vax"
SRCS.bsd+=	ppc_video.c agp_noop.c
.for _FN in ${SRCS.bsd}
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
.endfor
.endif

# some platforms will probably need ioperm_noop.c

.PATH:	${X11SRCDIR.xorg-server}/hw/xfree86/os-support/bus
SRCS.bus+=	Pci.c

.if ${MACHINE} == "macppc" || ${MACHINE} == "cats" || \
    ${MACHINE} == "sgimips" || ${MACHINE} == "shark" || \
    ${MACHINE} == "netwinder" || ${MACHINE_ARCH} == "sparc" || \
    ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "alpha" || \
    ${MACHINE} == "prep" || ${MACHINE} == "bebox" || \
    ${MACHINE} == "ofppc" || ${MACHINE} == "ibmnws"
#SRCS.bus+=	netbsdPci.c
.endif

.if ${MACHINE} == "sparc" || ${MACHINE} == "sparc64" || \
    ${MACHINE_ARCH} == "powerpc" || ${MACHINE} == "netwinder"
#CPPFLAGS.netbsdPci.c+= -DPCI_VIA_TTYE0
.endif

.if     ${MACHINE} == "macppc" || ${MACHINE} == "cats" || \
	${MACHINE} == "sgimips" || ${MACHINE_ARCH} == "sparc64" || \
	${MACHINE_ARCH} == "sparc" || ${MACHINE} == "netwinder" || \
	${MACHINE} == "shark" || ${MACHINE} == "ofppc" || \
	${MACHINE_ARCH} == "alpha" || ${MACHINE} == "prep" || \
	${MACHINE} == "bebox" || ${MACHINE} == "ibmnws"
#SRCS.misc+=     CBUSmemcpy.c CIODelay.c CSlowBcopy.c
.endif

# All platforms get this.
SRCS.bus+=	nobus.c

.PATH:		${X11SRCDIR.xorg-server}/hw/xfree86/os-support/misc
SRCS.misc+=     SlowBcopy.c

SRCS=	${SRCS.bsd} ${SRCS.bus} ${SRCS.misc}

CPPFLAGS+=	-I${X11SRCDIR.xorg-server}/hw/xfree86/common \
		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support \
		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/bsd \
		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/bus \
		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/misc \
		-I${X11SRCDIR.xorg-server}/include \
		-I${X11SRCDIR.xorg-server}/miext/damage \
		-I${X11SRCDIR.xorg-server}/render \
		-I${X11SRCDIR.xorg-server}/present \
		-I${DESTDIR}${X11INCDIR}/X11 \
		-I${DESTDIR}${X11INCDIR}/X11/extensions \
		-I${DESTDIR}${X11INCDIR}/pixman-1 \
		-I${X11SRCDIR.xorg-server}/mi \
		-I${X11SRCDIR.xorg-server}/Xext \
		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/shared \
		-I${X11SRCDIR.xorg-server}/../include
.if ${X11DRI} != "no"
CPPFLAGS+=	${X11FLAGS.DRI}
.endif

CWARNFLAGS.clang+=	-Wno-error=empty-body

.include <bsd.x11.mk>
.include <bsd.lib.mk>
@


1.50
log
@Add Xwsfb X server to pmax build

With the previous tweak to TURBOchannel framebuffers in sys/dev/tc this
should allows pmax to once again run X11.

TODO: Investigate pullup to -9
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.49 2021/03/07 10:42:27 rin Exp $
d13 1
a13 1
		kmod_noop.c \
a16 6
.if ${MACHINE_ARCH} == "x86_64"
SRCS.bsd+=	pm_noop.c
.endif
.if ${MACHINE_ARCH} == "i386"
SRCS.bsd+=	bsd_apm.c
.endif
d33 1
a33 1
SRCS.bsd+=	ppc_video.c pm_noop.c
d45 1
a45 1
SRCS.bsd+=	alpha_video.c pm_noop.c agp_noop.c
d52 1
a52 1
SRCS.bsd+=	ppc_video.c pm_noop.c agp_noop.c
d64 1
a64 1
SRCS.bsd+=	ppc_video.c pm_noop.c agp_noop.c
d77 1
a77 1
SRCS.bsd+=      ppc_video.c pm_noop.c agp_noop.c
d89 1
a89 1
SRCS.bsd+=	ppc_video.c pm_noop.c agp_noop.c
d99 1
a99 1
SRCS.bsd+=	ppc_video.c pm_noop.c agp_noop.c
d107 1
a107 1
SRCS.bsd+=	ppc_video.c pm_noop.c agp_noop.c
@


1.49
log
@Build Xorg server for evbppc with minimum wsfb(4) support for Explora.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.48 2020/10/09 17:01:29 macallan Exp $
d111 2
a112 1
.if ${MACHINE} == "vax"
@


1.48
log
@build ppc_video.c etc. on hppa
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.47 2018/12/31 11:14:05 mrg Exp $
d38 7
a44 3
.if ${MACHINE} == "macppc" || ${MACHINE} == "prep" || ${MACHINE} == "bebox" || ${MACHINE} == "ofppc" || \
	${MACHINE} == "ibmnws" || ${MACHINE} == "hppa"
SRCS.bsd+=	ppc_video.c pm_noop.c lnx_agp.c
@


1.47
log
@build updates for xorg-server 1.20.3:
- moved/removed/new files
- don't define HAVE_XORG_CONFIG_H or HAVE_DIX_CONFIG_H if using
  ${X11FLAGS.DIX} -- already included.

put glxvnd into glx itself for now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.46 2018/11/10 01:38:02 macallan Exp $
d38 2
a39 1
.if ${MACHINE} == "macppc" || ${MACHINE} == "prep" || ${MACHINE} == "bebox" || ${MACHINE} == "ofppc" || ${MACHINE} == "ibmnws"
@


1.46
log
@build Xorg with nv and wsfb drivers on iyonix
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.45 2016/08/16 19:09:48 mrg Exp $
d46 1
a46 1
SRCS.bsd+=	alpha_video.c bsd_ev56.c pm_noop.c agp_noop.c
d163 2
a164 1
		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/shared
@


1.45
log
@remove obsolete code, and adjust for new amd64 iopl usage.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.44 2016/08/14 03:43:05 mrg Exp $
d74 1
@


1.45.14.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.47 2018/12/31 11:14:05 mrg Exp $
d46 1
a46 1
SRCS.bsd+=	alpha_video.c pm_noop.c agp_noop.c
a73 1
    ${MACHINE} == "iyonix" || \
d162 1
a162 2
		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/shared \
		-I${X11SRCDIR.xorg-server}/../include
@


1.45.12.1
log
@Sync with HEAD, resolve a couple of conflicts
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.46 2018/11/10 01:38:02 macallan Exp $
a73 1
    ${MACHINE} == "iyonix" || \
@


1.45.12.2
log
@Synch with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.45.12.1 2018/11/26 01:52:09 pgoyette Exp $
d46 1
a46 1
SRCS.bsd+=	alpha_video.c pm_noop.c agp_noop.c
d163 1
a163 2
		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/shared \
		-I${X11SRCDIR.xorg-server}/../include
@


1.44
log
@various updates:
- port pkgsrc libxshmfence patches
- Xextbuiltin/module is no longer a thing, make it normal
- always need xorg-config.h/xorg-server.h for server components now
- add present, damage, render, Xi, dri, pixman,  extension where needed
- fix various CPPFLAGS issues
- deal with moved sdksyms.sh
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.43 2016/08/12 01:15:51 mrg Exp $
d28 3
d32 1
a32 1
CPPFLAGS.${_FN}+=	-DUSE_I386_IOPL -DPCVT_SUPPORT -DWSCONS_SUPPORT \
a130 8
# XXX .S not built from automake either
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
#SRCS.misc+=	CBUSmemcpy.c CIODelay.c CSlowBcopy.c
#CPPFLAGS.BUSmemcpy.S=	-DUSE_GAS
#CPPFLAGS.IODelay.S=	-DUSE_GAS
#CPPFLAGS.SlowBcopy.S=	-DUSE_GAS
.endif

a145 5
# XXX namespace collision so avoid it, only has to be done for non-i386.
#BUILDSYMLINKS=	BUSmemcpy.c CBUSmemcpy.c \
#		IODelay.c CIODelay.c \
#		SlowBcopy.c CSlowBcopy.c

@


1.43
log
@round do of reach over updates for xorg-server 1.18.  again, untested,
but this should be much closer to complete for the necessary changes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.42 2016/08/11 08:32:43 mrg Exp $
d164 3
@


1.42
log
@first merge of xorg-server 1.18.4 reach over.  not tested, and
missing at these new subdirs, some which may not be needed:

	dri2
	glamor
	hw/xfree86/drivers/modesetting
	hw/xfree86/parser
	present
	pseudoramiX
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.41 2016/02/28 15:15:42 joerg Exp $
d145 3
@


1.41
log
@Don't claim too much about empty loops, the SYSCALL macro is kind of
obnoxious like that...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.40 2015/11/04 17:06:23 phx Exp $
d153 1
a153 1
SRCS=	${SRCS.bsd} ${SRCS.bus} ${SRCS.misc} xorgos.c
@


1.40
log
@Build a wsfb Xorg server for amiga.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.39 2015/10/13 19:43:44 rjs Exp $
d171 2
@


1.39
log
@Add Xorg server and S3 driver to ibmnws build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.38 2015/09/30 22:58:02 rjs Exp $
d92 2
a93 1
.if ${MACHINE} == "hp300" || \
@


1.38
log
@Build Xorg server and wsfb driver for mac68k.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.37 2015/07/23 08:03:25 mrg Exp $
d35 1
a35 1
.if ${MACHINE} == "macppc" || ${MACHINE} == "prep" || ${MACHINE} == "bebox" || ${MACHINE} == "ofppc"
d117 2
a118 1
    ${MACHINE} == "prep" || ${MACHINE} == "bebox" || ${MACHINE} == "ofppc"
d140 1
a140 1
	${MACHINE} == "bebox"
@


1.37
log
@remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 2013/11/27 02:04:48 macallan Exp $
d93 2
a94 1
    ${MACHINE} == "luna68k"
@


1.36
log
@Add (hopefully temporary) kludge to define PCI_MAGIC_IO_RANGE on shark and
make accelerated X work again.
This used to be defined in machine/param.h but lately the param.h from
arch/arm is installed in machine/ instead of the one from arch/shark, so the
Xserver didn't see PCI_MAGIC_IO_RANGE and couldn't figure out how to map its
IO space.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 2013/02/28 13:28:36 macallan Exp $
d163 1
a163 2
		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/shared \
		-I${X11SRCDIR.xc}/extras/drm/shared
@


1.35
log
@set PCVT_SUPPORT on MIPS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.34 2013/02/14 16:16:25 macallan Exp $
d80 4
@


1.34
log
@set -DPCVT_SUPPORT on most hardware
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2012/05/14 08:42:04 abs Exp $
d64 1
a64 1
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
@


1.33
log
@Enable wsfb X server on vax. Likely to be keyboard and mouse issues, but
with three additional lines of an ioctl() case in the kernel 'startx' will
display the traditional three xterms
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 2012/04/04 01:23:27 bsh Exp $
d38 1
a38 1
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
a39 3
.if ${MACHINE} == "ofppc"
CPPFLAGS.${_FN}+=	-DPCVT_SUPPORT
.endif
d53 1
a53 1
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
d76 1
a76 4
CPPFLAGS.${_FN}=        -DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
.if ${MACHINE} == "cats"
CPPFLAGS.${_FN}+=	-DPCVT_SUPPORT
.endif
@


1.33.2.1
log
@resync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2012/05/14 08:42:04 abs Exp $
d38 1
a38 1
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DPCVT_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
d40 3
d56 1
a56 1
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DPCVT_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
d79 4
a82 1
CPPFLAGS.${_FN}=        -DWSCONS_SUPPORT -DPCVT_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
@


1.33.2.2
log
@resync from head
@
text
@d1 1
a1 1
#	$NetBSD$
d64 1
a64 1
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DPCVT_SUPPORT  -DUSESTDRES -DHAVE_SYSV_IPC
@


1.33.2.3
log
@Rebase to HEAD as of a few days ago.
@
text
@a79 4
.if ${MACHINE} == "shark"
CPPFLAGS.ppc_video.c += -DPCI_MAGIC_IO_RANGE=0xf0000000
.endif

@


1.32
log
@enable X11 build for evbarm.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2011/08/30 04:22:56 macallan Exp $
d102 7
@


1.31
log
@build Xorg and some drivers appropriate for Loongson-based hw on evbmips
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 2011/07/21 10:20:25 tsutsui Exp $
d72 1
@


1.31.4.1
log
@Pull up following revision(s) (requested by abs in ticket #300):
	external/mit/xorg/server/xorg-server/hw/xfree86/xorgos/Makefile: revision 1.33
	x11/Xserver/Xserver/Makefile: revision 1.19
	x11/Xserver/Makefile.common: revision 1.36
	external/mit/xorg/server/xorg-server/Makefile.common: revision 1.25
	distrib/sets/lists/xserver/md.vax: revision 1.8
	external/mit/xorg/server/drivers/Makefile: revision 1.62
	xsrc/external/mit/xorg-server/dist/hw/xfree86/common/compiler.h: revision 1.9
Add vax to the list of non inb() users
Enable wsfb X server on vax. Likely to be keyboard and mouse issues, but
with three additional lines of an ioctl() case in the kernel 'startx' will
display the traditional three xterms
Missed defining XSERVER_XVAX
@
text
@d1 1
a1 1
#	$NetBSD$
a100 7
.if ${MACHINE} == "vax"
SRCS.bsd+=	ppc_video.c pm_noop.c agp_noop.c
.for _FN in ${SRCS.bsd}
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
.endfor
.endif

@


1.31.4.2
log
@Pull up following revision(s) (requested by skrll in ticket #818):
	xsrc/external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c: revision 1.14
	xsrc/external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c: revision 1.15
	external/mit/xorg/server/xorg-server/hw/xfree86/xorgos/Makefile: revision 1.32
	external/mit/xorg/server/drivers/xf86-input-keyboard/Makefile: revision 1.15
	sys/dev/wsfb/genfb.c: revision 1.49
	distrib/sets/lists/xserver/md.evbarm: revision 1.1
	sys/dev/wscons/wsdisplay_vconsvar.h: revision 1.22
	external/mit/xorg/server/xorg-server/Makefile.common: revision 1.24
	xsrc/external/mit/xf86-video-wsfb/dist/src/wsfb.h: revision 1.4
	external/mit/xorg/server/drivers/Makefile: revision 1.61
	sys/dev/wsfb/genfb.c: revision 1.50
enable X11 build for evbarm.
aprint_verbose -> aprint_debug
WSDISPLAY_TYPE_VC4 framebuffer is BGR
for WSDISPLAYIO_SMODE, if the bus ioctl handler returns EPASSTHROUGH, dont treat it as an error
default to swkbd mode on evbarm as well, now X without config should work
properly on BeagleBoard, RPi and the like
fix a typo in a comment
use WSDISPLAYIO_GET_FBINFO if available
@
text
@a71 1
    ${MACHINE} == "evbarm" || \
@


1.31.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2011/08/30 04:22:56 macallan Exp $
a71 1
    ${MACHINE} == "evbarm" || \
@


1.31.2.2
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31.2.1 2012/04/17 00:04:51 yamt Exp $
a101 7
.if ${MACHINE} == "vax"
SRCS.bsd+=	ppc_video.c pm_noop.c agp_noop.c
.for _FN in ${SRCS.bsd}
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
.endfor
.endif

@


1.31.2.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.31.2.2 2012/05/23 10:07:29 yamt Exp $
d38 1
a38 1
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DPCVT_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
d40 3
d56 1
a56 1
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DPCVT_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
d67 1
a67 1
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DPCVT_SUPPORT  -DUSESTDRES -DHAVE_SYSV_IPC
d79 4
a82 1
CPPFLAGS.${_FN}=        -DWSCONS_SUPPORT -DPCVT_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
a85 4
.if ${MACHINE} == "shark"
CPPFLAGS.ppc_video.c += -DPCI_MAGIC_IO_RANGE=0xf0000000
.endif

@


1.30
log
@Build luna68k's X.Org server using wsfb driver.
 (XXX: needs more hacks to make it actually functional)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2011/06/29 14:49:14 tsutsui Exp $
d63 2
a64 1
    ${MACHINE} == "sgimips"
@


1.29
log
@Add definitions for newsmips Xorg server.  Build test only.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2011/02/21 04:42:17 mrg Exp $
d92 2
a93 1
.if ${MACHINE} == "hp300"
@


1.28
log
@define PCVT_SUPPORT ofppc anywhere other ppc platforms do.
part of the way to getting xorg working on ofppc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2011/02/09 13:37:48 tsutsui Exp $
d62 1
@


1.27
log
@Add defintions for ews4800mips and hp300 Xorg servers.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2010/11/29 09:34:41 skrll Exp $
d40 3
@


1.26
log
@Define PCVT_SUPPORT for cats.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2010/11/23 08:22:35 mrg Exp $
d57 2
a58 1
.if ${MACHINE} == "hpcmips" || \
d88 7
@


1.26.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2011/02/09 13:37:48 tsutsui Exp $
d57 1
a57 2
.if ${MACHINE} == "ews4800mips" || \
    ${MACHINE} == "hpcmips" || \
a86 7
.if ${MACHINE} == "hp300"
SRCS.bsd+=	ppc_video.c pm_noop.c agp_noop.c
.for _FN in ${SRCS.bsd}
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
.endfor
.endif

@


1.26.2.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD$
a39 3
.if ${MACHINE} == "ofppc"
CPPFLAGS.${_FN}+=	-DPCVT_SUPPORT
.endif
@


1.25
log
@many build updates and fixes for xorg-server 1.9.2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2010/11/18 08:20:17 mrg Exp $
d73 3
@


1.24
log
@enable xfree86 server build for ofppc, and a bunch of drivers.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2010/08/01 06:24:31 kiyohara Exp $
d24 1
a24 1
SRCS.bsd+=	i386_video.c stdResource.c lnx_agp.c
d36 1
a36 1
SRCS.bsd+=	ppc_video.c stdResource.c pm_noop.c lnx_agp.c
d43 1
a43 1
SRCS.bsd+=	alpha_video.c bsd_ev56.c stdResource.c pm_noop.c agp_noop.c
d50 1
a50 1
SRCS.bsd+=	ppc_video.c stdResource.c pm_noop.c agp_noop.c
d59 1
a59 1
SRCS.bsd+=	ppc_video.c stdResource.c pm_noop.c agp_noop.c
d70 1
a70 1
SRCS.bsd+=      ppc_video.c stdResource.c pm_noop.c agp_noop.c
a73 1
CPPFLAGS.arm_video.c=	-Wno-error
d78 1
a78 1
SRCS.bsd+=	ppc_video.c stdResource.c pm_noop.c agp_noop.c
a101 3
.PATH:	${X11SRCDIR.xorg-server}/hw/xfree86/os-support/misc
SRCS.misc=	Delay.c

d119 2
a120 1
SRCS.misc+=     BUSmemcpy.c SlowBcopy.c
@


1.23
log
@Support xserver for bebox.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2010/07/12 07:54:12 kiyohara Exp $
d35 1
a35 1
.if ${MACHINE} == "macppc" || ${MACHINE} == "prep" || ${MACHINE} == "bebox"
d94 1
a94 1
    ${MACHINE} == "prep" || ${MACHINE} == "bebox"
@


1.22
log
@Support xserver for prep.
  It tested only s3(864).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2010/06/19 18:17:56 tsutsui Exp $
d35 1
a35 1
.if ${MACHINE} == "macppc" || ${MACHINE} == "prep"
d94 1
a94 1
    ${MACHINE} == "prep"
d118 2
a119 1
	${MACHINE_ARCH} == "alpha" || ${MACHINE} == "prep"
@


1.21
log
@Prepare entries for Xorg wsfb based server for dreamcast.
Not enabled by default yet and old xfree entries are still preserved.

XXX1: No maple keyboard keymap yet:
      http://mail-index.NetBSD.org/tech-x11/2010/06/19/msg000785.html

XXX2: probably we should have some common list files for xcomp and xserver.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2010/06/18 09:15:23 tsutsui Exp $
d35 1
a35 1
.if ${MACHINE} == "macppc"
d93 2
a94 1
    ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "alpha"
d118 1
a118 1
	${MACHINE_ARCH} == "alpha"
@


1.20
log
@Prepare to build Xorg servers for hpcarm/hpcmips/hpcsh.

XXX: ${MACHINE} dependent definitions in these Makefiles look a bit messy
XXX: like old xfree's NetBSD.cf...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2009/12/13 05:04:36 nonaka Exp $
d77 2
a78 1
.if ${MACHINE} == "hpcsh"
@


1.19
log
@The support of X for zaurus is added.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2009/08/27 04:34:13 mrg Exp $
d57 2
a58 1
.if ${MACHINE} == "sgimips"
d66 1
d77 7
@


1.18
log
@bsdResource.c is now called stdResource.c.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2009/07/07 07:58:46 mrg Exp $
d66 2
a67 1
    ${MACHINE} == "netwinder"
@


1.17
log
@need to link stdResource.c now
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2009/07/02 04:27:47 macallan Exp $
d36 1
a36 1
SRCS.bsd+=	ppc_video.c bsdResource.c pm_noop.c lnx_agp.c
d43 1
a43 1
SRCS.bsd+=	alpha_video.c bsd_ev56.c bsdResource.c pm_noop.c agp_noop.c
d58 1
a58 1
SRCS.bsd+=	ppc_video.c bsdResource.c pm_noop.c agp_noop.c
d67 1
a67 1
SRCS.bsd+=      ppc_video.c bsdResource.c pm_noop.c agp_noop.c
@


1.16
log
@netbsdPci.c is no more
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2009/06/12 01:59:07 mrg Exp $
d50 1
a50 1
SRCS.bsd+=	ppc_video.c bsdResource.c pm_noop.c agp_noop.c
@


1.15
log
@build updates for xorg-server 1.6.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2009/06/11 05:43:17 mrg Exp $
d83 1
a83 1
SRCS.bus+=	netbsdPci.c
d86 3
a88 3
.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" || \
    ${MACHINE_ARCH} == "powerpc"
CPPFLAGS.netbsdPci.c+= -DPCI_VIA_TTYE0
@


1.14
log
@upgrade the build framework for xorg-server 1.6.

this doesn't quite work yet.  Xvfb and Xnest attempt to link but
have missing symbols.  Xorg doesn't build all its components yet.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2009/02/14 13:32:13 abs Exp $
d12 1
a12 1
		bsd_VTsw.c bsd_bell.c bsd_init.c \
a78 4
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
SRCS.bus+=	ix86Pci.c
.endif

d92 1
a92 1
SRCS.misc=	xf86_Util.c Delay.c
d110 1
d129 1
@


1.13
log
@Use MACHINE_ARCH rather than MACHINE where relevant. At least one file had a nice mixture of amd64 and x86_64 tests...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2009/01/24 17:24:52 bouyer Exp $
d12 3
a14 3
		bsd_VTsw.c bsd_bell.c bsd_init.c bsd_mouse.c \
		kmod_noop.c libc_wrapper.c \
		posix_tty.c sigio.c stdPci.c vidmem.c
d100 4
a103 5
#SRCS.misc+=	BUSmemcpy.S IODelay.S SlowBcopy.S
SRCS.misc+=	CBUSmemcpy.c CIODelay.c CSlowBcopy.c
CPPFLAGS.BUSmemcpy.S=	-DUSE_GAS
CPPFLAGS.IODelay.S=	-DUSE_GAS
CPPFLAGS.SlowBcopy.S=	-DUSE_GAS
d111 1
a111 1
SRCS.misc+=     CBUSmemcpy.c CIODelay.c CSlowBcopy.c
d116 3
a118 3
BUILDSYMLINKS=	BUSmemcpy.c CBUSmemcpy.c \
		IODelay.c CIODelay.c \
		SlowBcopy.c CSlowBcopy.c
@


1.12
log
@Add support for X11FLAVOUR=xorg to NetBSD/alpha. Tested on PWS500
(ev56, handled as non-BWX by Xorg) and XP1000 (ev6, BWX). Also
tested by Rafael Ruiz on a AlphaStation 255 (thanks !).
non-PCI adapters are not supported; someone should make these work
as a wsfb device.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2008/11/06 22:10:47 macallan Exp $
d17 1
a17 1
.if ${MACHINE} == "amd64"
d20 1
a20 1
.if ${MACHINE} == "i386"
d23 1
a23 1
.if ${MACHINE} == "i386" || ${MACHINE_ARCH} == "x86_64"
d26 1
a26 1
.if ${MACHINE} == "i386"
d42 1
a42 1
.if ${MACHINE} == "alpha"
d49 1
a49 1
.if ${MACHINE} == "sparc" || ${MACHINE} == "sparc64"
d79 1
a79 1
.if ${MACHINE} == "i386" || ${MACHINE} == "amd64"
d85 2
a86 2
    ${MACHINE} == "netwinder" || ${MACHINE} == "sparc" || \
    ${MACHINE} == "sparc64" || ${MACHINE} == "alpha"
d90 1
a90 1
.if ${MACHINE} == "sparc" || ${MACHINE} == "sparc64" || \
d108 2
a109 2
	${MACHINE} == "sgimips" || ${MACHINE} == "sparc64" || \
	${MACHINE} == "sparc" || ${MACHINE} == "netwinder" || \
d111 1
a111 1
	${MACHINE} == "alpha"
@


1.12.2.1
log
@Sync with HEAD.

Second commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2009/02/14 13:32:13 abs Exp $
d17 1
a17 1
.if ${MACHINE_ARCH} == "x86_64"
d20 1
a20 1
.if ${MACHINE_ARCH} == "i386"
d23 1
a23 1
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
d26 1
a26 1
.if ${MACHINE_ARCH} == "i386"
d42 1
a42 1
.if ${MACHINE_ARCH} == "alpha"
d49 1
a49 1
.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64"
d79 1
a79 1
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
d85 2
a86 2
    ${MACHINE} == "netwinder" || ${MACHINE_ARCH} == "sparc" || \
    ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "alpha"
d90 1
a90 1
.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" || \
d108 2
a109 2
	${MACHINE} == "sgimips" || ${MACHINE_ARCH} == "sparc64" || \
	${MACHINE_ARCH} == "sparc" || ${MACHINE} == "netwinder" || \
d111 1
a111 1
	${MACHINE_ARCH} == "alpha"
@


1.11
log
@use ppc_video.c on sgimip as well since mips_video.c is just another subset
of ppc_video.c
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2008/10/25 03:47:00 macallan Exp $
d42 7
d86 1
a86 1
    ${MACHINE} == "sparc64"
d110 2
a111 1
	${MACHINE} == "shark" || ${MACHINE} == "ofppc"
@


1.10
log
@use PCI_VIA_TTYE0 hack on sparc64 and powerpc
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2008/10/24 19:49:30 macallan Exp $
d51 1
a51 1
SRCS.bsd+=	mips_video.c bsdResource.c pm_noop.c agp_noop.c
d60 1
a60 1
SRCS.bsd+=      arm_video.c bsdResource.c pm_noop.c agp_noop.c
@


1.10.2.1
log
@Pull up following revision(s) (requested by macallan in ticket #506):
	external/mit/xorg/server/xorg-server/hw/xfree86/xorgos/Makefile: revision 1.11
use ppc_video.c on sgimip as well since mips_video.c is just another
subset of ppc_video.c
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2008/10/25 03:47:00 macallan Exp $
d51 1
a51 1
SRCS.bsd+=	ppc_video.c bsdResource.c pm_noop.c agp_noop.c
d60 1
a60 1
SRCS.bsd+=      ppc_video.c bsdResource.c pm_noop.c agp_noop.c
@


1.10.2.1.4.1
log
@sync to netbsd-5
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10.2.3 2009/09/18 02:03:35 snj Exp $
d12 3
a14 3
		bsd_VTsw.c bsd_bell.c bsd_init.c bsd_pci.c \
		kmod_noop.c \
		posix_tty.c sigio.c vidmem.c
d17 1
a17 1
.if ${MACHINE_ARCH} == "x86_64"
d20 1
a20 1
.if ${MACHINE_ARCH} == "i386"
d23 1
a23 1
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
d26 1
a26 1
.if ${MACHINE_ARCH} == "i386"
d36 1
a36 1
SRCS.bsd+=	ppc_video.c stdResource.c pm_noop.c lnx_agp.c
d42 2
a43 9
.if ${MACHINE_ARCH} == "alpha"
SRCS.bsd+=	alpha_video.c bsd_ev56.c stdResource.c pm_noop.c agp_noop.c
.for _FN in ${SRCS.bsd}
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC -DUSE_ALPHA_PIO
.endfor
.endif

.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64"
SRCS.bsd+=	ppc_video.c stdResource.c pm_noop.c agp_noop.c
d51 1
a51 1
SRCS.bsd+=	ppc_video.c stdResource.c pm_noop.c agp_noop.c
d60 1
a60 1
SRCS.bsd+=      ppc_video.c stdResource.c pm_noop.c agp_noop.c
d72 4
d78 3
a80 3
    ${MACHINE} == "netwinder" || ${MACHINE_ARCH} == "sparc" || \
    ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "alpha"
#SRCS.bus+=	netbsdPci.c
d83 1
a83 1
.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" || \
d85 1
a85 1
#CPPFLAGS.netbsdPci.c+= -DPCI_VIA_TTYE0
d89 1
a89 1
SRCS.misc=	Delay.c
d93 5
a97 4
#SRCS.misc+=	CBUSmemcpy.c CIODelay.c CSlowBcopy.c
#CPPFLAGS.BUSmemcpy.S=	-DUSE_GAS
#CPPFLAGS.IODelay.S=	-DUSE_GAS
#CPPFLAGS.SlowBcopy.S=	-DUSE_GAS
d101 4
a104 5
	${MACHINE} == "sgimips" || ${MACHINE_ARCH} == "sparc64" || \
	${MACHINE_ARCH} == "sparc" || ${MACHINE} == "netwinder" || \
	${MACHINE} == "shark" || ${MACHINE} == "ofppc" || \
	${MACHINE_ARCH} == "alpha"
#SRCS.misc+=     CBUSmemcpy.c CIODelay.c CSlowBcopy.c
a106 1
SRCS.misc+=     BUSmemcpy.c SlowBcopy.c
d109 3
a111 3
#BUILDSYMLINKS=	BUSmemcpy.c CBUSmemcpy.c \
#		IODelay.c CIODelay.c \
#		SlowBcopy.c CSlowBcopy.c
a124 1
		-I${X11SRCDIR.xorg-server}/Xext \
@


1.10.2.2
log
@Apply patch (requested by mrg in ticket #958):
Sync X.Org reachover build framework and setlists with the new X.Org.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2009/06/12 01:59:07 mrg Exp $
d12 3
a14 3
		bsd_VTsw.c bsd_bell.c bsd_init.c bsd_pci.c \
		kmod_noop.c \
		posix_tty.c sigio.c vidmem.c
d17 1
a17 1
.if ${MACHINE_ARCH} == "x86_64"
d20 1
a20 1
.if ${MACHINE_ARCH} == "i386"
d23 1
a23 1
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
d26 1
a26 1
.if ${MACHINE_ARCH} == "i386"
d36 1
a36 1
SRCS.bsd+=	ppc_video.c stdResource.c pm_noop.c lnx_agp.c
d42 1
a42 8
.if ${MACHINE_ARCH} == "alpha"
SRCS.bsd+=	alpha_video.c bsd_ev56.c stdResource.c pm_noop.c agp_noop.c
.for _FN in ${SRCS.bsd}
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC -DUSE_ALPHA_PIO
.endfor
.endif

.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64"
d51 1
a51 1
SRCS.bsd+=	ppc_video.c stdResource.c pm_noop.c agp_noop.c
d60 1
a60 1
SRCS.bsd+=      ppc_video.c stdResource.c pm_noop.c agp_noop.c
d72 4
d78 3
a80 3
    ${MACHINE} == "netwinder" || ${MACHINE_ARCH} == "sparc" || \
    ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "alpha"
#SRCS.bus+=	netbsdPci.c
d83 1
a83 1
.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" || \
d85 1
a85 1
#CPPFLAGS.netbsdPci.c+= -DPCI_VIA_TTYE0
d89 1
a89 1
SRCS.misc=	Delay.c
d93 5
a97 4
#SRCS.misc+=	CBUSmemcpy.c CIODelay.c CSlowBcopy.c
#CPPFLAGS.BUSmemcpy.S=	-DUSE_GAS
#CPPFLAGS.IODelay.S=	-DUSE_GAS
#CPPFLAGS.SlowBcopy.S=	-DUSE_GAS
d101 4
a104 5
	${MACHINE} == "sgimips" || ${MACHINE_ARCH} == "sparc64" || \
	${MACHINE_ARCH} == "sparc" || ${MACHINE} == "netwinder" || \
	${MACHINE} == "shark" || ${MACHINE} == "ofppc" || \
	${MACHINE_ARCH} == "alpha"
#SRCS.misc+=     CBUSmemcpy.c CIODelay.c CSlowBcopy.c
a106 1
SRCS.misc+=     BUSmemcpy.c SlowBcopy.c
d109 3
a111 3
#BUILDSYMLINKS=	BUSmemcpy.c CBUSmemcpy.c \
#		IODelay.c CIODelay.c \
#		SlowBcopy.c CSlowBcopy.c
a124 1
		-I${X11SRCDIR.xorg-server}/Xext \
@


1.10.2.3
log
@Apply patch (requested by mrg in ticket #958):
Missed a few bits in sparc64 xserver setlist and reachover Makefiles.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10.2.2 2009/09/17 04:24:41 snj Exp $
d50 1
a50 1
SRCS.bsd+=	ppc_video.c stdResource.c pm_noop.c agp_noop.c
@


1.9
log
@sparc(64) and SBus support
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2008/09/25 13:58:41 rtr Exp $
d83 5
@


1.8
log
@build pcitweak, scanpci for netwinder (used to do this on xfree)
build arm_video and related for netwinder
build netbsdPci for netwinder
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2008/09/18 10:57:03 rtr Exp $
d42 8
d51 1
a51 1
SRCS.bsd+=	mips_video.c bsdResource.c pm_noop.c lnx_agp.c
d70 1
a70 1
SRCS.bus=	Pci.c
d78 2
a79 1
    ${MACHINE} == "netwinder"
@


1.8.4.1
log
@file Makefile was added on branch haad-dm on 2008-10-19 22:41:21 +0000
@
text
@d1 118
@


1.8.4.2
log
@Sync with HEAD.
@
text
@a0 118
#	$NetBSD: Makefile,v 1.8 2008/09/25 13:58:41 rtr Exp $

.include "../../../Makefile.serverlib"
.include "../../../Makefile.servermod"

LIB=	xorgos

.PATH:	${X11SRCDIR.xorg-server}/hw/xfree86/os-support
.PATH:	${X11SRCDIR.xorg-server}/hw/xfree86/os-support/bsd
.PATH:	${X11SRCDIR.xorg-server}/hw/xfree86/os-support/shared
SRCS.bsd=	\
		bsd_VTsw.c bsd_bell.c bsd_init.c bsd_mouse.c \
		kmod_noop.c libc_wrapper.c \
		posix_tty.c sigio.c stdPci.c vidmem.c

.PATH:	${X11SRCDIR.xorg-server}/hw/xfree86/os-support/linux
.if ${MACHINE} == "amd64"
SRCS.bsd+=	pm_noop.c
.endif
.if ${MACHINE} == "i386"
SRCS.bsd+=	bsd_apm.c
.endif
.if ${MACHINE} == "i386" || ${MACHINE_ARCH} == "x86_64"
SRCS.bsd+=	i386_video.c stdResource.c lnx_agp.c
.for _FN in ${SRCS.bsd}
.if ${MACHINE} == "i386"
CPPFLAGS.${_FN}+=	-DPCCONS_SUPPORT -DHAS_APERTURE_DRV
.endif
CPPFLAGS.${_FN}+=	-DUSE_I386_IOPL -DPCVT_SUPPORT -DWSCONS_SUPPORT \
			-DUSESTDRES -DHAVE_SYSV_IPC \
			-DHAS_MTRR_BUILTIN
.endfor
.endif

.if ${MACHINE} == "macppc"
SRCS.bsd+=	ppc_video.c bsdResource.c pm_noop.c lnx_agp.c
.for _FN in ${SRCS.bsd}
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
.endfor
.endif

.if ${MACHINE} == "sgimips"
SRCS.bsd+=	mips_video.c bsdResource.c pm_noop.c lnx_agp.c
.for _FN in ${SRCS.bsd}
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
.endfor
.endif

.if ${MACHINE} == "cats" || \
    ${MACHINE} == "shark" || \
    ${MACHINE} == "netwinder"
SRCS.bsd+=      arm_video.c bsdResource.c pm_noop.c agp_noop.c
.for _FN in ${SRCS.bsd}
CPPFLAGS.${_FN}=        -DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
.endfor
CPPFLAGS.arm_video.c=	-Wno-error
.endif

# some platforms will probably need ioperm_noop.c

.PATH:	${X11SRCDIR.xorg-server}/hw/xfree86/os-support/bus
SRCS.bus=	Pci.c

.if ${MACHINE} == "i386" || ${MACHINE} == "amd64"
SRCS.bus+=	ix86Pci.c
.endif

.if ${MACHINE} == "macppc" || ${MACHINE} == "cats" || \
    ${MACHINE} == "sgimips" || ${MACHINE} == "shark" || \
    ${MACHINE} == "netwinder"
SRCS.bus+=	netbsdPci.c
.endif

.PATH:	${X11SRCDIR.xorg-server}/hw/xfree86/os-support/misc
SRCS.misc=	xf86_Util.c Delay.c

# XXX .S not built from automake either
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
#SRCS.misc+=	BUSmemcpy.S IODelay.S SlowBcopy.S
SRCS.misc+=	CBUSmemcpy.c CIODelay.c CSlowBcopy.c
CPPFLAGS.BUSmemcpy.S=	-DUSE_GAS
CPPFLAGS.IODelay.S=	-DUSE_GAS
CPPFLAGS.SlowBcopy.S=	-DUSE_GAS
.endif

.if     ${MACHINE} == "macppc" || ${MACHINE} == "cats" || \
	${MACHINE} == "sgimips" || ${MACHINE} == "sparc64" || \
	${MACHINE} == "sparc" || ${MACHINE} == "netwinder" || \
	${MACHINE} == "shark" || ${MACHINE} == "ofppc"
SRCS.misc+=     CBUSmemcpy.c CIODelay.c CSlowBcopy.c
.endif


# XXX namespace collision so avoid it, only has to be done for non-i386.
BUILDSYMLINKS=	BUSmemcpy.c CBUSmemcpy.c \
		IODelay.c CIODelay.c \
		SlowBcopy.c CSlowBcopy.c

SRCS=	${SRCS.bsd} ${SRCS.bus} ${SRCS.misc} xorgos.c

CPPFLAGS+=	-I${X11SRCDIR.xorg-server}/hw/xfree86/common \
		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support \
		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/bsd \
		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/bus \
		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/misc \
		-I${X11SRCDIR.xorg-server}/include \
		-I${DESTDIR}${X11INCDIR}/X11 \
		-I${DESTDIR}${X11INCDIR}/X11/extensions \
		-I${DESTDIR}${X11INCDIR}/pixman-1 \
		-I${X11SRCDIR.xorg-server}/mi \
		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/shared \
		-I${X11SRCDIR.xc}/extras/drm/shared
.if ${X11DRI} != "no"
CPPFLAGS+=	${X11FLAGS.DRI}
.endif

.include <bsd.x11.mk>
.include <bsd.lib.mk>
@


1.7
log
@switch back to using USE_I386_IOPL for amd64 since it gets us x86_64_iopl
if __x86_64__ is defined. this should fix libxorgos.a build on amd64.

USE_AMD64_IOPL is for openbsd if the configure.ac is to be believed.

XXX we may also want to enable PCCONS_SUPPORT and HAS_APERTURE_DRV for
    amd64 as well?
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2008/09/12 07:47:39 mrg Exp $
d49 3
a51 1
.if ${MACHINE} == "cats" || ${MACHINE} == "shark"
d69 2
a70 1
    ${MACHINE} == "sgimips" || ${MACHINE} == "shark"
@


1.6
log
@define USE_AMD64_IOPL on amd64, not USE_I386_IOPL
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2008/08/31 09:58:47 rtr Exp $
d27 1
a27 4
CPPFLAGS.${_FN}+=	-DPCCONS_SUPPORT -DHAS_APERTURE_DRV \
			-DUSE_I386_IOPL
.else
CPPFLAGS.${_FN}+=	-DUSE_AMD64_IOPL
d29 1
a29 1
CPPFLAGS.${_FN}+=	-DPCVT_SUPPORT -DWSCONS_SUPPORT \
@


1.6.2.1
log
@file Makefile was added on branch wrstuden-revivesa on 2008-09-18 05:18:47 +0000
@
text
@d1 118
@


1.6.2.2
log
@Sync with wrstuden-revivesa-base-2.
@
text
@a0 116
#	$NetBSD: Makefile,v 1.5 2008/08/31 09:58:47 rtr Exp $

.include "../../../Makefile.serverlib"
.include "../../../Makefile.servermod"

LIB=	xorgos

.PATH:	${X11SRCDIR.xorg-server}/hw/xfree86/os-support
.PATH:	${X11SRCDIR.xorg-server}/hw/xfree86/os-support/bsd
.PATH:	${X11SRCDIR.xorg-server}/hw/xfree86/os-support/shared
SRCS.bsd=	\
		bsd_VTsw.c bsd_bell.c bsd_init.c bsd_mouse.c \
		kmod_noop.c libc_wrapper.c \
		posix_tty.c sigio.c stdPci.c vidmem.c

.PATH:	${X11SRCDIR.xorg-server}/hw/xfree86/os-support/linux
.if ${MACHINE} == "amd64"
SRCS.bsd+=	pm_noop.c
.endif
.if ${MACHINE} == "i386"
SRCS.bsd+=	bsd_apm.c
.endif
.if ${MACHINE} == "i386" || ${MACHINE_ARCH} == "x86_64"
SRCS.bsd+=	i386_video.c stdResource.c lnx_agp.c
.for _FN in ${SRCS.bsd}
.if ${MACHINE} == "i386"
CPPFLAGS.${_FN}+=	-DPCCONS_SUPPORT -DHAS_APERTURE_DRV \
			-DUSE_I386_IOPL
.endif
CPPFLAGS.${_FN}+=	-DPCVT_SUPPORT -DWSCONS_SUPPORT \
			-DUSESTDRES -DHAVE_SYSV_IPC \
			-DHAS_MTRR_BUILTIN -DUSE_I386_IOPL 
.endfor
.endif

.if ${MACHINE} == "macppc"
SRCS.bsd+=	ppc_video.c bsdResource.c pm_noop.c lnx_agp.c
.for _FN in ${SRCS.bsd}
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
.endfor
.endif

.if ${MACHINE} == "sgimips"
SRCS.bsd+=	mips_video.c bsdResource.c pm_noop.c lnx_agp.c
.for _FN in ${SRCS.bsd}
CPPFLAGS.${_FN}=	-DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
.endfor
.endif

.if ${MACHINE} == "cats" || ${MACHINE} == "shark"
SRCS.bsd+=      arm_video.c bsdResource.c pm_noop.c agp_noop.c
.for _FN in ${SRCS.bsd}
CPPFLAGS.${_FN}=        -DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC
.endfor
CPPFLAGS.arm_video.c=	-Wno-error
.endif

# some platforms will probably need ioperm_noop.c

.PATH:	${X11SRCDIR.xorg-server}/hw/xfree86/os-support/bus
SRCS.bus=	Pci.c

.if ${MACHINE} == "i386" || ${MACHINE} == "amd64"
SRCS.bus+=	ix86Pci.c
.endif

.if ${MACHINE} == "macppc" || ${MACHINE} == "cats" || \
    ${MACHINE} == "sgimips" || ${MACHINE} == "shark"
SRCS.bus+=	netbsdPci.c
.endif

.PATH:	${X11SRCDIR.xorg-server}/hw/xfree86/os-support/misc
SRCS.misc=	xf86_Util.c Delay.c

# XXX .S not built from automake either
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
#SRCS.misc+=	BUSmemcpy.S IODelay.S SlowBcopy.S
SRCS.misc+=	CBUSmemcpy.c CIODelay.c CSlowBcopy.c
CPPFLAGS.BUSmemcpy.S=	-DUSE_GAS
CPPFLAGS.IODelay.S=	-DUSE_GAS
CPPFLAGS.SlowBcopy.S=	-DUSE_GAS
.endif

.if     ${MACHINE} == "macppc" || ${MACHINE} == "cats" || \
	${MACHINE} == "sgimips" || ${MACHINE} == "sparc64" || \
	${MACHINE} == "sparc" || ${MACHINE} == "netwinder" || \
	${MACHINE} == "shark" || ${MACHINE} == "ofppc"
SRCS.misc+=     CBUSmemcpy.c CIODelay.c CSlowBcopy.c
.endif


# XXX namespace collision so avoid it, only has to be done for non-i386.
BUILDSYMLINKS=	BUSmemcpy.c CBUSmemcpy.c \
		IODelay.c CIODelay.c \
		SlowBcopy.c CSlowBcopy.c

SRCS=	${SRCS.bsd} ${SRCS.bus} ${SRCS.misc} xorgos.c

CPPFLAGS+=	-I${X11SRCDIR.xorg-server}/hw/xfree86/common \
		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support \
		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/bsd \
		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/bus \
		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/misc \
		-I${X11SRCDIR.xorg-server}/include \
		-I${DESTDIR}${X11INCDIR}/X11 \
		-I${DESTDIR}${X11INCDIR}/X11/extensions \
		-I${DESTDIR}${X11INCDIR}/pixman-1 \
		-I${X11SRCDIR.xorg-server}/mi \
		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/shared \
		-I${X11SRCDIR.xc}/extras/drm/shared
.if ${X11DRI} != "no"
CPPFLAGS+=	${X11FLAGS.DRI}
.endif

.include <bsd.x11.mk>
.include <bsd.lib.mk>
@


1.6.2.3
log
@Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6.2.2 2008/09/18 05:18:47 wrstuden Exp $
d27 2
a28 1
CPPFLAGS.${_FN}+=	-DPCCONS_SUPPORT -DHAS_APERTURE_DRV
d30 1
a30 1
CPPFLAGS.${_FN}+=	-DUSE_I386_IOPL -DPCVT_SUPPORT -DWSCONS_SUPPORT \
d32 1
a32 1
			-DHAS_MTRR_BUILTIN
@


1.5
log
@- don't build lnx_agp.c on !AGP machines
- build the .c versions of BUSmemcpy.c IODelay.c SlowBcopy.c for any
  of macppc cats sgimips sparc64 sparc netwinder shark ofppc
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2008/08/30 01:06:35 mrg Exp $
d29 2
d34 1
a34 1
			-DHAS_MTRR_BUILTIN -DUSE_I386_IOPL 
@


1.4
log
@don't build stdResource.c on macppc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2008/08/15 15:55:06 rtr Exp $
d13 1
a13 1
		kmod_noop.c libc_wrapper.c lnx_agp.c \
d55 1
d67 2
a68 1
.if ${MACHINE} == "macppc" || ${MACHINE} == "cats" || ${MACHINE} == "sgimips"
d84 5
a88 3
.if 	${MACHINE} == "amd64" || ${MACHINE} == "macppc" || \
	${MACHINE} == "cats" || ${MACHINE} == "sgimips"
SRCS.misc+=	CBUSmemcpy.c CIODelay.c CSlowBcopy.c
d91 1
@


1.3
log
@stop using XSERVERINCDIR since it was referencing src/x11 reachover
this is not correct for xorg reachover
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2008/08/09 05:20:52 mrg Exp $
d14 1
a14 1
		posix_tty.c sigio.c stdPci.c stdResource.c vidmem.c
@


1.2
log
@make Xorg link on macppc, and fix one cats error
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2008/08/09 01:16:39 rtr Exp $
d105 1
a105 2
		-I${X11SRCDIR.xc}/extras/drm/shared \
		-I${XSERVERINCDIR}
@


1.1
log
@add some more libs we need for linking and running Xorg server
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2008/08/04 01:03:34 mrg Exp $
d37 1
a37 1
SRCS.bsd+=	ppc_video.c bsdResource.c pm_noop.c lnx_agp.c ioperm_noop.c
d50 2
a51 2
.if ${MACHINE} == "cats"
SRCS.bsd+=      arm_video.c bsdResource.c pm_noop.c agp_noop.c ioperm_noop.c
d57 2
@
