trace: Convert to automake
authorTom Stellard <tstellar@gmail.com>
Fri, 24 Aug 2012 18:46:32 +0000 (11:46 -0700)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Thu, 10 Jan 2013 21:01:06 +0000 (22:01 +0100)
configure.ac
src/gallium/drivers/trace/.gitignore [new file with mode: 0644]
src/gallium/drivers/trace/Makefile [deleted file]
src/gallium/drivers/trace/Makefile.am [new file with mode: 0644]

index 354635b..2864314 100644 (file)
@@ -2006,6 +2006,7 @@ AC_CONFIG_FILES([configs/current
                src/gallium/drivers/Makefile
                src/gallium/drivers/r300/Makefile
                src/gallium/drivers/r600/Makefile
+               src/gallium/drivers/trace/Makefile
                src/gallium/state_trackers/clover/Makefile
                src/gallium/targets/Makefile
                src/gallium/targets/opencl/Makefile
diff --git a/src/gallium/drivers/trace/.gitignore b/src/gallium/drivers/trace/.gitignore
new file mode 100644 (file)
index 0000000..282522d
--- /dev/null
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in
diff --git a/src/gallium/drivers/trace/Makefile b/src/gallium/drivers/trace/Makefile
deleted file mode 100644 (file)
index 99e5fb8..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-TOP = ../../../..
-include $(TOP)/configs/current
-
-LIBNAME = trace
-
-C_SOURCES = \
-       tr_context.c \
-       tr_dump.c \
-       tr_dump_state.c \
-       tr_screen.c \
-       tr_texture.c
-
-include ../../Makefile.template
diff --git a/src/gallium/drivers/trace/Makefile.am b/src/gallium/drivers/trace/Makefile.am
new file mode 100644 (file)
index 0000000..9adcef1
--- /dev/null
@@ -0,0 +1,17 @@
+include $(top_srcdir)/src/gallium/Automake.inc
+
+AM_CFLAGS = \
+       $(GALLIUM_CFLAGS)
+
+noinst_LTLIBRARIES = libtrace.la
+
+libtrace_la_SOURCES = \
+       tr_context.c \
+       tr_dump.c \
+       tr_dump_state.c \
+       tr_screen.c \
+       tr_texture.c
+
+#XXX: Delete this when all targets using libtrace are converted to automake
+all-local: libtrace.la
+       ln -f $(builddir)/.libs/libtrace.a $(builddir)/libtrace.a