fix out-of-tree builds
[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 clean-am: clean-generic mostlyclean-am
25         rm -f $(libimlib2_la_SOURCES)
26         rm -f $(libcairo_la_SOURCES)
27         rm -f *.la *.so
28
29 if BUILD_LUA 
30
31 if BUILD_LUA_CAIRO
32 libcairo = libcairo.la
33
34 libcairo_la_CFLAGS = $(cairo_CFLAGS) $(cairo_xlib_CFLAGS)
35 libcairo_la_LIBADD = $(cairo_LIBS) $(cairo_xlib_LIBS) -ltolua++
36
37 cairo.c: cairo.pkg
38         ${toluapp} -n cairo -o cairo.c $(srcdir)/cairo.pkg
39
40 endif # BUILD_LUA_CAIRO
41
42 if BUILD_LUA_IMLIB2
43
44 libimlib2 = libimlib2.la
45
46 libimlib2_la_CFLAGS = $(Imlib2_CFLAGS)
47 libimlib2_la_LIBADD = $(Imlib2_LIBS) -ltolua++
48
49 imlib2.c: imlib2.pkg
50         ${toluapp} -n imlib2 -o imlib2.c $(srcdir)/imlib2.pkg
51
52 endif # BUILD_LUA_IMLIB2
53 pkglib_LTLIBRARIES = $(libcairo) $(libimlib2)
54
55 endif # BUILD_LUA
56