bin_PROGRAMS = sim 
lib_LTLIBRARIES = libsim.la

SUBDIRS = png qzip

sim_SOURCES = sim.cpp \
 sim.rc

libsim_la_SOURCES = \
 aboutdata.cpp \
 ballonmsg.cpp \
 buffer.cpp \
 builtinlogger.cpp \
 cfg.cpp \
 cmddef.cpp \
 contacts.cpp \
 country.cpp \
 datepicker.cpp \
 editfile.cpp \
 exec.cpp \
 fetch.cpp \
 fontedit.cpp \
 icons.cpp \
 intedit.cpp \
 linklabel.cpp \
 listview.cpp \
 log.cpp \
 message.cpp \
 plugins.cpp \
 preview.cpp \
 qchildwidget.cpp \
 qcolorbutton.cpp \
 qkeybutton.cpp \
 sax.cpp \
 simapi.cpp \
 socket.cpp \
 sockfactory.cpp \
 sslclient.cpp \
 textshow.cpp \
 toolbtn.cpp \
 translit.cpp \
 unquot.cpp \
 xsl.cpp \
 html.ll

if QT_WIN
sim_rc.o: sim.rc
	windres -I$(srcdir)/.. sim.rc -o sim_rc.o
endif

sim_LDADD = $(SIM_RC_OBJ) libsim.la
sim_DEPENDENCIES = $(SIM_RC_OBJ)
libsim_la_LIBADD = qzip/libqzip.la $(LIB_QT) $(LIB_KDECORE) $(LIB_KDEUI) $(LIB_KFILE) $(EXTRA_LIBS) $(LIB_XML2) $(LIB_XSLT) $(LIBSSL)

EXTRA_DIST = \
	sim-kde.menu \
	sim.desktop \
	sim.cpp \
	icq.ico

dist-hook:
	cp $(srcdir)/*.h $(distdir)/

dist_desktop_DATA = sim.desktop
desktopdir=$(xdg_appsdir)/

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

METASOURCES = AUTO

# the library search path. 
sim_LDFLAGS = $(QT_LDFLAGS) $(KDE_RPATH) $(SSL_LDFLAGS) $(all_libraries)
libsim_la_LDFLAGS = $(QT_LDFLAGS) $(KDE_RPATH) $(SSL_LDFLAGS) $(all_libraries)


