SUBDIRS = pics

bin_PROGRAMS = kimagemapeditor
kde_module_LTLIBRARIES = libkimagemapeditor.la

METASOURCES = AUTO

noinst_LTLIBRARIES = libkimagemapeditorcommon.la

libkimagemapeditorcommon_la_SOURCES = \
    qextfileinfo.cpp \
    areacreator.cpp \
    kimearea.cpp \
    kimecommands.cpp \
    kimedialogs.cpp \
    kimagemapeditor.cpp \
    drawzone.cpp \
    arealistview.cpp \
    imageslistview.cpp \
    mapslistview.cpp 

CLEANFILES = dummy.cpp
libkimagemapeditor_la_SOURCES = \
    dummy.cpp

kimagemapeditor_SOURCES = \
    main.cpp \
    kimeshell.cpp 
    

noinst_HEADERS = \
	qextfileinfo.h \
	areacreator.h \
	kimearea.h \
	kimecommands.h \
	kimedialogs.h \
	kimagemapeditor.h \
	drawzone.h \
        kimeshell.h


libkimagemapeditor_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries) -ltdecore -ltdeui $(LIB_TQT) -lkjs -ltdefx -ltdeio -ltdeparts -lDCOP
libkimagemapeditor_la_LIBADD = libkimagemapeditorcommon.la $(LIB_TDEFILE) $(LIB_TDEPARTS) $(LIB_TDEHTML)

kimagemapeditor_LDFLAGS = $(all_libraries) $(KDE_RPATH) -ltdecore -ltdeui $(LIB_TQT) -lkjs -ltdefx -ltdeio -ltdeparts -lDCOP
kimagemapeditor_LDADD = libkimagemapeditorcommon.la $(LIB_TDEFILE) $(LIB_TDEPARTS) $(LIB_TDEHTML)

# set the include path for X, qt and KDE
INCLUDES= $(all_includes)

xdg_apps_DATA = kimagemapeditor.desktop

rcdir = $(kde_datadir)/kimagemapeditor
rc_DATA = kimagemapeditorui.rc \
          kimagemapeditorpartui.rc

kde_services_DATA = kimagemapeditorpart.desktop

messages: rc.cpp
	LIST=`find . -name \*.h -o -name \*.hh -o -name \*.H -o -name \*.hxx -o -name \*.hpp -o -name \*.cpp -o -name \*.cc -o -name \*.cxx -o -name \*.ecpp -o -name \*.C`; \
	if test -n "$$LIST"; then \
	 $(XGETTEXT) $$LIST -o $(podir)/kimagemapeditor.pot; \
	fi

dummy.cpp:
	echo > dummy.cpp
