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

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

Move debugging methods to caca_debug.h.

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