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

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

Start working on profiling.

  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# $Id: Makefile.am 3905 2009-11-16 01:15:25Z 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        $(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; \
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; \
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
Note: See TracBrowser for help on using the repository browser.