head	1.2;
access;
symbols
	netbsd-7-2-RELEASE:1.1.1.7
	netbsd-7-1-2-RELEASE:1.1.1.7
	netbsd-7-1-1-RELEASE:1.1.1.7
	netbsd-7-1:1.1.1.7.0.28
	netbsd-7-1-RELEASE:1.1.1.7
	netbsd-7-1-RC2:1.1.1.7
	netbsd-7-1-RC1:1.1.1.7
	netbsd-7-0-2-RELEASE:1.1.1.7
	netbsd-7-0-1-RELEASE:1.1.1.7
	netbsd-7-0:1.1.1.7.0.26
	netbsd-7-0-RELEASE:1.1.1.7
	netbsd-7-0-RC3:1.1.1.7
	netbsd-7-0-RC2:1.1.1.7
	netbsd-7-0-RC1:1.1.1.7
	netbsd-5-2-3-RELEASE:1.1.1.7
	netbsd-5-1-5-RELEASE:1.1.1.7
	netbsd-6-0-6-RELEASE:1.1.1.7
	netbsd-6-1-5-RELEASE:1.1.1.7
	netbsd-7:1.1.1.7.0.24
	netbsd-7-base:1.1.1.7
	netbsd-6-1-4-RELEASE:1.1.1.7
	netbsd-6-0-5-RELEASE:1.1.1.7
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.7
	riastradh-drm2:1.1.1.7.0.22
	riastradh-drm2-base:1.1.1.7
	netbsd-6-1-3-RELEASE:1.1.1.7
	netbsd-6-0-4-RELEASE:1.1.1.7
	netbsd-5-2-2-RELEASE:1.1.1.7
	netbsd-5-1-4-RELEASE:1.1.1.7
	netbsd-6-1-2-RELEASE:1.1.1.7
	netbsd-6-0-3-RELEASE:1.1.1.7
	netbsd-5-2-1-RELEASE:1.1.1.7
	netbsd-5-1-3-RELEASE:1.1.1.7
	netbsd-6-1-1-RELEASE:1.1.1.7
	netbsd-6-1:1.1.1.7.0.20
	netbsd-6-0-2-RELEASE:1.1.1.7
	netbsd-6-1-RELEASE:1.1.1.7
	netbsd-6-1-RC4:1.1.1.7
	netbsd-6-1-RC3:1.1.1.7
	netbsd-6-1-RC2:1.1.1.7
	netbsd-6-1-RC1:1.1.1.7
	netbsd-5-2:1.1.1.7.0.18
	netbsd-6-0-1-RELEASE:1.1.1.7
	netbsd-5-2-RELEASE:1.1.1.7
	netbsd-5-2-RC1:1.1.1.7
	netbsd-6-0:1.1.1.7.0.16
	netbsd-6-0-RELEASE:1.1.1.7
	netbsd-6-0-RC2:1.1.1.7
	netbsd-6-0-RC1:1.1.1.7
	netbsd-6:1.1.1.7.0.14
	netbsd-6-base:1.1.1.7
	netbsd-5-1-2-RELEASE:1.1.1.7
	netbsd-5-1-1-RELEASE:1.1.1.7
	netbsd-5-1:1.1.1.7.0.12
	netbsd-5-1-RELEASE:1.1.1.7
	netbsd-5-1-RC4:1.1.1.7
	netbsd-5-1-RC3:1.1.1.7
	netbsd-5-1-RC2:1.1.1.7
	netbsd-5-1-RC1:1.1.1.7
	netbsd-5-0-2-RELEASE:1.1.1.7
	netbsd-5-0-1-RELEASE:1.1.1.7
	netbsd-5-0:1.1.1.7.0.10
	netbsd-5-0-RELEASE:1.1.1.7
	netbsd-5-0-RC4:1.1.1.7
	netbsd-5-0-RC3:1.1.1.7
	netbsd-5-0-RC2:1.1.1.7
	netbsd-5-0-RC1:1.1.1.7
	netbsd-5:1.1.1.7.0.8
	netbsd-5-base:1.1.1.7
	netbsd-4-0-1-RELEASE:1.1.1.7
	netbsd-4-0:1.1.1.7.0.6
	netbsd-4-0-RELEASE:1.1.1.7
	netbsd-4-0-RC5:1.1.1.7
	netbsd-4-0-RC4:1.1.1.7
	netbsd-4-0-RC3:1.1.1.7
	netbsd-4-0-RC2:1.1.1.7
	netbsd-4-0-RC1:1.1.1.7
	netbsd-3-1-1-RELEASE:1.1.1.6.6.1
	netbsd-3-0-3-RELEASE:1.1.1.6.6.1
	abandoned-netbsd-4-base:1.1.1.7
	abandoned-netbsd-4:1.1.1.7.0.2
	netbsd-3-1:1.1.1.6.6.1.0.4
	netbsd-3-1-RELEASE:1.1.1.6.6.1
	netbsd-3-0-2-RELEASE:1.1.1.6.6.1
	netbsd-3-1-RC4:1.1.1.6.6.1
	netbsd-3-1-RC3:1.1.1.6.6.1
	netbsd-3-1-RC2:1.1.1.6.6.1
	netbsd-3-1-RC1:1.1.1.6.6.1
	netbsd-4:1.1.1.7.0.4
	netbsd-4-base:1.1.1.7
	netbsd-3-0-1-RELEASE:1.1.1.6.6.1
	netbsd-3-0:1.1.1.6.6.1.0.2
	netbsd-3-0-RELEASE:1.1.1.6.6.1
	netbsd-3-0-RC6:1.1.1.6.6.1
	netbsd-3-0-RC5:1.1.1.6.6.1
	netbsd-3-0-RC4:1.1.1.6.6.1
	netbsd-3-0-RC3:1.1.1.6.6.1
	netbsd-3-0-RC2:1.1.1.6.6.1
	netbsd-3-0-RC1:1.1.1.6.6.1
	netbsd-2-0-3-RELEASE:1.1.1.6
	netbsd-2-1:1.1.1.6.0.8
	netbsd-2-1-RELEASE:1.1.1.6
	netbsd-2-1-RC6:1.1.1.6
	netbsd-2-1-RC5:1.1.1.6
	netbsd-2-1-RC4:1.1.1.6
	netbsd-2-1-RC3:1.1.1.6
	netbsd-2-1-RC2:1.1.1.6
	netbsd-2-1-RC1:1.1.1.6
	netbsd-2-0-2-RELEASE:1.1.1.6
	v4-5-0:1.1.1.7
	v4-5-0_beforeimport:1.1.1.6
	netbsd-3:1.1.1.6.0.6
	netbsd-3-base:1.1.1.6
	netbsd-2-0-1-RELEASE:1.1.1.6
	netbsd-2:1.1.1.6.0.4
	netbsd-2-base:1.1.1.6
	netbsd-2-0-RELEASE:1.1.1.6
	netbsd-2-0-RC5:1.1.1.6
	netbsd-2-0-RC4:1.1.1.6
	netbsd-2-0-RC3:1.1.1.6
	netbsd-2-0-RC2:1.1.1.6
	netbsd-2-0-RC1:1.1.1.6
	netbsd-2-0:1.1.1.6.0.2
	netbsd-2-0-base:1.1.1.6
	v4-4-0:1.1.1.6
	v4-4-0_beforeimport:1.1.1.5
	netbsd-1-6-PATCH002-RELEASE:1.1.1.5
	netbsd-1-6-PATCH002:1.1.1.5
	netbsd-1-6-PATCH002-RC4:1.1.1.5
	v4-3-0-2003-12-19:1.1.1.5
	netbsd-1-6-PATCH002-RC3:1.1.1.5
	netbsd-1-6-PATCH002-RC2:1.1.1.5
	netbsd-1-6-PATCH002-RC1:1.1.1.5
	netbsd-1-6:1.1.1.5.0.2
	netbsd-1-6-base:1.1.1.5
	v4-3-0:1.1.1.5
	v4-3-0_beforeimport:1.1.1.4
	netbsd-1-6-PATCH001:1.1.1.4
	netbsd-1-6-RELEASE:1.1.1.4
	v4-2-1:1.1.1.4
	v4-2-1_beforeimport:1.1.1.4
	netbsd-1-5-PATCH003:1.1.1.4
	v4-2-0:1.1.1.4
	netbsd-1-5-PATCH002:1.1.1.3
	netbsd-1-5-PATCH001:1.1.1.2
	v4-1-0:1.1.1.3
	v4-0-3:1.1.1.2
	v4-0-2:1.1.1.1
	XF86:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2015.07.23.08.13.51;	author mrg;	state dead;
branches;
next	1.1;
commitid	3Fk7MoycOv7VSnuy;

1.1
date	2001.01.01.12.46.30;	author veego;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2001.01.01.12.46.30;	author veego;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.03.18.17.33.06;	author veego;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2001.06.09.15.08.15;	author tron;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2002.01.19.15.12.01;	author tron;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2003.02.28.13.20.20;	author tron;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	2004.03.05.14.29.17;	author tron;	state Exp;
branches
	1.1.1.6.6.1;
next	1.1.1.7;

1.1.1.7
date	2005.03.18.13.12.33;	author tron;	state Exp;
branches;
next	;

1.1.1.6.6.1
date	2005.04.06.20.00.52;	author tron;	state Exp;
branches;
next	;


desc
@@


1.2
log
@remove obsolete XFree86 sources.
@
text
@XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/Imakefile,v 1.3 2000/10/27 21:14:55 dawes Exp $
XCOMM $PI: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/Imakefile,v 1.7 1999/09/14 19:55:15 faith Exp $

#define IHaveModules
#include <Server.tmpl>

#if DoLoadableServer
MSRC = drmmodule.c
MOBJ = drmmodule.o
#endif

#if BuildXF86DRI
#if HasMTRRSupport
MTRR_DEFINES = -DHAS_MTRR_SUPPORT
#endif

SRCS = xf86drm.c xf86drmHash.c xf86drmRandom.c xf86drmSL.c xf86drmI810.c xf86drmMga.c xf86drmR128.c xf86drmSiS.c $(MSRC)
OBJS = xf86drm.o xf86drmHash.o xf86drmRandom.o xf86drmSL.o xf86drmI810.o xf86drmMga.o xf86drmR128.o xf86drmSiS.o $(MOBJ)


INCLUDES = -I$(XF86COMSRC) -I$(XF86OSSRC) -I. -I$(SERVERSRC)/include \
           -I$(XINCLUDESRC) -I$(EXTINCSRC) -I../.. -Ikernel

DEFINES = $(MTRR_DEFINES) $(GLX_DEFINES)

ModuleObjectRule()
LibraryModuleTarget(drm,$(OBJS))
NormalLintTarget($(SRCS))

InstallLibraryModule(drm,$(MODULEDIR),freebsd)

#define IHaveSubdirs
SUBDIRS = kernel

MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
#endif


#if DoLoadableServer
LinkSourceFile(drmmodule.c,$(XF86OSSRC)/linux/drm)
#endif
LinkSourceFile(xf86drmHash.c,$(XF86OSSRC)/linux/drm)
LinkSourceFile(xf86drmI810.c,$(XF86OSSRC)/linux/drm)
LinkSourceFile(xf86drmMga.c,$(XF86OSSRC)/linux/drm)
LinkSourceFile(xf86drmR128.c,$(XF86OSSRC)/linux/drm)
LinkSourceFile(xf86drmRandom.c,$(XF86OSSRC)/linux/drm)
LinkSourceFile(xf86drmSL.c,$(XF86OSSRC)/linux/drm)
LinkSourceFile(xf86drmSiS.c,$(XF86OSSRC)/linux/drm)

InstallDriverSDKLibraryModule(drm,$(DRIVERSDKMODULEDIR),freebsd)
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@Initial import of XFree86 4.x
@
text
@@


1.1.1.2
log
@Import of XFree86 4.0.3
@
text
@d1 1
a1 1
XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/Imakefile,v 1.2 2000/08/16 01:45:30 dawes Exp $
@


1.1.1.3
log
@Import of XFree86 4.1.0.
@
text
@d1 1
a1 1
XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/Imakefile,v 1.5 2001/04/10 18:42:58 dawes Exp $
d17 3
a19 21
 SRCS = xf86drm.c \
	xf86drmHash.c \
	xf86drmRandom.c \
	xf86drmSL.c \
	xf86drmI810.c \
	xf86drmMga.c \
	xf86drmR128.c \
	xf86drmRadeon.c \
	xf86drmSiS.c \
	$(MSRC)

 OBJS = xf86drm.o \
	xf86drmHash.o \
	xf86drmRandom.o \
	xf86drmSL.o \
	xf86drmI810.o \
	xf86drmMga.o \
	xf86drmR128.o \
	xf86drmRadeon.o \
	xf86drmSiS.o \
	$(MOBJ)
a42 1
LinkSourceFile(xf86drm.c,$(XF86OSSRC)/linux/drm)
a47 1
LinkSourceFile(xf86drmRadeon.c,$(XF86OSSRC)/linux/drm)
@


1.1.1.4
log
@Import of XFree86 4.2.0.
@
text
@d1 1
a1 1
XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/Imakefile,v 1.9 2001/12/16 19:45:01 alanh Exp $
a21 1
	xf86drmI830.c \
a32 1
	xf86drmI830.o \
a63 1
LinkSourceFile(xf86drmI830.c,$(XF86OSSRC)/linux/drm)
@


1.1.1.5
log
@Import of XFree86 4.3.0.
@
text
@d1 1
a1 1
XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/Imakefile,v 1.12 2002/10/30 12:52:24 alanh Exp $
d21 6
a26 1
	xf86drmCompat.c \
d33 6
a38 1
	xf86drmCompat.o \
a58 2
DependTarget()

d65 4
d70 1
d72 1
a72 1
LinkSourceFile(xf86drmCompat.c,$(XF86OSSRC)/linux/drm)
@


1.1.1.6
log
@Import of XFree86 4.4.0.
@
text
@d1 1
a1 1
XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/Imakefile,v 1.15 2003/08/16 19:26:37 dawes Exp $
a16 12
#if defined(FreeBSDArchitecture)
COMPATSRC = xf86drmCompat.c
COMPATOBJ = xf86drmCompat.o
OS_SUBDIR = freebsd
#elif defined(NetBSDArchitecture)
OS_SUBDIR = netbsd
#elif defined(OpenBSDArchitecture)
OS_SUBDIR = openbsd
#else
OS_SUBDIR = extensions
#endif

d21 1
a21 1
	$(COMPATSRC) \
d28 1
a28 1
	$(COMPATOBJ) \
d40 1
a40 1
InstallLibraryModule(drm,$(MODULEDIR),$(OS_SUBDIR))
d61 1
a61 1
InstallDriverSDKLibraryModule(drm,$(DRIVERSDKMODULEDIR),$(OS_SUBDIR))
@


1.1.1.6.6.1
log
@Apply patch (requested by jmc in ticket #114):
Update XFree86 to version 4.5.0.
@
text
@d1 2
a2 47
XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/Imakefile,v 1.24 2005/03/01 03:48:53 dawes Exp $
/*
 * Copyright (c) 1994-2005 by The XFree86 Project, Inc.
 * All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject
 * to the following conditions:
 *
 *   1.  Redistributions of source code must retain the above copyright
 *       notice, this list of conditions, and the following disclaimer.
 *
 *   2.  Redistributions in binary form must reproduce the above copyright
 *       notice, this list of conditions and the following disclaimer
 *       in the documentation and/or other materials provided with the
 *       distribution, and in the same place and form as other copyright,
 *       license and disclaimer information.
 *
 *   3.  The end-user documentation included with the redistribution,
 *       if any, must include the following acknowledgment: "This product
 *       includes software developed by The XFree86 Project, Inc
 *       (http://www.xfree86.org/) and its contributors", in the same
 *       place and form as other third-party acknowledgments.  Alternately,
 *       this acknowledgment may appear in the software itself, in the
 *       same form and location as other such third-party acknowledgments.
 *
 *   4.  Except as contained in this notice, the name of The XFree86
 *       Project, Inc shall not be used in advertising or otherwise to
 *       promote the sale, use or other dealings in this Software without
 *       prior written authorization from The XFree86 Project, Inc.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL THE XFREE86 PROJECT, INC OR ITS CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
d18 2
d33 1
d40 1
d44 1
a44 2
           -I$(XINCLUDESRC) -I$(EXTINCSRC) -I../.. -Ikernel \
	   -I$(DRMINCLUDESDIR)
d49 1
a49 1
LibraryModuleTarget(drm,$(OBJS),$(OS_SUBDIR))
d53 6
d71 1
a73 31

/* Copy the DRM kernel source to somewhere that it can be installed from. */

#include "../../shared/drm/Imakefile.inc"

LinkSourceFileListToSubdir(includes,$(SRCS_SHARED),$(DRMSHAREDDIR),$(DRM_COPY_DIR))
LinkSourceFileListToSubdir(includes,$(SRCS_BSD),$(DRMBSDDIR),$(DRM_COPY_DIR))

includes:: HostProgramTargetName(revpath)
	@@MakeFlagsToShellFlags(i,set +e); \
	for i in $(BSD_SUBDIRS); do \
		MakeDirInline($(DRM_COPY_DIR)/$$i); \
		UP="`$(REVPATH) $(DRM_COPY_DIR)/$$i`"; \
		(set -x; \
		 $(RM) $(DRM_COPY_DIR)/$$i/Makefile; \
		 $(LN) $${UP}$(DRMBSDDIR)/$$i/Makefile $(DRM_COPY_DIR)/$$i); \
	done

INSTALL_LIST = $(INSTALL_SHARED) $(INSTALL_BSD)
InstallMultiple($(INSTALL_LIST),$(DRMBSDINSTSRCDIR))

install:: $(INSTALL_BSD_SUBS)
	@@MakeFlagsToShellFlags(i,set +e); \
	for i in $(BSD_SUBDIRS); do \
		MakeDirInline($(DESTDIR)$(DRMBSDINSTSRCDIR)/$$i); \
		(set -x; \
		  $(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) \
			$(DRM_COPY_DIR)/$$i/Makefile \
			$(DESTDIR)$(DRMBSDINSTSRCDIR)/$$i); \
	done

@


1.1.1.7
log
@Import of XFree86 4.5.0.
@
text
@d1 2
a2 47
XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/Imakefile,v 1.24 2005/03/01 03:48:53 dawes Exp $
/*
 * Copyright (c) 1994-2005 by The XFree86 Project, Inc.
 * All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject
 * to the following conditions:
 *
 *   1.  Redistributions of source code must retain the above copyright
 *       notice, this list of conditions, and the following disclaimer.
 *
 *   2.  Redistributions in binary form must reproduce the above copyright
 *       notice, this list of conditions and the following disclaimer
 *       in the documentation and/or other materials provided with the
 *       distribution, and in the same place and form as other copyright,
 *       license and disclaimer information.
 *
 *   3.  The end-user documentation included with the redistribution,
 *       if any, must include the following acknowledgment: "This product
 *       includes software developed by The XFree86 Project, Inc
 *       (http://www.xfree86.org/) and its contributors", in the same
 *       place and form as other third-party acknowledgments.  Alternately,
 *       this acknowledgment may appear in the software itself, in the
 *       same form and location as other such third-party acknowledgments.
 *
 *   4.  Except as contained in this notice, the name of The XFree86
 *       Project, Inc shall not be used in advertising or otherwise to
 *       promote the sale, use or other dealings in this Software without
 *       prior written authorization from The XFree86 Project, Inc.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL THE XFREE86 PROJECT, INC OR ITS CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
d18 2
d33 1
d40 1
d44 1
a44 2
           -I$(XINCLUDESRC) -I$(EXTINCSRC) -I../.. -Ikernel \
	   -I$(DRMINCLUDESDIR)
d49 1
a49 1
LibraryModuleTarget(drm,$(OBJS),$(OS_SUBDIR))
d53 6
d71 1
a73 31

/* Copy the DRM kernel source to somewhere that it can be installed from. */

#include "../../shared/drm/Imakefile.inc"

LinkSourceFileListToSubdir(includes,$(SRCS_SHARED),$(DRMSHAREDDIR),$(DRM_COPY_DIR))
LinkSourceFileListToSubdir(includes,$(SRCS_BSD),$(DRMBSDDIR),$(DRM_COPY_DIR))

includes:: HostProgramTargetName(revpath)
	@@MakeFlagsToShellFlags(i,set +e); \
	for i in $(BSD_SUBDIRS); do \
		MakeDirInline($(DRM_COPY_DIR)/$$i); \
		UP="`$(REVPATH) $(DRM_COPY_DIR)/$$i`"; \
		(set -x; \
		 $(RM) $(DRM_COPY_DIR)/$$i/Makefile; \
		 $(LN) $${UP}$(DRMBSDDIR)/$$i/Makefile $(DRM_COPY_DIR)/$$i); \
	done

INSTALL_LIST = $(INSTALL_SHARED) $(INSTALL_BSD)
InstallMultiple($(INSTALL_LIST),$(DRMBSDINSTSRCDIR))

install:: $(INSTALL_BSD_SUBS)
	@@MakeFlagsToShellFlags(i,set +e); \
	for i in $(BSD_SUBDIRS); do \
		MakeDirInline($(DESTDIR)$(DRMBSDINSTSRCDIR)/$$i); \
		(set -x; \
		  $(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) \
			$(DRM_COPY_DIR)/$$i/Makefile \
			$(DESTDIR)$(DRMBSDINSTSRCDIR)/$$i); \
	done

@


