| 1 | noinst_LTLIBRARIES = libbsd.la |
| 2 | |
| 3 | # APM support. |
| 4 | if BSD_KQUEUE_APM |
| 5 | APM_SOURCES = $(srcdir)/bsd_kqueue_apm.c |
| 6 | else |
| 7 | if BSD_APM |
| 8 | APM_SOURCES = $(srcdir)/bsd_apm.c |
| 9 | else |
| 10 | APM_SOURCES = $(srcdir)/../shared/pm_noop.c |
| 11 | endif |
| 12 | endif |
| 13 | |
| 14 | if FREEBSD_KLDLOAD |
| 15 | KMOD_SOURCES = bsd_kmod.c |
| 16 | else |
| 17 | KMOD_SOURCES = $(srcdir)/../shared/kmod_noop.c |
| 18 | endif |
| 19 | |
| 20 | if AGP |
| 21 | AGP_SOURCES = $(srcdir)/../linux/lnx_agp.c |
| 22 | else |
| 23 | AGP_SOURCES = $(srcdir)/../shared/agp_noop.c |
| 24 | endif |
| 25 | |
| 26 | if ALPHA_VIDEO |
| 27 | # Cheat here and piggyback other alpha bits on ALPHA_VIDEO. |
| 28 | ARCH_SOURCES = \ |
| 29 | alpha_video.c \ |
| 30 | bsd_ev56.c \ |
| 31 | bsd_axp.c \ |
| 32 | $(srcdir)/../shared/xf86Axp.c |
| 33 | endif |
| 34 | |
| 35 | if ARM_VIDEO |
| 36 | ARCH_SOURCES = arm_video.c |
| 37 | endif |
| 38 | |
| 39 | if I386_VIDEO |
| 40 | ARCH_SOURCES = i386_video.c |
| 41 | endif |
| 42 | |
| 43 | if PPC_VIDEO |
| 44 | ARCH_SOURCES = ppc_video.c |
| 45 | endif |
| 46 | |
| 47 | if SPARC64_VIDEO |
| 48 | # Cheat here and piggyback other sparc64 bits on SPARC64_VIDEO. |
| 49 | ARCH_SOURCES = \ |
| 50 | sparc64_video.c \ |
| 51 | $(srcdir)/../shared/ioperm_noop.c |
| 52 | endif |
| 53 | |
| 54 | # FIXME: NetBSD Aperture defines (configure.ac) |
| 55 | AM_CFLAGS = -DUSESTDRES $(XORG_CFLAGS) $(DIX_CFLAGS) |
| 56 | |
| 57 | AM_CPPFLAGS = $(XORG_INCS) |
| 58 | |
| 59 | libbsd_la_SOURCES = \ |
| 60 | $(srcdir)/../shared/posix_tty.c \ |
| 61 | $(srcdir)/../shared/sigio.c \ |
| 62 | $(srcdir)/../shared/vidmem.c \ |
| 63 | bsd_VTsw.c \ |
| 64 | bsd_init.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) |
| 73 | |
| 74 | # FIXME: Add these files to the build as needed |
| 75 | EXTRA_DIST = \ |
| 76 | memrange.h |