You'd need src/broadcom/cle/ in the -I previously, for srcdir != builddir.
nir was fine at that, but automake didn't have it.
Bugzilla: https://github.com/anholt/mesa/issues/104
#ifndef %(guard)s
#define %(guard)s
-#include "v3d_packet_helpers.h"
+#include "cle/v3d_packet_helpers.h"
"""
AM_CFLAGS = \
-I$(top_builddir)/src/compiler/nir \
-I$(top_srcdir)/include/drm-uapi \
+ -I$(top_srcdir)/src/broadcom \
-I$(top_builddir)/src/broadcom \
+ -I$(top_builddir)/src \
$(LIBDRM_CFLAGS) \
$(V3D_SIMULATOR_CFLAGS) \
$(GALLIUM_DRIVER_CFLAGS) \
-I$(top_builddir)/src/compiler/nir \
-I$(top_srcdir)/include/drm-uapi \
-I$(top_builddir)/src \
- -I$(top_srcdir)/src/broadcom/cle \
+ -I$(top_srcdir)/src/broadcom \
+ -I$(top_builddir)/src/broadcom \
$(LIBDRM_CFLAGS) \
$(GALLIUM_DRIVER_CFLAGS) \
$(SIM_CFLAGS) \