######################################################################
-# Version $Id: bat.pro 4588 2007-04-22 01:50:10Z bartleyd2 $
+# Version $Id$
#
# !!!!!!! IMPORTANT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#
#
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#
-CONFIG += qt debug
+CONFIG += qt debug @QWT@
bins.path = /$(DESTDIR)@sbindir@
-bins.files = ./bat
+bins.files = bat
confs.path = /$(DESTDIR)@sysconfdir@
confs.commands = ./install_conf_file
-
-TEMPLATE = app
-TARGET = bat
-DEPENDPATH += .
-INCLUDEPATH += . ./console ./restore ./select
-INCLUDEPATH += ..
-LIBS += -L../lib
-LIBS += -lbac
-LIBS += -lssl -lcrypto
-RESOURCES = main.qrc
-MOC_DIR = moc
-OBJECTS_DIR = obj
-UI_DIR = ui
+help.path = /$(DESTDIR)@htmldir@
+help.files = help/*.html images/status.png images/mail-message-new.png
+
+TEMPLATE = app
+TARGET = bat
+DEPENDPATH += .
+INCLUDEPATH += .. . ./console ./restore ./select
+LIBS += -L../lib -lbaccfg -lbac @OPENSSL_LIBS@
+LIBTOOL_LINK = @QMAKE_LIBTOOL@ --silent --tag=CXX --mode=link
+LIBTOOL_INSTALL = @QMAKE_LIBTOOL@ --silent --mode=install
+QMAKE_LINK = $${LIBTOOL_LINK} $(CXX)
+QMAKE_INSTALL_PROGRAM = $${LIBTOOL_INSTALL} install -m 0754 -p
+QMAKE_CLEAN += .libs/* bat
+
+qwt {
+ INCLUDEPATH += @QWT_INC@
+ LIBS += @QWT_LDFLAGS@ @QWT_LIB@
+}
+
+RESOURCES = main.qrc
+MOC_DIR = moc
+OBJECTS_DIR = obj
+UI_DIR = ui
# Main window
FORMS += main.ui
FORMS += mount/mount.ui
FORMS += console/console.ui
FORMS += restore/restore.ui restore/prerestore.ui restore/brestore.ui
-FORMS += run/run.ui run/runcmd.ui run/estimate.ui
+FORMS += restore/restoretree.ui
+FORMS += run/run.ui run/runcmd.ui run/estimate.ui run/prune.ui
FORMS += select/select.ui
FORMS += medialist/medialist.ui mediaedit/mediaedit.ui joblist/joblist.ui
FORMS += clients/clients.ui storage/storage.ui fileset/fileset.ui
-FORMS += joblog/joblog.ui
+FORMS += joblog/joblog.ui jobs/jobs.ui
FORMS += help/help.ui
+FORMS += status/dirstat.ui
+FORMS += status/clientstat.ui
+FORMS += status/storstat.ui
+qwt {
+ FORMS += jobgraphs/jobplotcontrols.ui
+}
+
+# Main directory
+HEADERS += mainwin.h bat.h bat_conf.h qstd.h pages.h
+SOURCES += main.cpp bat_conf.cpp mainwin.cpp qstd.cpp pages.cpp
-HEADERS += mainwin.h bat.h bat_conf.h qstd.h
-SOURCES += main.cpp bat_conf.cpp mainwin.cpp qstd.cpp
+# bcomm
+HEADERS += bcomm/dircomm.h
+SOURCES += bcomm/dircomm.cpp bcomm/dircomm_auth.cpp
# Console
HEADERS += console/console.h
-SOURCES += console/authenticate.cpp console/console.cpp
+SOURCES += console/console.cpp
# Restore
HEADERS += restore/restore.h
# Run dialog
HEADERS += run/run.h
-SOURCES += run/run.cpp run/runcmd.cpp run/estimate.cpp
+SOURCES += run/run.cpp run/runcmd.cpp run/estimate.cpp run/prune.cpp
# Select dialog
HEADERS += select/select.h
SOURCES += select/select.cpp
-## Pages
-HEADERS += pages.h
-SOURCES += pages.cpp
-
## MediaList
HEADERS += medialist/medialist.h
SOURCES += medialist/medialist.cpp
HEADERS += joblog/joblog.h
SOURCES += joblog/joblog.cpp
+## Jobs
+HEADERS += jobs/jobs.h
+SOURCES += jobs/jobs.cpp
+
+## RestoreTree
+HEADERS += restore/restoretree.h
+SOURCES += restore/restoretree.cpp
+
+## Job Step Graphs
+qwt {
+ HEADERS += jobgraphs/jobplot.h
+ SOURCES += jobgraphs/jobplot.cpp
+}
+
# Help dialog
HEADERS += help/help.h
SOURCES += help/help.cpp
-INSTALLS += bins
-INSTALLS += confs
+## Status Dir
+HEADERS += status/dirstat.h
+SOURCES += status/dirstat.cpp
+
+## Status Client
+HEADERS += status/clientstat.h
+SOURCES += status/clientstat.cpp
+
+## Status Client
+HEADERS += status/storstat.h
+SOURCES += status/storstat.cpp
+
+# Utility sources
+HEADERS += util/fmtwidgetitem.h util/comboutil.h
+SOURCES += util/fmtwidgetitem.cpp util/comboutil.cpp
+
+INSTALLS = bins confs help
QMAKE_EXTRA_TARGETS += depend
+
+TRANSLATIONS += ts/bat_fr.ts ts/bat_de.ts