mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 18:06:13 +00:00
I just remembered that those Makefile.sources files where also included by the Android build system, so we can't use automake's conditionals in there. So, we want to use GNU make's one. Unfortunately, after all those years, GNU automake still doesn't do anything useful with GNU make's ifeq: lib/Makefile.sources:66: error: else without if automake will helpfully signal that the 'else' corresponding to the 'ifeq' doesn't have a corresponding 'if'. Well, yeah, thanks. Fortunately, we can work around this by cunningly inserting a space before 'ifeq', 'else' and 'endif' and fool automake's regex-based checks. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
94 lines
2.0 KiB
Makefile
94 lines
2.0 KiB
Makefile
libintel_tools_la_SOURCES = \
|
|
debug.h \
|
|
drmtest.c \
|
|
drmtest.h \
|
|
i830_reg.h \
|
|
i915_3d.h \
|
|
i915_reg.h \
|
|
i915_pciids.h \
|
|
igt_debugfs.c \
|
|
igt_debugfs.h \
|
|
igt_aux.c \
|
|
igt_aux.h \
|
|
igt_gt.c \
|
|
igt_gt.h \
|
|
igt_stats.c \
|
|
igt_stats.h \
|
|
instdone.c \
|
|
instdone.h \
|
|
intel_batchbuffer.c \
|
|
intel_batchbuffer.h \
|
|
intel_chipset.h \
|
|
intel_os.c \
|
|
intel_io.h \
|
|
intel_mmio.c \
|
|
intel_chipset.c \
|
|
intel_reg.h \
|
|
ioctl_wrappers.c \
|
|
ioctl_wrappers.h \
|
|
media_fill.h \
|
|
media_fill_gen7.c \
|
|
media_fill_gen8.c \
|
|
media_fill_gen8lp.c \
|
|
media_fill_gen9.c \
|
|
media_spin.h \
|
|
media_spin.c \
|
|
gen7_media.h \
|
|
gen8_media.h \
|
|
rendercopy_i915.c \
|
|
rendercopy_i830.c \
|
|
gen6_render.h \
|
|
gen7_render.h \
|
|
gen8_render.h \
|
|
gen9_render.h \
|
|
rendercopy_gen6.c \
|
|
rendercopy_gen7.c \
|
|
rendercopy_gen8.c \
|
|
rendercopy_gen9.c \
|
|
rendercopy.h \
|
|
intel_reg_map.c \
|
|
intel_iosf.c \
|
|
igt_kms.c \
|
|
igt_kms.h \
|
|
igt_fb.c \
|
|
igt_fb.h \
|
|
igt_core.c \
|
|
igt_core.h \
|
|
igt_draw.c \
|
|
igt_draw.h \
|
|
$(NULL)
|
|
|
|
.PHONY: version.h.tmp
|
|
|
|
# leaving a space here to work around automake's conditionals
|
|
ifeq ($(GIT_HASH),no)
|
|
$(IGT_LIB_PATH)/version.h.tmp:
|
|
@echo '#define IGT_GIT_SHA1 "git"' >> $@
|
|
else
|
|
$(IGT_LIB_PATH)/version.h.tmp:
|
|
@touch $@
|
|
@if test -d $(GPU_TOOLS_PATH)/.git; then \
|
|
if which git > /dev/null 2>&1; then \
|
|
cd $(GPU_TOOLS_PATH); \
|
|
git log -n 1 --oneline | \
|
|
sed 's/^\([^ ]*\) .*/#define IGT_GIT_SHA1 "g\1"/' ; \
|
|
else \
|
|
echo '#define IGT_GIT_SHA1 "NO-GIT"' ; \
|
|
fi \
|
|
else \
|
|
echo '#define IGT_GIT_SHA1 "NOT-GIT"' ; \
|
|
fi >> $@
|
|
endif # GIT_HASH
|
|
|
|
|
|
$(IGT_LIB_PATH)/version.h: $(IGT_LIB_PATH)/version.h.tmp
|
|
@if ! cmp -s $(IGT_LIB_PATH)/version.h.tmp $(IGT_LIB_PATH)/version.h; then \
|
|
mv $(IGT_LIB_PATH)/version.h.tmp $(IGT_LIB_PATH)/version.h ; \
|
|
else \
|
|
rm $(IGT_LIB_PATH)/version.h.tmp ; \
|
|
fi
|
|
|
|
BUILT_SOURCES = $(IGT_LIB_PATH)/version.h
|
|
CLEANFILES = $(IGT_LIB_PATH)/version.h $(IGT_LIB_PATH)/version.h.tmp
|
|
|