-# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
#
-# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
-# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+
# MED MEDGUI : MED component GUI implemetation
#
include $(top_srcdir)/adm_local/unix/make_common_starter.am
# Libraries targets
-lib_LTLIBRARIES= libMED.la
-dist_libMED_la_SOURCES = MedGUI_Selection.h MedGUI.h MedGUI.cxx MedGUI_Selection.cxx
-MOC_FILES= MedGUI_moc.cxx
-nodist_libMED_la_SOURCES= $(MOC_FILES)
+lib_LTLIBRARIES= libMEDGUI.la
+
+UIC_FILES = ui_MEDGUIFileContentDial.h ui_MEDGUISelectComponents.h
+
+BUILT_SOURCES = $(UIC_FILES)
+
+EXTRA_DIST+= MEDGUIFileContentDial.ui MEDGUISelectComponents.ui
+
+dist_libMEDGUI_la_SOURCES = MEDGUIFileContentDial.h MEDGUISelection.hxx \
+ MEDGUI.h MEDGUI.cxx MEDGUIFileContentDial.cxx MEDGUISelection.cxx \
+ MEDGUISelectComponents.h MEDGUISelectComponents.cxx MEDGUIDataBaseDockWidget.hxx \
+ MEDGUIDataBaseDockWidget.cxx
+
+MOC_FILES= MEDGUI_moc.cxx MEDGUIFileContentDial_moc.cxx MEDGUISelectComponents_moc.cxx
+
+ui_%.h: %.ui
+ ${QTDIR}/bin/uic $< -o $@
+
+.hxx_moc.cxx :
+ ${QTDIR}/bin/moc -p . -o $@ $<
+
+%_moc.cxx: %.hxx
+ ${QTDIR}/bin/moc $< -o $@
+
+.qrc_qrc.cxx :
+ ${QTDIR}/bin/rcc -name $(*F) $< -o $@
+
+clean-local-qt :
+ rm -f *_moc.cxx *_qrc.cxx ui_*.h
+
+clean-local: clean-local-qt
+
+# End Of Qt Part
+
+nodist_libMEDGUI_la_SOURCES= $(MOC_FILES)
-libMED_la_CPPFLAGS= $(QT_INCLUDES) $(VTK_INCLUDES) @CAS_CPPFLAGS@ $(PYTHON_INCLUDES) \
- ${KERNEL_CXXFLAGS} ${GUI_CXXFLAGS} ${BOOST_CPPFLAGS} \
+libMEDGUI_la_CPPFLAGS= $(QT_INCLUDES) $(VTK_INCLUDES) @CAS_CPPFLAGS@ $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) \
+ ${KERNEL_CXXFLAGS} ${GUI_CXXFLAGS} \
@CORBA_INCLUDES@ @CORBA_CXXFLAGS@ \
- -I$(top_builddir)/idl -I$(top_builddir)/salome_adm/unix
+ -I$(top_builddir) -I$(top_builddir)/idl -I$(srcdir)/../MEDCoupling -I$(srcdir)/../INTERP_KERNEL -I$(srcdir)/../INTERP_KERNEL/Bases \
+ -I$(srcdir)/../MEDCoupling -I$(srcdir)/../MEDLoader -I$(srcdir)/../MEDCalculator
-libMED_la_LDFLAGS= \
- $(QT_MT_LIBS) $(CAS_KERNEL) \
- ../../idl/libSalomeIDLMED.la \
+libMEDGUI_la_LDFLAGS= \
+ $(QT_MT_LIBS) $(CAS_KERNEL) $(BOOST_LIBS) \
+ ../../idl/libSalomeIDLMED.la ../MEDCalculator/libmedcalculator.la \
$(KERNEL_LDFLAGS) -lSalomeLifeCycleCORBA -lOpUtil -lSALOMELocalTrace \
$(GUI_LDFLAGS) -lSalomeApp -lCAM -lLightApp -lqtx -lsuit -lSalomeObject