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

Last change on this file since 4686 was 4686, checked in by sam, 4 years ago

Get rid of the build time generated caca_types.h. It sucked.

  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1
2EXTRA_DIST = caca.pc.in \
3             mono9.data monobold12.data \
4             libcaca.vcproj libcaca.def
5DISTCLEANFILES = 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        getopt.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) $(GETOPT_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.