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

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

Split import.c and export.c to create a new text.c codec file in order
to keep source files under 1,000 lines of code.

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