15a04522aSIan Romanick# 25a04522aSIan Romanick# (C) Copyright IBM Corporation 2006 35a04522aSIan Romanick# All Rights Reserved. 45a04522aSIan Romanick# 55a04522aSIan Romanick# Permission is hereby granted, free of charge, to any person obtaining a 65a04522aSIan Romanick# copy of this software and associated documentation files (the "Software"), 75a04522aSIan Romanick# to deal in the Software without restriction, including without limitation 85a04522aSIan Romanick# on the rights to use, copy, modify, merge, publish, distribute, sub 95a04522aSIan Romanick# license, and/or sell copies of the Software, and to permit persons to whom 105a04522aSIan Romanick# the Software is furnished to do so, subject to the following conditions: 115a04522aSIan Romanick# 125a04522aSIan Romanick# The above copyright notice and this permission notice (including the next 135a04522aSIan Romanick# paragraph) shall be included in all copies or substantial portions of the 145a04522aSIan Romanick# Software. 155a04522aSIan Romanick# 165a04522aSIan Romanick# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 175a04522aSIan Romanick# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 185a04522aSIan Romanick# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 195a04522aSIan Romanick# IBM AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 205a04522aSIan Romanick# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 215a04522aSIan Romanick# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 225a04522aSIan Romanick# DEALINGS IN THE SOFTWARE. 235a04522aSIan Romanick 242b5c81c2SGaetan NadonAM_CPPFLAGS = -I$(top_srcdir)/include 250edb2392SAlan CoopersmithAM_CFLAGS = $(CWARNFLAGS) @PCIACCESS_CFLAGS@ 264f6e1a61SEric Anholt 275a04522aSIan Romanicklib_LTLIBRARIES = libpciaccess.la 285a04522aSIan Romanick 2907b09d93SEric Anholtif LINUX 3073197e09SIan RomanickOS_SUPPORT = linux_sysfs.c linux_devmem.c linux_devmem.h 31*2601ddd0SMark KettenisVGA_ARBITER = common_vgaarb.c 3207b09d93SEric Anholtendif 3307b09d93SEric Anholt 3407b09d93SEric Anholtif FREEBSD 3507b09d93SEric AnholtOS_SUPPORT = freebsd_pci.c 36*2601ddd0SMark KettenisVGA_ARBITER = common_vgaarb_stub.c 3707b09d93SEric Anholtendif 3807b09d93SEric Anholt 394c1c607cSJuan RPif NETBSD 404c1c607cSJuan RPOS_SUPPORT = netbsd_pci.c 41*2601ddd0SMark KettenisVGA_ARBITER = common_vgaarb_stub.c 424c1c607cSJuan RPendif 434c1c607cSJuan RP 44d898072eSMark Kettenisif OPENBSD 45d898072eSMark KettenisOS_SUPPORT = openbsd_pci.c 46*2601ddd0SMark Kettenis# VGA Arbiter code is included in openbsd_pci.c 47d898072eSMark Kettenisendif 48d898072eSMark Kettenis 49206e2921Sedward shuif SOLARIS 504224ff23SJulien CristauOS_SUPPORT = solx_devfs.c pci_tools.h 51b229acdfSDave AirlieVGA_ARBITER = common_vgaarb_stub.c 52b77b0fc3STiago Vignattiendif 53b77b0fc3STiago Vignatti 54af2be749SSamuel Thibaultif GNU 55af2be749SSamuel ThibaultOS_SUPPORT = x86_pci.c 56*2601ddd0SMark KettenisVGA_ARBITER = common_vgaarb_stub.c 57af2be749SSamuel Thibaultendif 58af2be749SSamuel Thibault 592ba1a0e4SIan Romanicklibpciaccess_la_SOURCES = common_bridge.c \ 602ba1a0e4SIan Romanick common_iterator.c \ 615a04522aSIan Romanick common_init.c \ 625a04522aSIan Romanick common_interface.c \ 635e8d4c19SAdam Jackson common_io.c \ 645a04522aSIan Romanick common_capability.c \ 655a04522aSIan Romanick common_device_name.c \ 6608ff9f7fSIan Romanick common_map.c \ 67c7ce8ee1SEric Anholt pciaccess_private.h \ 68b77b0fc3STiago Vignatti $(VGA_ARBITER) \ 6907b09d93SEric Anholt $(OS_SUPPORT) 705a04522aSIan Romanick 713f59728dSAlan Coopersmithlibpciaccess_la_LIBADD = $(PCIACCESS_LIBS) 725a04522aSIan Romanick 7312dbf6d2SJeremy Huddlestonlibpciaccess_la_LDFLAGS = -version-number 0:11:0 -no-undefined 74