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

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

Move stubs.h to caca/caca_stubs.h since it's only used by the library.

  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Makefile.am 2896 2008-10-07 16:06:08Z sam $
2
3EXTRA_DIST = caca_types.h.in caca.pc.in mono9.data monobold12.data
4DISTCLEANFILES = caca_types.h caca.pc
5
6AM_CPPFLAGS = -I$(top_srcdir) -DPLUGINDIR=\"$(plugindir)\"
7
8pkgconfig_DATA = caca.pc
9pkgconfigdir = $(libdir)/pkgconfig
10
11include_HEADERS = caca.h caca_types.h caca0.h
12
13lib_LTLIBRARIES = libcaca.la
14
15libcaca_la_SOURCES = \
16        caca.c \
17        caca.h \
18        caca_types.h \
19        caca_internals.h \
20        caca_stubs.h \
21        caca0.c \
22        caca0.h \
23        canvas.c \
24        string.c \
25        legacy.c \
26        transform.c \
27        charset.c \
28        attr.c \
29        line.c \
30        box.c \
31        conic.c \
32        triangle.c \
33        frame.c \
34        dither.c \
35        font.c \
36        import.c \
37        export.c \
38        file.c \
39        figfont.c \
40        graphics.c \
41        event.c \
42        time.c \
43        driver_conio.c \
44        driver_ncurses.c \
45        driver_raw.c \
46        driver_slang.c \
47        driver_vga.c \
48        driver_win32.c \
49        $(cocoa_source) \
50        $(extra_source) \
51        $(NULL)
52libcaca_la_DEPENDENCIES = \
53        mono9.data \
54        monobold12.data \
55        $(NULL)
56libcaca_la_CPPFLAGS = $(AM_CPPFLAGS) @CACA_CFLAGS@ -D__LIBCACA__
57libcaca_la_LDFLAGS = -no-undefined -version-number @LT_VERSION@
58libcaca_la_LIBADD = @CACA_LIBS@ $(ZLIB_LIBS)
59
60install-exec-local:
61        $(mkinstalldirs) $(DESTDIR)$(libdir)
62        . libcaca.la; \
63        for x in $$library_names; do \
64          ln -sf $$x $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
65        done
66
67install-data-local:
68        $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
69        ln -sf caca.pc $(DESTDIR)$(pkgconfigdir)/cucul.pc
70
71uninstall-local:
72        . libcaca.la; \
73        for x in $$library_names; do \
74          rm -f $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
75        done
76        rmdir $(DESTDIR)$(libdir) 2>/dev/null || true
77        rm -f $(DESTDIR)$(pkgconfigdir)/cucul.pc
78        rmdir $(DESTDIR)$(pkgconfigdir) 2>/dev/null || true
79
80if USE_PLUGINS
81plugin_LTLIBRARIES = libx11_plugin.la libgl_plugin.la
82plugindir = $(libdir)/caca
83
84libx11_plugin_la_SOURCES = driver_x11.c
85libx11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(X11_CFLAGS)
86libx11_plugin_la_LDFLAGS = -no-undefined -module -no-version
87libx11_plugin_la_LIBADD = libcaca.la $(X11_LIBS)
88
89libgl_plugin_la_SOURCES = driver_gl.c
90libgl_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(GL_CFLAGS) #$(FTGL_CFLAGS)
91libgl_plugin_la_LDFLAGS = -no-undefined -module -no-version
92libgl_plugin_la_LIBADD = libcaca.la $(GL_LIBS) #$(FTGL_LIBS)
93else
94extra_source = driver_x11.c driver_gl.c
95endif
96
97if USE_COCOA
98cocoa_source = driver_cocoa.m
99endif
100
Note: See TracBrowser for help on using the repository browser.