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

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

End of the libcucul merge: add symbolic links where appropriate.

  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Makefile.am 2831 2008-09-27 17:56:49Z 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-local:
60        $(mkinstalldirs) $(DESTDIR)$(libdir)
61        ln -sf libcaca.so $(DESTDIR)$(libdir)/libcucul.so
62        ln -sf libcaca.so.0 $(DESTDIR)$(libdir)/libcucul.so.0
63
64install-data-local:
65        $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
66        ln -sf caca.pc $(DESTDIR)$(pkgconfigdir)/cucul.pc
67
68uninstall-local:
69        rm -f $(DESTDIR)$(libdir)/libcucul.so
70        rm -f $(DESTDIR)$(libdir)/libcucul.so.0
71        rmdir $(DESTDIR)$(libdir) 2>/dev/null || true
72        rm -f $(DESTDIR)$(pkgconfigdir)/cucul.pc
73        rmdir $(DESTDIR)$(pkgconfigdir) 2>/dev/null || true
74
75if USE_PLUGINS
76plugin_LTLIBRARIES = libx11_plugin.la libgl_plugin.la
77plugindir = $(libdir)/caca
78
79libx11_plugin_la_SOURCES = driver_x11.c
80libx11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(X11_CFLAGS)
81libx11_plugin_la_LDFLAGS = -no-undefined -module -no-version
82libx11_plugin_la_LIBADD = libcaca.la $(X11_LIBS)
83
84libgl_plugin_la_SOURCES = driver_gl.c
85libgl_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(GL_CFLAGS) #$(FTGL_CFLAGS)
86libgl_plugin_la_LDFLAGS = -no-undefined -module -no-version
87libgl_plugin_la_LIBADD = libcaca.la $(GL_LIBS) #$(FTGL_LIBS)
88else
89extra_source = driver_x11.c driver_gl.c
90endif
91
92if USE_COCOA
93cocoa_source = driver_cocoa.m
94endif
95
Note: See TracBrowser for help on using the repository browser.