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

Last change on this file since 2854 was 2854, checked in by Sam Hocevar, 12 years ago

Fix for the libcucul symlinks installation, courtesy of Ben Wiley Sittler.

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