Expand PMF_FN_* macros.
[netbsd-mini2440.git] / x11 / Xserver / hw / xfree86 / bin / scanpci / Makefile
blobb580b16374483c5ab85be5f4faf6e4b53e3ee137
1 # $NetBSD: Makefile,v 1.4 2005/03/19 21:41:58 christos Exp $
3 .include <bsd.own.mk>
5 PROG= scanpci
6 .PATH: ${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/etc
8 SRCS= scanpci.c
10 XSERVERINCDIR!= cd ${NETBSDSRCDIR}/x11/Xserver/include && ${PRINTOBJDIR}
11 XF86OSOBJDIR!= cd ${NETBSDSRCDIR}/x11/Xserver/hw/xfree86/xf86_os && ${PRINTOBJDIR}
12 SCANPCIOBJDIR!= cd ${NETBSDSRCDIR}/x11/Xserver/hw/xfree86/scanpci && ${PRINTOBJDIR}
13 DUMMYOBJDIR!= cd ${NETBSDSRCDIR}/x11/Xserver/hw/xfree86/dummy && ${PRINTOBJDIR}
15 CPPFLAGS+= -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/etc \
16 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/common \
17 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support \
18 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support/bus \
19 -I${X11SRCDIR.xc}/programs/Xserver/include \
20 -I${DESTDIR}${X11INCDIR}/X11 \
21 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/scanpci \
22 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/dummylib \
23 -I${XSERVERINCDIR}
25 LDADD= -L${XF86OSOBJDIR} -lxf86_os \
26 -L${SCANPCIOBJDIR} -lscanpci \
27 -L${DUMMYOBJDIR} -ldummy
29 DPADD= ${LIBXF86_OS} ${LIBSCANPCI} ${LIBDUMMY}
31 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
32 CPPFLAGS+= -DUSE_I386_IOPL
33 .if ${MACHINE_ARCH} != "x86_64"
34 LDADD+= -li386
35 DPADD+= ${LIBI386}
36 .else
37 LDADD+= -lx86_64
38 DPADD+= ${LIBX86_64}
39 .endif
40 .endif
42 .include <bsd.x11.mk>
43 .include <bsd.prog.mk>