
if include_TIFF_MODULES
KIMGIO_TIFF_MODULES=kimg_tiff.la # kimg_g3.la
KIMGIO_TIFF_DATAFILES=tiff.kimgio # g3.kimgio
endif

kde_module_LTLIBRARIES= kimg_eps.la kimg_xview.la kimg_krl.la \
	         $(KIMGIO_TIFF_MODULES) kimg_ico.la

KIMGIO_PLUGIN = -avoid-version -export-symbols-regex 'kimgio_.*_(read|write)'

kimg_tiff_la_SOURCES = tiffr.cpp
kimg_tiff_la_LDFLAGS = -module $(KIMGIO_PLUGIN) -no-undefined $(all_libraries)
kimg_tiff_la_LIBADD = $(LIBTIFF) $(LIB_QT)

#kimg_g3_la_SOURCES = g3r.cpp
#kimg_g3_la_LDFLAGS = -module $(USER_LDFLAGS) $(KIMGIO_PLUGIN) -no-undefined
#kimg_g3_la_LIBADD = $(LIBTIFF)   

kimg_xview_la_SOURCES = xview.cpp
kimg_xview_la_LDFLAGS = -module $(KIMGIO_PLUGIN) -no-undefined $(all_libraries)
kimg_xview_la_LIBADD  = $(LIB_QT)

kimg_krl_la_SOURCES = krl.cpp
kimg_krl_la_LDFLAGS = -module $(KIMGIO_PLUGIN) -no-undefined $(all_libraries)
kimg_krl_la_LIBADD  = $(LIB_QT)

kimg_eps_la_SOURCES = eps.cpp
kimg_eps_la_LDFLAGS = -module $(KIMGIO_PLUGIN) -no-undefined $(all_libraries)
kimg_eps_la_LIBADD  = $(LIB_KDECORE)

kimg_ico_la_SOURCES = ico.cpp
kimg_ico_la_LDFLAGS = -module $(KIMGIO_PLUGIN) -no-undefined $(all_libraries)
kimg_ico_la_LIBADD  = $(LIB_QT)

noinst_HEADERS= xview.h eps.h tiffr.h krl.h g3r.h ico.h

INCLUDES = -I$(top_srcdir)/kio -I$(top_srcdir)/dcop -I$(top_srcdir)/libltdl $(all_includes)

EXTRA_DIST = netpbm.cpp netpbm.h

servicedir = $(kde_servicesdir)
service_DATA = png.kimgio xpm.kimgio bmp.kimgio gif.kimgio pbm.kimgio pgm.kimgio ppm.kimgio \
	       xbm.kimgio jpeg.kimgio xv.kimgio krl.kimgio eps.kimgio \
               $(KIMGIO_TIFF_DATAFILES) ico.kimgio
