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

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

Reorganise MSVC files so that each project is with its source code.

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