Mika Kuoppala | ca6b63f | 2014-10-10 16:59:00 +0300 | [diff] [blame] | 1 | GPU_TOOLS_PATH := $(top_srcdir) |
Rodrigo Vivi | 5a856e1 | 2014-06-09 10:48:10 -0700 | [diff] [blame] | 2 | AM_CPPFLAGS = -I$(top_srcdir) |
Thomas Wood | b9d27f0 | 2015-08-26 12:05:13 +0100 | [diff] [blame^] | 3 | AM_CFLAGS = $(DEBUG_CFLAGS) $(CWARNFLAGS) |
Rodrigo Vivi | 5a856e1 | 2014-06-09 10:48:10 -0700 | [diff] [blame] | 4 | |
Mika Kuoppala | d60d4c8 | 2014-04-10 15:15:13 +0300 | [diff] [blame] | 5 | noinst_PROGRAMS = intel_null_state_gen |
| 6 | |
| 7 | intel_null_state_gen_SOURCES = \ |
| 8 | intel_batchbuffer.c \ |
Rodrigo Vivi | 5a856e1 | 2014-06-09 10:48:10 -0700 | [diff] [blame] | 9 | intel_batchbuffer.h \ |
Thomas Wood | b9d27f0 | 2015-08-26 12:05:13 +0100 | [diff] [blame^] | 10 | intel_renderstate.h \ |
Mika Kuoppala | d60d4c8 | 2014-04-10 15:15:13 +0300 | [diff] [blame] | 11 | intel_renderstate_gen6.c \ |
| 12 | intel_renderstate_gen7.c \ |
| 13 | intel_renderstate_gen8.c \ |
Armin Reese | f246f1e | 2014-09-05 13:58:11 -0700 | [diff] [blame] | 14 | intel_renderstate_gen9.c \ |
Mika Kuoppala | d60d4c8 | 2014-04-10 15:15:13 +0300 | [diff] [blame] | 15 | intel_null_state_gen.c |
| 16 | |
Armin Reese | f246f1e | 2014-09-05 13:58:11 -0700 | [diff] [blame] | 17 | gens := 6 7 8 9 |
Mika Kuoppala | d60d4c8 | 2014-04-10 15:15:13 +0300 | [diff] [blame] | 18 | |
| 19 | h = /tmp/intel_renderstate_gen$$gen.c |
Mika Kuoppala | ca6b63f | 2014-10-10 16:59:00 +0300 | [diff] [blame] | 20 | states: intel_null_state_gen |
Mika Kuoppala | d60d4c8 | 2014-04-10 15:15:13 +0300 | [diff] [blame] | 21 | for gen in $(gens); do \ |
Mika Kuoppala | ca6b63f | 2014-10-10 16:59:00 +0300 | [diff] [blame] | 22 | head -n 22 intel_null_state_gen.c >$(h); \ |
| 23 | if test -d $(GPU_TOOLS_PATH)/.git; then \ |
| 24 | echo -n " * Generated by: " >>$(h); \ |
| 25 | git describe >>$(h); \ |
| 26 | fi; \ |
| 27 | echo " */" >>$(h); \ |
| 28 | echo "" >>$(h); \ |
| 29 | ./intel_null_state_gen $$gen >>$(h); \ |
Mika Kuoppala | d60d4c8 | 2014-04-10 15:15:13 +0300 | [diff] [blame] | 30 | done |