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

Last change on this file since 2517 was 2517, checked in by Sam Hocevar, 11 years ago
  • Check for FTGL in the configure step, because we will use it later.
  • Better CFLAGS and LDFLAGS propagation to the Makefiles.
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Makefile.am 2517 2008-07-05 16:28:30Z sam $
2
3EXTRA_DIST = caca.pc.in
4DISTCLEANFILES = caca.pc
5
6AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul -I../cucul \
7              -DPLUGINDIR=\"$(plugindir)\"
8
9pkgconfig_DATA = caca.pc
10pkgconfigdir = $(libdir)/pkgconfig
11
12include_HEADERS = caca.h caca0.h
13
14lib_LTLIBRARIES = libcaca.la
15
16libcaca_la_SOURCES = \
17        caca.c \
18        caca.h \
19        caca_internals.h \
20        caca0.c \
21        caca0.h \
22        graphics.c \
23        event.c \
24        time.c \
25        driver_conio.c \
26        driver_ncurses.c \
27        driver_raw.c \
28        driver_slang.c \
29        driver_vga.c \
30        driver_win32.c \
31        $(cocoa_source) \
32        $(extra_source) \
33        $(NULL)
34libcaca_la_CPPFLAGS = $(AM_CPPFLAGS) @CACA_CFLAGS@
35libcaca_la_LDFLAGS = -no-undefined -version-number @LT_VERSION@
36libcaca_la_LIBADD = ../cucul/libcucul.la @CACA_LIBS@
37
38if USE_PLUGINS
39plugin_LTLIBRARIES = libx11_plugin.la libgl_plugin.la
40plugindir = $(libdir)/caca
41
42libx11_plugin_la_SOURCES = driver_x11.c
43libx11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(X11_CFLAGS)
44libx11_plugin_la_LDFLAGS = -no-undefined -module -no-version
45libx11_plugin_la_LIBADD = libcaca.la ../cucul/libcucul.la $(X11_LIBS)
46
47libgl_plugin_la_SOURCES = driver_gl.c
48libgl_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(GL_CFLAGS) #$(FTGL_CFLAGS)
49libgl_plugin_la_LDFLAGS = -no-undefined -module -no-version
50libgl_plugin_la_LIBADD = libcaca.la ../cucul/libcucul.la $(GL_LIBS) #$(FTGL_LIBS)
51else
52extra_source = driver_x11.c driver_gl.c
53endif
54
55if USE_COCOA
56cocoa_source = driver_cocoa.m
57endif
58
Note: See TracBrowser for help on using the repository browser.