## Process this file with automake to produce Makefile.in

##   This file is part of the UVES Pipeline
##   Copyright (C) 2002,2003 European Southern Observatory

##   This library is free software; you can redistribute it and/or modify
##   it under the terms of the GNU General Public License as published by
##   the Free Software Foundation; either version 2 of the License, or
##   (at your option) any later version.

##   This program 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 General Public License for more details.

##   You should have received a copy of the GNU General Public License
##   along with this program; if not, write to the Free Software
##   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

AUTOMAKE_OPTIONS = 1.8 foreign

DISTCLEANFILES = *~

SUBDIRS = . tests

LIBQFITS=$(top_builddir)/libqfits/src/libqfits.la
QFITS_INCLUDES = -I$(top_srcdir)/libqfits/src/


if MAINTAINER_MODE

MAINTAINERCLEANFILES = Makefile.in

endif


AM_CPPFLAGS = $(all_includes) $(QFITS_INCLUDES)

pkginclude_HEADERS =

noinst_HEADERS =     uves.h                       \
                     uves_globals.h          \
                     uves_time.h          \
                     uves_plugin.h          \
                     uves_physmod_body.h          \
                     uves_physmod_utils.h         \
                     uves_physmod_cstacen.h       \
                     uves_physmod_necregr.h       \
                     uves_physmod_regress_echelle.h \
                     uves_physmod_plotmod.h         \
                     uves_physmod_center_gauss.h    \
                     uves_physmod_calmap.h          \
                     uves_physmod_qc1pmtbl.h        \
                     uves_physmod_msrawxy.h         \
                     uves_physmod_create_table.h    \
                     uves_physmod_chop_otab.h       \
                     uves_physmod_stability_check.h \
                     uves_orderpos_body.h         \
                     uves_orderpos_hough.h        \
		     uves_orderpos_follow.h       \
                     uves_wavecal_body.h          \
		     uves_wavecal_search.h        \
		     uves_wavecal_firstsolution.h \
		     uves_wavecal_identify.h      \
		     uves_wavecal_utils.h         \
		     uves_response_efficiency.h   \
		     uves_response_utils.h        \
                     uves_utils.h               \
	             uves_utils_polynomial.h    \
		     uves_utils_cpl.h           \
		     uves_utils_wrappers.h      \
                     uves_propertylist.h        \
                     uves_deque.h               \
		     uves_extract.h             \
		     uves_extract_iterate.h     \
                     uves_extract_profile.h     \
		     uves_reduce.h              \
		     uves_reduce_utils.h        \
		     uves_reduce_scired.h       \
		     uves_reduce_mflat.h        \
		     uves_reduce_mflat_combine.h        \
		     uves_flatfield.h           \
		     uves_rebin.h               \
		     uves_merge.h               \
		     uves_backsub.h             \
                     uves_corrbadpix.h          \
		     uves_dfs.h                 \
		     uves_pfits.h               \
		     uves_error.h               \
		     uves_msg.h                 \
		     uves_plot.h                \
		     uves_parameters.h          \
		     uves_chip.h                \
		     uves_chip_type.h           \
		     uves_qclog.h               \
                     uves_cd_align_impl.h       \
                     uves_mdark_impl.h          \
                     uves_mbias_impl.h          \
		     uves_dump.h                \
                     uves_baryvel.h             \
                     uves_remove_crh_single.h   \
                     uves_recipe.h \
                     flames_midas_def.h \
                     flames_reduce_vcorrel.h \
                     flames_corvel.h \
                     uves_cpl_size.h \
                     flames_newmatrix.h    


privatelib_LTLIBRARIES = libuves.la

libuves_la_SOURCES = 	uves_utils.c               \
                     uves_time.c          \
			uves_utils_polynomial.c    \
			uves_utils_cpl.c      	   \
			uves_utils_wrappers.c 	   \
                        uves_propertylist.c        \
                        uves_deque.c               \
			uves_extract.c        	   \
			uves_extract_iterate.c     \
			uves_extract_profile.c     \
			uves_flatfield.c           \
			uves_rebin.c               \
			uves_merge.c               \
			uves_reduce.c              \
			uves_reduce_utils.c        \
			uves_reduce_scired.c       \
			uves_reduce_mflat.c        \
			uves_reduce_mflat_combine.c        \
			uves_backsub.c             \
			uves_corrbadpix.c          \
			uves_dfs.c            	   \
			uves_pfits.c          	   \
			uves_msg.c          	   \
			uves_plot.c          	   \
			uves_parameters.c          \
			uves_chip.c          	   \
			uves_chip_type.c       	   \
			uves_dump.c                \
                        uves_orderpos_impl.c       \
                        uves_orderpos_body.c       \
                        uves_orderpos_hough.c      \
                        uves_orderpos_follow.c     \
                        uves_mbias_impl.c          \
                        uves_mdark_impl.c          \
                        uves_mflat_impl.c          \
                        uves_mflat_combine_impl.c  \
                        uves_cal_mkmaster_impl.c   \
                        uves_wavecal_impl.c        \
                        uves_wavecal_body.c        \
                        uves_wavecal_search.c      \
                        uves_wavecal_firstsolution.c \
                        uves_wavecal_identify.c    \
                        uves_wavecal_utils.c       \
                        uves_physmod_impl.c        \
                        uves_physmod_body.c        \
                        uves_physmod_utils.c       \
                        uves_physmod_necregr.c     \
                        uves_physmod_cstacen.c     \
                        uves_physmod_regress_echelle.c \
                        uves_physmod_plotmod.c     \
                        uves_physmod_center_gauss.c \
                        uves_physmod_qc1pmtbl.c    \
                        uves_physmod_calmap.c      \
                        uves_physmod_msrawxy.c     \
                        uves_physmod_create_table.c \
                        uves_physmod_chop_otab.c   \
                        uves_physmod_stability_check.c \
                        uves_response_impl.c       \
                        uves_response_efficiency.c \
                        uves_response_utils.c      \
                        uves_scired_impl.c         \
                        uves_obs_spatred_impl.c    \
                        uves_tflat_impl.c          \
                        uves_cd_align_impl.c       \
                        uves_qclog.c               \
			uves_baryvel.c             \
                     uves_remove_crh_single.c   \
                        uves_redchain_impl.c \
                     flames_midas_def.c \
                     flames_reduce_vcorrel.c \
                     flames_corvel.c \
                     flames_newmatrix.c


libuves_la_LDFLAGS = $(LDFLAGS) $(CPL_LDFLAGS) $(CFITSIO_LDFLAGS) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
libuves_la_LIBADD = $(LIBIRPLIB) $(LIBCPLDFS) $(LIBCPLUI) $(LIBCPLDRS) $(LIBCPLCORE) $(LIBQFITS) $(LIBCFITSIO)
libuves_la_DEPENDENCIES = $(LIBIRPLIB)
