mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-23 07:46:15 +00:00
quick_dump: Makefile.am best practices and fix distcheck
A few changes - Put CPPFLAGS in AM_CPPFLAGS instead of a per-target CFLAGS var; - Use _LIBS/_CFLAGS from pkg-config instead of hard-coded values; - List non-generated scripts in dist_bin_SCRIPTS; - Add chipset.py to the run that implicitly generates it, which fixes distcheck. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
parent
c73eab9f40
commit
05795daebf
@ -1,17 +1,19 @@
|
|||||||
|
AM_CPPFLAGS = -I$(top_srcdir)/lib $(PYTHON_CPPFLAGS) $(DRM_CFLAGS)
|
||||||
|
|
||||||
BUILT_SOURCES = chipset_wrap_python.c
|
BUILT_SOURCES = chipset_wrap_python.c
|
||||||
|
|
||||||
bin_SCRIPTS = quick_dump.py chipset.py reg_access.py
|
dist_bin_SCRIPTS = quick_dump.py reg_access.py
|
||||||
|
bin_SCRIPTS = chipset.py
|
||||||
|
|
||||||
lib_LTLIBRARIES = I915ChipsetPython.la
|
lib_LTLIBRARIES = I915ChipsetPython.la
|
||||||
I915ChipsetPython_la_CFLAGS = -I$(top_srcdir)/lib $(PYTHON_CPPFLAGS) $(CFLAGS) -I/usr/include/libdrm/
|
I915ChipsetPython_la_LDFLAGS = -module -avoid-version $(PYTHON_LDFLAGS) $(PCIACCESS_LIBS)
|
||||||
I915ChipsetPython_la_LDFLAGS = -module -avoid-version $(PYTHON_LDFLAGS) -lpciaccess
|
|
||||||
I915ChipsetPython_la_SOURCES = chipset_wrap_python.c intel_chipset.c \
|
I915ChipsetPython_la_SOURCES = chipset_wrap_python.c intel_chipset.c \
|
||||||
$(top_srcdir)/lib/intel_drm.c \
|
$(top_srcdir)/lib/intel_drm.c \
|
||||||
$(top_srcdir)/lib/intel_pci.c \
|
$(top_srcdir)/lib/intel_pci.c \
|
||||||
$(top_srcdir)/lib/intel_reg_map.c \
|
$(top_srcdir)/lib/intel_reg_map.c \
|
||||||
$(top_srcdir)/lib/intel_mmio.c
|
$(top_srcdir)/lib/intel_mmio.c
|
||||||
|
|
||||||
chipset_wrap_python.c: chipset.i
|
chipset_wrap_python.c chipset.py: chipset.i
|
||||||
$(SWIG) $(AX_SWIG_PYTHON_OPT) -I/usr/include -I$(top_srcdir)/lib -o $@ $<
|
$(SWIG) $(AX_SWIG_PYTHON_OPT) -I/usr/include -I$(top_srcdir)/lib -o $@ $<
|
||||||
|
|
||||||
all-local: I915ChipsetPython.la
|
all-local: I915ChipsetPython.la
|
||||||
|
Loading…
x
Reference in New Issue
Block a user