First import
[xorg_rtime.git] / xorg-server-1.4 / hw / xfree86 / os-support / bsd / Makefile.am
blob0432ba931ca1a85340d4b1820019db92bf727646
1 noinst_LTLIBRARIES = libbsd.la
3 # FIXME: Add USB mouse support?
5 # FIXME: APM support.
6 APM_SOURCES = $(srcdir)/../shared/pm_noop.c
8 if FREEBSD_KLDLOAD
9 KMOD_SOURCES = bsd_kmod.c
10 else
11 KMOD_SOURCES = $(srcdir)/../shared/kmod_noop.c
12 endif
14 # FIXME: Non-i386/ia64 resource support.
15 RES_SOURCES = $(srcdir)/../shared/stdResource.c
17 if AGP
18 AGP_SOURCES = $(srcdir)/../linux/lnx_agp.c
19 else
20 AGP_SOURCES = $(srcdir)/../shared/agp_noop.c
21 endif
23 if ALPHA_VIDEO
24 # Cheat here and piggyback other alpha bits on ALPHA_VIDEO.
25 ARCH_SOURCES = \
26         alpha_video.c \
27         bsd_ev56.c \
28         bsd_axp.c \
29         $(srcdir)/../shared/xf86Axp.c
30 endif
32 if ARM_VIDEO
33 ARCH_SOURCES = arm_video.c
34 endif
36 if I386_VIDEO
37 ARCH_SOURCES = i386_video.c
38 endif
40 if PPC_VIDEO
41 ARCH_SOURCES = ppc_video.c
42 endif
44 if SPARC64_VIDEO
45 # Cheat here and piggyback other sparc64 bits on SPARC64_VIDEO.
46 ARCH_SOURCES = \
47         sparc64_video.c \
48         $(srcdir)/../shared/ioperm_noop.c
49 endif
51 # FIXME: NetBSD Aperture defines (configure.ac)
52 AM_CFLAGS = -DUSESTDRES $(XORG_CFLAGS) $(DIX_CFLAGS)
54 INCLUDES = $(XORG_INCS)
56 libbsd_la_SOURCES = \
57         $(srcdir)/../shared/libc_wrapper.c \
58         $(srcdir)/../shared/posix_tty.c \
59         $(srcdir)/../shared/sigio.c \
60         $(srcdir)/../shared/stdPci.c \
61         $(srcdir)/../shared/vidmem.c \
62         bsd_VTsw.c \
63         bsd_init.c \
64         bsd_mouse.c \
65         bsd_bell.c \
66         $(ARCH_SOURCES) \
67         $(AGP_SOURCES) \
68         $(APM_SOURCES) \
69         $(AXP_SOURCES) \
70         $(DRI_SOURCES) \
71         $(KMOD_SOURCES) \
72         $(RES_SOURCES)
74 # FIXME: Add these files to the build as needed
75 EXTRA_DIST = \
76         bsd_apm.c \
77         bsd_jstk.c \
78         bsd_kqueue_apm.c \
79         bsdResource.c \
80         memrange.h \
81         libusb/data.c \
82         libusb/descr.c \
83         libusb/parse.c \
84         libusb/usage.c \
85         libusb/usb.3 \
86         libusb/usb.h \
87         libusb/usb_hid_usages \
88         libusb/usbvar.h