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

Last change on this file since 3588 was 3588, checked in by Sam Hocevar, 10 years ago

Start implementing a full <conio.h> replacement with a libcaca backend.

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