Ignore:
Timestamp:
Oct 20, 2006, 12:43:17 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Added a --enable-plugins configure flag that builds the GL and X11 drivers as plugins. This way, libcaca does not directly depend on those libraries.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/Makefile.am

    r1013 r1208  
    33EXTRA_DIST = caca.pc.in
    44DISTCLEANFILES = caca.pc
     5
     6AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul -DPLUGINDIR=\"$(plugindir)\"
    57
    68pkgconfig_DATA = caca.pc
     
    2123        time.c \
    2224        driver_conio.c \
    23         driver_gl.c \
    2425        driver_ncurses.c \
    2526        driver_raw.c \
     
    2728        driver_vga.c \
    2829        driver_win32.c \
    29         driver_x11.c \
     30        $(extra_drivers) \
    3031        $(NULL)
    31 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul
    3232libcaca_la_LDFLAGS = -no-undefined -version-info @LT_VERSION@
    3333libcaca_la_LIBADD = ../cucul/libcucul.la @CACA_LIBS@
    3434
     35if USE_PLUGINS
     36plugin_LTLIBRARIES = libx11_plugin.la libgl_plugin.la
     37plugindir = $(libdir)/caca
     38
     39libx11_plugin_la_SOURCES = driver_x11.c
     40libx11_plugin_la_LDFLAGS = -no-undefined -module -no-version
     41libx11_plugin_la_LIBADD = libcaca.la ../cucul/libcucul.la @X11_LIBS@
     42
     43libgl_plugin_la_SOURCES = driver_gl.c
     44libgl_plugin_la_LDFLAGS = -no-undefined -module -no-version
     45libgl_plugin_la_LIBADD = libcaca.la ../cucul/libcucul.la @GL_LIBS@
     46else
     47extra_drivers = driver_x11.c driver_gl.c
     48endif
     49
Note: See TracChangeset for help on using the changeset viewer.