Package list virt-viewer / debian/0.3.1-1 plugin / Makefile.am
debian/0.3.1-1

Tree @debian/0.3.1-1 (Download .tar.gz)

Makefile.am @debian/0.3.1-1raw · history · blame

if ENABLE_PLUGIN

plugindir       = $(libdir)/mozilla/plugins
plugin_LTLIBRARIES = virt-viewer-plugin.la

virt_viewer_plugin_la_SOURCES = \
	../src/util.c ../src/util.h \
	../src/auth.c ../src/auth.h \
	../src/viewer.c ../src/viewer.h \
	../src/events.c ../src/events.h \
	virt-viewer-plugin.c virt-viewer-plugin.h \
	npshell.c npunix.c
virt_viewer_plugin_la_LIBADD = \
	@FIREFOX_PLUGIN_LIBS@ \
	@GTKVNC_LIBS@ \
	@GTK2_LIBS@ \
	@LIBXML2_LIBS@ \
	@LIBGLADE2_LIBS@ \
	@LIBVIRT_LIBS@
virt_viewer_plugin_la_LDFLAGS = \
	-module -avoid-version
virt_viewer_plugin_la_CFLAGS = \
	-DPLUGIN=1 -DENABLE_DEBUG=1 \
	@FIREFOX_PLUGIN_CFLAGS@ \
	@GTKVNC_CFLAGS@ \
	@GTK2_CFLAGS@ \
	@LIBXML2_CFLAGS@ \
	@LIBGLADE2_CFLAGS@ \
	@LIBVIRT_CFLAGS@ \
	-DGLADE_DIR="\"$(gladedir)\"" \
	-I$(top_srcdir)/src

all-local: virt-viewer-plugin.so

virt-viewer-plugin.so: virt-viewer-plugin.la
	cp .libs/virt-viewer-plugin.so $@

# Only leave the .so file in the plugins directory.
install-data-hook:
	rm -f $(DESTDIR)$(plugindir)/virt-viewer-plugin.a $(DESTDIR)$(plugindir)/virt-viewer-plugin.la

CLEANFILES = virt-viewer-plugin.so

endif