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

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

Large source code cleanup, getting rid of spaces, tabs, and svn keywords.

  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1
2EXTRA_DIST = caca_types.h.in caca.pc.in \
3             mono9.data monobold12.data \
4             libcaca.vcproj libcaca.def
5DISTCLEANFILES = caca_types.h caca.pc
6
7AM_CPPFLAGS = -I$(top_srcdir) -DPLUGINDIR=\"$(plugindir)\"
8
9pkgconfig_DATA = caca.pc
10pkgconfigdir = $(libdir)/pkgconfig
11
12include_HEADERS = caca.h caca_types.h caca_conio.h caca0.h
13
14lib_LTLIBRARIES = libcaca.la
15
16libcaca_la_SOURCES = \
17        caca.c \
18        caca.h \
19        caca_types.h \
20        caca_internals.h \
21        caca_debug.h \
22        caca_prof.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        prof.c \
48        $(codec_source) \
49        $(driver_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
59codec_source = \
60        codec/import.c \
61        codec/export.c \
62        codec/codec.h \
63        codec/text.c \
64        $(NULL)
65
66driver_source = \
67        driver/conio.c \
68        driver/ncurses.c \
69        driver/null.c \
70        driver/raw.c \
71        driver/slang.c \
72        driver/vga.c \
73        driver/win32.c \
74        $(NULL)
75
76install-exec-local:
77        $(mkinstalldirs) $(DESTDIR)$(libdir)
78        . ./libcaca.la || exit 1; \
79        for x in $$library_names; do \
80          ln -sf $$x $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
81        done
82        ln -sf libcaca.la $(DESTDIR)$(libdir)/libcucul.la
83
84install-data-local:
85        $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
86        ln -sf caca.pc $(DESTDIR)$(pkgconfigdir)/cucul.pc
87        $(mkinstalldirs) $(DESTDIR)$(includedir)
88        ln -sf caca.h $(DESTDIR)$(includedir)/cucul.h
89
90uninstall-local:
91        . ./libcaca.la || exit 1; \
92        for x in $$library_names; do \
93          rm -f $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
94        done
95        rm -f $(DESTDIR)$(libdir)/libcucul.la
96        rmdir $(DESTDIR)$(libdir) 2>/dev/null || true
97        rm -f $(DESTDIR)$(pkgconfigdir)/cucul.pc
98        rmdir $(DESTDIR)$(pkgconfigdir) 2>/dev/null || true
99        rm -f $(DESTDIR)$(includedir)/cucul.h
100
101if USE_PLUGINS
102plugin_LTLIBRARIES = libx11_plugin.la libgl_plugin.la
103plugindir = $(libdir)/caca
104
105libx11_plugin_la_SOURCES = driver/x11.c
106libx11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(X11_CFLAGS)
107libx11_plugin_la_LDFLAGS = -no-undefined -module -no-version
108libx11_plugin_la_LIBADD = libcaca.la $(X11_LIBS)
109
110libgl_plugin_la_SOURCES = driver/gl.c
111libgl_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(GL_CFLAGS) #$(FTGL_CFLAGS)
112libgl_plugin_la_LDFLAGS = -no-undefined -module -no-version
113libgl_plugin_la_LIBADD = libcaca.la $(GL_LIBS) #$(FTGL_LIBS)
114else
115driver_source += driver/x11.c driver/gl.c
116endif
117
118if USE_COCOA
119driver_source += driver/cocoa.m
120endif
121
122echo-sources: ; echo $(SOURCES)
123
Note: See TracBrowser for help on using the repository browser.