Add/fix vim modelines for automake stuff.
[monky] / lua / Makefile.am
1 # Conky, a system monitor, based on torsmo
2 #
3 # Please see COPYING for details
4 #
5 # Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
6 # All rights reserved.
7 #
8 # This program is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 #
20
21 libimlib2_la_SOURCES = imlib2.c
22 libcairo_la_SOURCES = cairo.c
23
24 EXTRA_DIST = \
25                          cairo.pkg \
26                          imlib2.pkg
27
28 clean-am: clean-generic mostlyclean-am
29         rm -f $(libimlib2_la_SOURCES)
30         rm -f $(libcairo_la_SOURCES)
31         rm -f *.la *.so
32
33 if BUILD_LUA 
34
35 if BUILD_LUA_CAIRO
36 libcairo = libcairo.la
37
38 libcairo_la_CFLAGS = $(cairo_CFLAGS) $(cairo_xlib_CFLAGS) -I$(prefix)/include/lua5.1
39 libcairo_la_LIBADD = $(cairo_LIBS) $(cairo_xlib_LIBS) $(tolua_LIBS)
40
41 cairo.c: cairo.pkg
42         ${toluapp} -n cairo -o cairo.c $(srcdir)/cairo.pkg
43
44 endif # BUILD_LUA_CAIRO
45
46 if BUILD_LUA_IMLIB2
47
48 libimlib2 = libimlib2.la
49
50 libimlib2_la_CFLAGS = $(Imlib2_CFLAGS) -I$(prefix)/include/lua5.1
51 libimlib2_la_LIBADD = $(Imlib2_LIBS) $(tolua_LIBS)
52
53 imlib2.c: imlib2.pkg
54         ${toluapp} -n imlib2 -o imlib2.c $(srcdir)/imlib2.pkg
55
56 endif # BUILD_LUA_IMLIB2
57 pkglib_LTLIBRARIES = $(libcairo) $(libimlib2)
58
59 endif # BUILD_LUA
60
61 # vi:set ts=4 sw=4 noet ai nocindent syntax=automake: