2012-08-29 06:51:04 -06:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2012/08/29 12:51:04 mpi Exp $
|
2009-01-10 09:29:26 -07:00
|
|
|
.include <bsd.xconf.mk>
|
2009-06-27 04:02:53 -06:00
|
|
|
.include "${.CURDIR}/Makefile.inc"
|
2009-01-10 09:29:26 -07:00
|
|
|
|
2009-01-26 16:14:37 -07:00
|
|
|
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
|
2011-05-02 15:52:34 -06:00
|
|
|
SUBDIR=intel radeon
|
2012-08-29 06:51:04 -06:00
|
|
|
.elif ${MACHINE} == "macppc"
|
|
|
|
SUBDIR=radeon
|
2009-01-26 16:14:37 -07:00
|
|
|
.endif
|
|
|
|
|
2009-01-10 09:29:26 -07:00
|
|
|
LIB= drm
|
|
|
|
|
|
|
|
INCSDIR= ${X11BASE}/include/
|
|
|
|
|
|
|
|
CPP= cpp -notraditional
|
|
|
|
DEBUG?=
|
|
|
|
|
2009-01-26 16:14:37 -07:00
|
|
|
CPPFLAGS+= -I${.CURDIR} \
|
2009-01-10 09:29:26 -07:00
|
|
|
-I${X11BASE}/include \
|
|
|
|
-I/usr/include/dev/pci/drm \
|
|
|
|
-DX_PRIVSEP
|
|
|
|
|
2009-01-26 16:14:37 -07:00
|
|
|
INCS= xf86drm.h \
|
|
|
|
xf86drmMode.h
|
2009-01-10 09:29:26 -07:00
|
|
|
|
|
|
|
SRCS= xf86drm.c \
|
|
|
|
xf86drmHash.c \
|
2009-01-26 16:14:37 -07:00
|
|
|
xf86drmMode.c \
|
2009-01-10 09:29:26 -07:00
|
|
|
xf86drmRandom.c \
|
|
|
|
xf86drmSL.c
|
|
|
|
|
|
|
|
includes: _SUBDIRUSE
|
|
|
|
cd ${.CURDIR}; for i in ${INCS}; do \
|
|
|
|
j="cmp -s $$i ${DESTDIR}${INCSDIR}/$$i || \
|
2010-05-08 08:15:29 -06:00
|
|
|
${INSTALL_DATA} $$i ${DESTDIR}${INCSDIR}/"; \
|
2009-01-10 09:29:26 -07:00
|
|
|
echo "\tinstalling $$i"; \
|
|
|
|
eval "$$j"; \
|
|
|
|
done
|
|
|
|
|
|
|
|
NOPROFILE =
|
|
|
|
|
2009-06-27 04:02:53 -06:00
|
|
|
PKGCONFIG= libdrm.pc
|
|
|
|
|
2009-01-10 09:29:26 -07:00
|
|
|
obj: _xenocara_obj
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
.include <bsd.xorg.mk>
|
|
|
|
|
|
|
|
.include <bsd.subdir.mk>
|