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

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

Fix the libcucul symlink installation when /bin/sh points to bash or any
shell that doesn't look for sourced files in $PWD.

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