source: libcaca/trunk/caca/Makefile.am @ 2830

Last change on this file since 2830 was 2830, checked in by Sam Hocevar, 11 years ago

caca, cxx: install symlinks for backwards compatibility with libcucul.

  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Makefile.am 2830 2008-09-27 17:56:43Z sam $
2
3EXTRA_DIST = caca_types.h.in caca.pc.in mono9.data monobold12.data
4DISTCLEANFILES = caca_types.h caca.pc
5
6AM_CPPFLAGS = -I$(top_srcdir) -DPLUGINDIR=\"$(plugindir)\"
7
8pkgconfig_DATA = caca.pc
9pkgconfigdir = $(libdir)/pkgconfig
10
11include_HEADERS = caca.h caca_types.h caca0.h
12
13lib_LTLIBRARIES = libcaca.la
14
15libcaca_la_SOURCES = \
16        caca.c \
17        caca.h \
18        caca_types.h \
19        caca_internals.h \
20        caca0.c \
21        caca0.h \
22        canvas.c \
23        string.c \
24        legacy.c \
25        transform.c \
26        charset.c \
27        attr.c \
28        line.c \
29        box.c \
30        conic.c \
31        triangle.c \
32        frame.c \
33        dither.c \
34        font.c \
35        import.c \
36        export.c \
37        file.c \
38        figfont.c \
39        graphics.c \
40        event.c \
41        time.c \
42        driver_conio.c \
43        driver_ncurses.c \
44        driver_raw.c \
45        driver_slang.c \
46        driver_vga.c \
47        driver_win32.c \
48        $(cocoa_source) \
49        $(extra_source) \
50        $(NULL)
51libcaca_la_DEPENDENCIES = \
52        mono9.data \
53        monobold12.data \
54        $(NULL)
55libcaca_la_CPPFLAGS = $(AM_CPPFLAGS) @CACA_CFLAGS@ -D__LIBCACA__
56libcaca_la_LDFLAGS = -no-undefined -version-number @LT_VERSION@
57libcaca_la_LIBADD = @CACA_LIBS@ $(ZLIB_LIBS)
58
59install-exec-hook:
60        ln -sf libcaca.so $(DESTDIR)$(libdir)/libcucul.so
61        ln -sf libcaca.so.0 $(DESTDIR)$(libdir)/libcucul.so.0
62
63uninstall-hook:
64        rm -f $(DESTDIR)$(libdir)/libcucul.so
65        rm -f $(DESTDIR)$(libdir)/libcucul.so.0
66
67if USE_PLUGINS
68plugin_LTLIBRARIES = libx11_plugin.la libgl_plugin.la
69plugindir = $(libdir)/caca
70
71libx11_plugin_la_SOURCES = driver_x11.c
72libx11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(X11_CFLAGS)
73libx11_plugin_la_LDFLAGS = -no-undefined -module -no-version
74libx11_plugin_la_LIBADD = libcaca.la $(X11_LIBS)
75
76libgl_plugin_la_SOURCES = driver_gl.c
77libgl_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(GL_CFLAGS) #$(FTGL_CFLAGS)
78libgl_plugin_la_LDFLAGS = -no-undefined -module -no-version
79libgl_plugin_la_LIBADD = libcaca.la $(GL_LIBS) #$(FTGL_LIBS)
80else
81extra_source = driver_x11.c driver_gl.c
82endif
83
84if USE_COCOA
85cocoa_source = driver_cocoa.m
86endif
87
Note: See TracBrowser for help on using the repository browser.