libgallium: Convert to automake
[mesa.git] / src / gallium / auxiliary / Makefile.am
1 AUTOMAKE_OPTIONS = subdir-objects
2
3 include Makefile.sources
4 include $(top_srcdir)/src/gallium/Automake.inc
5
6 SUBDIRS += pipebuffer
7 noinst_LTLIBRARIES = libgallium.la
8
9 AM_CFLAGS = \
10 -I$(top_srcdir)/src/gallium/auxiliary/util \
11 $(GALLIUM_CFLAGS)
12
13 libgallium_la_SOURCES = \
14 $(C_SOURCES) \
15 $(GENERATED_SOURCES)
16
17 if HAVE_MESA_LLVM
18
19 AM_CFLAGS += \
20 $(LLVM_CFLAGS)
21
22 AM_CXXFLAGS = \
23 $(GALLIUM_CFLAGS) \
24 $(LLVM_CXXFLAGS)
25
26 if LLVM_NEEDS_FNORTTI
27
28 AM_CXXFLAGS += -fno-rtti
29
30 endif
31
32 libgallium_la_SOURCES += \
33 $(GALLIVM_SOURCES) \
34 $(GALLIVM_CPP_SOURCES)
35
36 endif
37
38 indices/u_indices_gen.c: $(srcdir)/indices/u_indices_gen.py
39 $(AM_V_GEN) $(PYTHON2) $< > $@
40
41 indices/u_unfilled_gen.c: $(srcdir)/indices/u_unfilled_gen.py
42 $(AM_V_GEN) $(PYTHON2) $< > $@
43
44 util/u_format_srgb.c: $(srcdir)/util/u_format_srgb.py
45 $(AM_V_GEN) $(PYTHON2) $< > $@
46
47 util/u_format_table.c: $(srcdir)/util/u_format_table.py $(srcdir)/util/u_format_pack.py $(srcdir)/util/u_format_parse.py $(srcdir)/util/u_format.csv
48 $(AM_V_GEN) $(PYTHON2) $(srcdir)/util/u_format_table.py $(srcdir)/util/u_format.csv > $@
49
50 #XXX: Delete this when all targets are converted to automake.
51 all-local: libgallium.la
52 ln -f $(builddir)/.libs/libgallium.a $(builddir)/libgallium.a