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

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

Support for platforms where shared libraries are not called *.so.

  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Makefile.am 2850 2008-09-29 21:16:52Z 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        caca0.c \
21        caca0.h \
22        canvas.c \
23        string.c \
24        legacy.c \
25        transform.c \
26        charset.c \
27        attr.c \
28        line.c \
29        box.c \
30        conic.c \
31        triangle.c \
32        frame.c \
33        dither.c \
34        font.c \
35        import.c \
36        export.c \
37        file.c \
38        figfont.c \
39        graphics.c \
40        event.c \
41        time.c \
42        driver_conio.c \
43        driver_ncurses.c \
44        driver_raw.c \
45        driver_slang.c \
46        driver_vga.c \
47        driver_win32.c \
48        $(cocoa_source) \
49        $(extra_source) \
50        $(NULL)
51libcaca_la_DEPENDENCIES = \
52        mono9.data \
53        monobold12.data \
54        $(NULL)
55libcaca_la_CPPFLAGS = $(AM_CPPFLAGS) @CACA_CFLAGS@ -D__LIBCACA__
56libcaca_la_LDFLAGS = -no-undefined -version-number @LT_VERSION@
57libcaca_la_LIBADD = @CACA_LIBS@ $(ZLIB_LIBS)
58
59install-exec-local:
60        $(mkinstalldirs) $(DESTDIR)$(libdir)
61        dllext=$$(grep dlname libcaca.la | cut -f2 -d.); \
62        ln -sf libcaca.$$dllext $(DESTDIR)$(libdir)/libcucul.$$dllext; \
63        ln -sf libcaca.$$dllext.0 $(DESTDIR)$(libdir)/libcucul.$$dllext.0
64
65install-data-local:
66        $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
67        ln -sf caca.pc $(DESTDIR)$(pkgconfigdir)/cucul.pc
68
69uninstall-local:
70        rm -f $(DESTDIR)$(libdir)/libcucul.so
71        rm -f $(DESTDIR)$(libdir)/libcucul.so.0
72        rm -f $(DESTDIR)$(libdir)/libcucul.sl
73        rm -f $(DESTDIR)$(libdir)/libcucul.sl.0
74        rm -f $(DESTDIR)$(libdir)/libcucul.dylib
75        rm -f $(DESTDIR)$(libdir)/libcucul.dylib.0
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.