summaryrefslogtreecommitdiff
path: root/utils/conntest/Makefile.am
blob: 48fafbedcf567971e94635ab3dfee4920ccedda4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
BUILT_SOURCES =
CLEANFILES =
include $(top_srcdir)/RadeonHD.am

EXTRA_DIST = README Imakefile

EXTRA_PROGRAMS = rhd_conntest rhd_dump

if XSERVER_LIBPCIACCESS
noinst_PROGRAMS = rhd_conntest rhd_dump
endif

if HAVE_PCI_PCI_H
if HAVE_ZLIB
noinst_PROGRAMS = rhd_conntest rhd_dump
endif
endif

all-local:
	@if test "x$(noinst_PROGRAMS)" = "x"; then \
		echo "WARNING: Cannot build the rhd_conntest program due to missing dependencies."; \
		echo "         *IF* you want to build rhd_conntest, install development packages of"; \
		echo "         both pciutils and zlib/libz and re-run the configure (or autogen) script."; \
	fi

# Including config.h requires xorg-config.h, so we need the XORG_CFLAGS here
AM_CFLAGS   = @XORG_CFLAGS@ @WARN_CFLAGS@ @PCIUTILS_CFLAGS@
AM_CPPFLAGS = -I$(top_srcdir)/src/AtomBios/includes

rhd_conntest_SOURCES = rhd_conntest.c
nodist_rhd_conntest_SOURCES = git_version.h
if XSERVER_LIBPCIACCESS
rhd_conntest_LDADD   = @PCIACCESS_LIBS@
else
rhd_conntest_LDADD   = @PCIUTILS_LIBS@
endif

rhd_dump_SOURCES = rhd_dump.c
nodist_rhd_dump_SOURCES = git_version.h
if XSERVER_LIBPCIACCESS
rhd_dump_LDADD   = @PCIACCESS_LIBS@
else
rhd_dump_LDADD   = @PCIUTILS_LIBS@
endif