Expand PMF_FN_* macros.
[netbsd-mini2440.git] / x11 / Xserver / hw / xfree86 / bin / xf86cfg / Makefile
blobe1c2e8c0f4608fe630f9d87ab704215fc48130e2
1 # $NetBSD: Makefile,v 1.6 2006/03/31 21:43:42 uwe Exp $
3 .include <bsd.own.mk>
5 PROG= xf86cfg
7 .PATH: ${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/xf86cfg
8 .PATH: ${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/xf86config # for Cards
9 .PATH: ${X11SRCDIR.xc}/programs/Xserver/hw/xfree86 # for Options
11 # XXX only if loadable LDSRCS = libc_wrapper.c loader.c loadmod.c
12 SRCS= accessx.c card-cfg.c cards.c config.c expert.c help.c interface.c \
13 keyboard-cfg.c libc_wrapper.c loader.c loadmod.c monitor-cfg.c \
14 mouse-cfg.c options.c screen-cfg.c screen.c startx.c stubs.c \
15 vidmode.c xf86config.c
17 DPSRCS+=xf86PciIds.h
19 XSERVERINCDIR!= cd ${NETBSDSRCDIR}/x11/Xserver/include && ${PRINTOBJDIR}
20 SCANPCIINCDIR!= cd ${NETBSDSRCDIR}/x11/Xserver/hw/xfree86/bin/xf86cfg && ${PRINTOBJDIR}
21 XF86OBJDIR!= cd ${NETBSDSRCDIR}/x11/Xserver/hw/xfree86/xf86config && ${PRINTOBJDIR}
22 XLOADEROBJDIR!= cd ${NETBSDSRCDIR}/x11/Xserver/hw/xfree86/xloader && ${PRINTOBJDIR}
23 DUMMYOBJDIR!= cd ${NETBSDSRCDIR}/x11/Xserver/hw/xfree86/dummy && ${PRINTOBJDIR}
25 CPPFLAGS+= -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/common \
26 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/scanpci \
27 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/loader \
28 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support \
29 -I${X11SRCDIR.xc}/programs/Xserver/include \
30 -I${DESTDIR}${X11INCDIR}/X11 \
31 -I${X11SRCDIR.xc}/lib/font/include \
32 -I${SCANPCIINCDIR} \
33 -I${XSERVERINCDIR}
35 # XXX only if loadable -DUSE_MODULES
36 CPPFLAGS+= -DXF86CONFIG=\"XF86Config\" -DUSE_MODULES \
37 -DPROJECT_ROOT=\"/usr/X11R6\" \
38 -DXF86CONFIGDIR=\"/etc/X11\" -DWSCONS_SUPPORT
40 .if ${MACHINE} == "cats"
41 CPPFLAGS+= -DPCVT_SUPPORT
42 .endif
44 .if ${MACHINE_ARCH} == "i386"
45 CPPFLAGS+= -DPCCONS_SUPPORT -DPCVT_SUPPORT
46 .endif
49 LDADD= -lxkbui -lxkbfile -L${XF86OBJDIR} -lxf86config -lXxf86misc \
50 -lXxf86vm -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11 -lXt -lSM \
51 -lICE -lXpm -L${XLOADEROBJDIR} -lxloader -L${DUMMYOBJDIR} \
52 -ldummy -lXext -lX11 -lm
54 DPADD= ${LIBXKBUI} ${LIBXKBFILE} ${LIBXF86CONFIG} ${LIBXXF86MISC} \
55 ${LIBXXF86VM} ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \
56 ${LIBXEXT} ${LIBX11} ${LIBXPM} ${LIBXLOADER} ${LIBDUMMY} ${LIBM}
58 BUILDSYMLINKS= ../os-support/shared/libc_wrapper.c libc_wrapper.c \
59 ../scanpci/xf86PciStdIds.h xf86PciIds.h
61 CPPFLAGS.libc_wrapper.c= -DSELF_CONTAINED_WRAPPER
63 APPDEFS=XF86Cfg.ad
65 FILES.bitmap= card.xbm keyboard.xbm monitor.xbm mouse.xbm left.xbm \
66 right.xbm up.xbm down.xbm wider.xbm narrower.xbm \
67 shorter.xbm taller.xbm
69 FILES.pixmap= card.xpm computer.xpm keyboard.xpm monitor.xpm mouse.xpm
71 # XXX Cards Options are both used by xf86cfg as well as other things
72 # so this may not be the appropriate place to install from.
73 FILES= ${FILES.bitmap} ${FILES.pixmap} Cards Options
75 .for _FN in ${FILES.bitmap}
76 FILESDIR_${_FN}= ${X11INCDIR}/X11/bitmaps
77 .endfor
79 .for _FN in ${FILES.pixmap}
80 FILESDIR_${_FN}= ${X11INCDIR}/X11/pixmaps
81 .endfor
83 FILESDIR_Cards= ${X11USRLIBDIR}/X11
84 FILESDIR_Options= ${X11USRLIBDIR}/X11
86 .include <bsd.x11.mk>
88 # need to do this here, so that X11FLAGS.LOADABLE is available
89 .if (${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "armeb") \
90 && defined(X11FLAGS.LOADABLE)
91 LDADD+= -larm
92 DPADD+= ${LIBARM}
93 .endif
95 .include <bsd.prog.mk>