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

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

libcaca: move codecs and import/export functions into subdirectories.

  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Makefile.am 2962 2008-10-18 11:07:05Z sam $
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
75install-data-local:
76        $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
77        ln -sf caca.pc $(DESTDIR)$(pkgconfigdir)/cucul.pc
78
79uninstall-local:
80        . libcaca.la; \
81        for x in $$library_names; do \
82          rm -f $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
83        done
84        rmdir $(DESTDIR)$(libdir) 2>/dev/null || true
85        rm -f $(DESTDIR)$(pkgconfigdir)/cucul.pc
86        rmdir $(DESTDIR)$(pkgconfigdir) 2>/dev/null || true
87
88if USE_PLUGINS
89plugin_LTLIBRARIES = libx11_plugin.la libgl_plugin.la
90plugindir = $(libdir)/caca
91
92libx11_plugin_la_SOURCES = driver/x11.c
93libx11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(X11_CFLAGS)
94libx11_plugin_la_LDFLAGS = -no-undefined -module -no-version
95libx11_plugin_la_LIBADD = libcaca.la $(X11_LIBS)
96
97libgl_plugin_la_SOURCES = driver/gl.c
98libgl_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(GL_CFLAGS) #$(FTGL_CFLAGS)
99libgl_plugin_la_LDFLAGS = -no-undefined -module -no-version
100libgl_plugin_la_LIBADD = libcaca.la $(GL_LIBS) #$(FTGL_LIBS)
101else
102driver_source += driver/x11.c driver/gl.c
103endif
104
105if USE_COCOA
106driver_source += driver/cocoa.m
107endif
108
Note: See TracBrowser for help on using the repository browser.