build: Update drivers/Makefile.am to use LTLIBRARIES
authorMatt Turner <mattst88@gmail.com>
Wed, 5 Sep 2012 04:57:28 +0000 (21:57 -0700)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Thu, 10 Jan 2013 21:01:09 +0000 (22:01 +0100)
src/gallium/drivers/Makefile.am

index dc808f47d9b7b0b4b8fef9847a3f9fcdf5adb4c3..3652a6650a9c65043d4eec41e8dc031d6a7a9ed0 100644 (file)
@@ -9,17 +9,17 @@ AM_CPPFLAGS = \
 
 AM_CFLAGS = $(VISIBILITY_CFLAGS)
 
-noinst_LIBRARIES =
+noinst_LTLIBRARIES =
 
-SUBDIRS =
+SUBDIRS = .
 
 ################################################################################
 
 if HAVE_GALAHAD_GALLIUM
 
-noinst_LIBRARIES+= galahad/libgalahad.a
+noinst_LTLIBRARIES += galahad/libgalahad.la
 
-galahad_libgalahad_a_SOURCES = \
+galahad_libgalahad_la_SOURCES = \
        galahad/glhd_objects.c \
        galahad/glhd_context.c \
        galahad/glhd_screen.c
@@ -30,9 +30,9 @@ endif
 
 if HAVE_IDENTITY_GALLIUM
 
-noinst_LIBRARIES+= identity/libidentity.a
+noinst_LTLIBRARIES += identity/libidentity.la
 
-identity_libidentity_a_SOURCES = \
+identity_libidentity_la_SOURCES = \
        identity/id_objects.c \
        identity/id_context.c \
        identity/id_screen.c
@@ -46,9 +46,9 @@ if HAVE_NOOP_GALLIUM
 # Meta-driver which combines whichever software rasterizers have been
 # built into a single convenience library.
 
-noinst_LIBRARIES+= noop/libnoop.a
+noinst_LTLIBRARIES += noop/libnoop.la
 
-noop_libnoop_a_SOURCES = \
+noop_libnoop_la_SOURCES = \
        noop/noop_pipe.c \
        noop/noop_state.c
 
@@ -58,14 +58,24 @@ endif
 
 if NEED_RADEON_GALLIUM
 
-SUBDIRS+= radeon
+SUBDIRS += radeon
 
 endif
 
 ################################################################################
 
-SUBDIRS+= $(GALLIUM_MAKE_DIRS)
+SUBDIRS += $(GALLIUM_MAKE_DIRS)
 
 # FIXME: Remove when the rest of Gallium is converted to automake.
 default: all
 
+all-local: $(noinst_LTLIBRARIES)
+if HAVE_GALAHAD_GALLIUM
+       ln -f $(builddir)/galahad/.libs/libgalahad.a $(builddir)/galahad/libgalahad.a
+endif
+if HAVE_IDENTITY_GALLIUM
+       ln -f $(builddir)/identity/.libs/libidentity.a $(builddir)/identity/libidentity.a
+endif
+if HAVE_NOOP_GALLIUM
+       ln -f $(builddir)/noop/.libs/libnoop.a $(builddir)/noop/libnoop.a
+endif