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

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

Add a null driver that does absolutely nothing.

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