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

Last change on this file since 3323 was 3323, checked in by sam, 6 years ago

Create a libcucul.la symlink for distributions such as Gentoo which may
rely on .la files for library dependencies.

  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id$
2
3EXTRA_DIST = caca_types.h.in caca.pc.in \
4             mono9.data monobold12.data \
5             libcaca.vcproj libcaca.def
6DISTCLEANFILES = caca_types.h caca.pc
7
8AM_CPPFLAGS = -I$(top_srcdir) -DPLUGINDIR=\"$(plugindir)\"
9
10pkgconfig_DATA = caca.pc
11pkgconfigdir = $(libdir)/pkgconfig
12
13include_HEADERS = caca.h caca_types.h caca0.h
14
15lib_LTLIBRARIES = libcaca.la
16
17libcaca_la_SOURCES = \
18        caca.c \
19        caca.h \
20        caca_types.h \
21        caca_internals.h \
22        caca_stubs.h \
23        caca0.c \
24        caca0.h \
25        canvas.c \
26        string.c \
27        legacy.c \
28        transform.c \
29        charset.c \
30        attr.c \
31        line.c \
32        box.c \
33        conic.c \
34        triangle.c \
35        frame.c \
36        dither.c \
37        font.c \
38        file.c \
39        figfont.c \
40        graphics.c \
41        event.c \
42        time.c \
43        $(codec_source) \
44        $(driver_source) \
45        $(NULL)
46libcaca_la_DEPENDENCIES = \
47        mono9.data \
48        monobold12.data \
49        $(NULL)
50libcaca_la_CPPFLAGS = $(AM_CPPFLAGS) @CACA_CFLAGS@ -D__LIBCACA__
51libcaca_la_LDFLAGS = -no-undefined -version-number @LT_VERSION@
52libcaca_la_LIBADD = @CACA_LIBS@ $(ZLIB_LIBS)
53
54codec_source = \
55        codec/import.c \
56        codec/export.c \
57        $(NULL)
58
59driver_source = \
60        driver/conio.c \
61        driver/ncurses.c \
62        driver/raw.c \
63        driver/slang.c \
64        driver/vga.c \
65        driver/win32.c \
66        $(NULL)
67
68install-exec-local:
69        $(mkinstalldirs) $(DESTDIR)$(libdir)
70        . libcaca.la; \
71        for x in $$library_names; do \
72          ln -sf $$x $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
73        done
74        ln -sf libcaca.la $(DESTDIR)$(libdir)/libcucul.la
75
76install-data-local:
77        $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
78        ln -sf caca.pc $(DESTDIR)$(pkgconfigdir)/cucul.pc
79        $(mkinstalldirs) $(DESTDIR)$(includedir)
80        ln -sf caca.h $(DESTDIR)$(includedir)/cucul.h
81
82uninstall-local:
83        . libcaca.la; \
84        for x in $$library_names; do \
85          rm -f $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
86        done
87        rm -f $(DESTDIR)$(libdir)/libcucul.la
88        rmdir $(DESTDIR)$(libdir) 2>/dev/null || true
89        rm -f $(DESTDIR)$(pkgconfigdir)/cucul.pc
90        rmdir $(DESTDIR)$(pkgconfigdir) 2>/dev/null || true
91        rm -f $(DESTDIR)$(includedir)/cucul.h
92
93if USE_PLUGINS
94plugin_LTLIBRARIES = libx11_plugin.la libgl_plugin.la
95plugindir = $(libdir)/caca
96
97libx11_plugin_la_SOURCES = driver/x11.c
98libx11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(X11_CFLAGS)
99libx11_plugin_la_LDFLAGS = -no-undefined -module -no-version
100libx11_plugin_la_LIBADD = libcaca.la $(X11_LIBS)
101
102libgl_plugin_la_SOURCES = driver/gl.c
103libgl_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(GL_CFLAGS) #$(FTGL_CFLAGS)
104libgl_plugin_la_LDFLAGS = -no-undefined -module -no-version
105libgl_plugin_la_LIBADD = libcaca.la $(GL_LIBS) #$(FTGL_LIBS)
106else
107driver_source += driver/x11.c driver/gl.c
108endif
109
110if USE_COCOA
111driver_source += driver/cocoa.m
112endif
113
Note: See TracBrowser for help on using the repository browser.