Mercurial > sdl-ios-xcode
view src/Makefile.am @ 865:92615154bb68
Date: Sun, 29 Feb 2004 15:14:22 +0200
From: Martin_Storsj
Subject: Dynamic loading of ALSA
I recently discovered that SDL can dynamically load ESD and aRts, and
made a patch which adds this same functionality to ALSA.
The update for configure.in isn't too good (it should e.g. look for
libasound.so in other directories than /usr/lib), because I'm not too
good at shellscripting and autoconf.
The reason for using dlfcn.h and dlopen instead of SDL_LoadLibrary and
SDL_LoadFunction is that libasound uses versioned symbols, and it is
necessary to load the correct version using dlvsym. This isn't probably
any real portability issue, because ALSA is linux-only.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 02 Mar 2004 12:49:16 +0000 |
parents | e70f80e98f60 |
children | 450721ad5436 |
line wrap: on
line source
## Makefile.am for the main SDL library # These are the subdirectories that are always built CORE_SUBDIRS = \ main # These are the subdirectories which may be built EXTRA_SUBDIRS = \ audio video events joystick cdrom thread timer endian file cpuinfo hermes # These are the subdirectories which will be built now SUBDIRS = $(CORE_SUBDIRS) @SDL_EXTRADIRS@ # These are the subdirectories which will be distributed with "make dist" DIST_SUBDIRS = $(CORE_SUBDIRS) $(EXTRA_SUBDIRS) # The SDL library target lib_LTLIBRARIES = libSDL.la libSDL_la_SOURCES = $(GENERAL_SRCS) libSDL_la_LDFLAGS = \ -no-undefined \ -release $(LT_RELEASE) \ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) libSDL_la_LIBADD = \ main/libarch.la \ @SDL_EXTRALIBS@ \ @SYSTEM_LIBS@ libSDL_la_DEPENDENCIES = \ main/libarch.la \ @SDL_EXTRALIBS@ # The SDL library sources GENERAL_SRCS = \ SDL.c \ SDL_error.c \ SDL_error_c.h \ SDL_fatal.c \ SDL_fatal.h \ SDL_getenv.c \ SDL_loadso.c