2009-02-24 11:44:30 -05:00
|
|
|
noinst_LTLIBRARIES =
|
|
|
|
|
|
|
|
build_shared_libs =
|
2008-11-07 14:32:28 -05:00
|
|
|
|
2008-11-24 10:44:16 -05:00
|
|
|
if HAVE_LIBDL
|
|
|
|
|
2009-02-24 11:44:30 -05:00
|
|
|
noinst_LTLIBRARIES += libdisable-npots-static.la
|
|
|
|
|
|
|
|
build_shared_libs += libdisable-npots.la
|
2008-11-24 10:44:16 -05:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
2009-02-24 11:44:30 -05:00
|
|
|
libdisable_npots_static_la_SOURCES = disable-npots.c
|
2008-11-24 10:44:16 -05:00
|
|
|
|
2009-02-24 11:44:30 -05:00
|
|
|
libdisable_npots_static_la_LIBADD = -ldl
|
2008-11-24 10:44:16 -05:00
|
|
|
|
2009-01-05 12:05:30 -05:00
|
|
|
INCLUDES = \
|
|
|
|
-I$(top_srcdir)/clutter \
|
|
|
|
-I$(top_builddir)/clutter \
|
|
|
|
$(CLUTTER_CFLAGS) \
|
|
|
|
-D_GNU_SOURCE
|
|
|
|
|
2009-02-24 11:44:30 -05:00
|
|
|
all-local : disable-npots.sh $(build_shared_libs)
|
2008-11-24 10:44:16 -05:00
|
|
|
|
|
|
|
clean-local :
|
2009-02-24 11:44:30 -05:00
|
|
|
rm -f disable-npots.sh libdisable-npots.la
|
2008-11-24 10:44:16 -05:00
|
|
|
|
|
|
|
disable-npots.sh : $(top_builddir)/tests/tools/disable-npots.sh.in
|
|
|
|
sed 's|--builddir--|'`cd '$(top_builddir)' && pwd`'|' < $< > $@ && \
|
|
|
|
chmod 755 disable-npots.sh
|
|
|
|
|
2009-02-24 11:44:30 -05:00
|
|
|
# Also put the static library into a shared library. We need to do
|
|
|
|
# this without the automake magic because we don't want it to get
|
|
|
|
# installed
|
|
|
|
libdisable-npots.la : libdisable-npots-static.la
|
|
|
|
$(LINK) -ldl -rpath /nowhere libdisable-npots-static.la
|
|
|
|
|
2008-11-24 10:44:16 -05:00
|
|
|
EXTRA_DIST = README disable-npots.sh.in
|