• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1GPU_TOOLS_PATH := $(top_srcdir)
2AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include/drm-uapi \
3	      -I$(top_srcdir)/lib/stubs/syscalls
4AM_CFLAGS = $(DEBUG_CFLAGS) $(CWARNFLAGS)
5
6noinst_PROGRAMS = intel_null_state_gen
7
8intel_null_state_gen_SOURCES = 	\
9	intel_batchbuffer.c \
10	intel_batchbuffer.h \
11	intel_renderstate.h \
12	intel_renderstate_gen6.c \
13	intel_renderstate_gen7.c \
14	intel_renderstate_gen8.c \
15	intel_renderstate_gen9.c \
16	intel_null_state_gen.c
17
18gens := 6 7 8 9
19
20h = /tmp/intel_renderstate_gen$$gen.c
21states: intel_null_state_gen
22	for gen in $(gens); do \
23		head -n 22 intel_null_state_gen.c >$(h); \
24		if test -d $(GPU_TOOLS_PATH)/.git; then \
25			echo -n " * Generated by: " >>$(h); \
26			git describe >>$(h); \
27		fi; \
28		echo " */" >>$(h); \
29		echo "" >>$(h); \
30		./intel_null_state_gen $$gen >>$(h); \
31	done
32