summaryrefslogtreecommitdiff
path: root/clutter-gst/shaders/Makefile.am
blob: d6a9e2f46e6b7164b7ca942c61078783dc350543 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
include $(top_srcdir)/build/autotools/Makefile.am.silent

NULL = #

CLEANFILES =
EXTRA_DIST = I420.cg I420.pso I420.h \
             YV12.cg YV12.pso YV12.h \
             $(NULL)

#
# If we have python we are able to build the headers holding the fragment
# programs.
#

if HAVE_PYTHON

BUILT_SOURCES = I420.h \
                YV12.h \
                $(NULL)

CLEANFILES += I420.h \
              YV12.h \
              $(NULL)

# Don't use GNU make extension to avoid automake warnings, yeah I know, that's
# annoying.

I420.h: I420.pso
	$(QUIET_GEN)$(top_srcdir)/scripts/pso2h.py -n I420_fp -o $@ $^

YV12.h: YV12.pso
	$(QUIET_GEN)$(top_srcdir)/scripts/pso2h.py -n YV12_fp -o $@ $^

endif

#
# Only add those targets if we the Cg compiler is around.
#

if HAVE_CGC

CLEANFILES += I420.pso \
              YV12.pso \
              $(NULL)

I420.pso: I420.cg
	$(QUIET_CGC)cgc -entry I420_main -profile arbfp1 -o $@ $^

YV12.pso: YV12.cg
	$(QUIET_CGC)cgc -entry YV12_main -profile arbfp1 -o $@ $^

endif