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

Last change on this file since 3470 was 3470, checked in by Sam Hocevar, 11 years ago

Change the dirty rectangle API so that it can handle several rectangles. The
inner implementation still only handles one dirty rectangle, but this way
we can prepare supporting applictions for the future.

  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Makefile.am 3470 2009-05-19 00:51:47Z 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        $(NULL)
59
60driver_source = \
61        driver/conio.c \
62        driver/ncurses.c \
63        driver/raw.c \
64        driver/slang.c \
65        driver/vga.c \
66        driver/win32.c \
67        $(NULL)
68
69install-exec-local:
70        $(mkinstalldirs) $(DESTDIR)$(libdir)
71        . libcaca.la; \
72        for x in $$library_names; do \
73          ln -sf $$x $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
74        done
75        ln -sf libcaca.la $(DESTDIR)$(libdir)/libcucul.la
76
77install-data-local:
78        $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
79        ln -sf caca.pc $(DESTDIR)$(pkgconfigdir)/cucul.pc
80        $(mkinstalldirs) $(DESTDIR)$(includedir)
81        ln -sf caca.h $(DESTDIR)$(includedir)/cucul.h
82
83uninstall-local:
84        . libcaca.la; \
85        for x in $$library_names; do \
86          rm -f $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
87        done
88        rm -f $(DESTDIR)$(libdir)/libcucul.la
89        rmdir $(DESTDIR)$(libdir) 2>/dev/null || true
90        rm -f $(DESTDIR)$(pkgconfigdir)/cucul.pc
91        rmdir $(DESTDIR)$(pkgconfigdir) 2>/dev/null || true
92        rm -f $(DESTDIR)$(includedir)/cucul.h
93
94if USE_PLUGINS
95plugin_LTLIBRARIES = libx11_plugin.la libgl_plugin.la
96plugindir = $(libdir)/caca
97
98libx11_plugin_la_SOURCES = driver/x11.c
99libx11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(X11_CFLAGS)
100libx11_plugin_la_LDFLAGS = -no-undefined -module -no-version
101libx11_plugin_la_LIBADD = libcaca.la $(X11_LIBS)
102
103libgl_plugin_la_SOURCES = driver/gl.c
104libgl_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(GL_CFLAGS) #$(FTGL_CFLAGS)
105libgl_plugin_la_LDFLAGS = -no-undefined -module -no-version
106libgl_plugin_la_LIBADD = libcaca.la $(GL_LIBS) #$(FTGL_LIBS)
107else
108driver_source += driver/x11.c driver/gl.c
109endif
110
111if USE_COCOA
112driver_source += driver/cocoa.m
113endif
114
Note: See TracBrowser for help on using the repository browser.