d58a0be5c8b8b638bdc734665873c4e48784c1ac
[profile/ivi/vaapi-intel-driver.git] / src / shaders / vme / Makefile.am
1 VME_CORE        = intra_frame.asm inter_frame.asm
2
3 INTEL_G6B       = intra_frame.g6b inter_frame.g6b
4 INTEL_G6A       = intra_frame.g6a inter_frame.g6a
5 INTEL_GEN6_INC  = gen6_vme_header.inc
6 INTEL_GEN6_ASM  = $(INTEL_G6A:%.g6a=%.gen6.asm)
7
8 INTEL_G7B       = intra_frame.g7b inter_frame.g7b
9 INTEL_G7A       = intra_frame.g7a inter_frame.g7a
10 INTEL_GEN7_INC  = gen7_vme_header.inc
11 INTEL_GEN7_ASM  = $(INTEL_G7A:%.g7a=%.gen7.asm)
12
13 TARGETS  =
14 if HAVE_GEN4ASM
15 TARGETS += $(INTEL_G6B)
16 TARGETS += $(INTEL_G7B)
17 endif
18
19 all-local: $(TARGETS)
20
21 SUFFIXES = .g6a .g6b .g7a .g7b .gen6.asm .gen7.asm
22
23 if HAVE_GEN4ASM
24 $(INTEL_GEN6_ASM): $(VME_CORE) $(INTEL_GEN6_INC)
25 .g6a.gen6.asm:
26         $(AM_V_GEN)m4 $< > $@
27 .gen6.asm.g6b:
28         $(AM_V_GEN)$(GEN4ASM) -g 6 -o $@ $<
29
30 $(INTEL_GEN7_ASM): $(VME_CORE) $(INTEL_GEN7_INC)
31 .g7a.gen7.asm:
32         $(AM_V_GEN)m4 $< > $@
33 .gen7.asm.g7b:
34         $(AM_V_GEN)$(GEN4ASM) -g 7 -o $@ $<
35 endif
36
37 CLEANFILES = $(INTEL_GEN6_ASM) $(INTEL_GEN7_ASM)
38
39 EXTRA_DIST = \
40         $(INTEL_G6A)            \
41         $(INTEL_G6B)            \
42         $(INTEL_G7A)            \
43         $(INTEL_G7B)            \
44         $(INTEL_GEN6_INC)       \
45         $(INTEL_GEN7_INC)       \
46         $(VME_CORE)             \
47         $(NULL)
48
49 # Extra clean files so that maintainer-clean removes *everything*
50 MAINTAINERCLEANFILES = Makefile.in