# This file is for inclusion in Make_tar and Make_unpack_*
# It is not intended to be run stand-alone
# 12/16/06 C. DeTar

#  Change these names to suit
VER = 7.6.3
NAME_ROOT = milc_qcd-${VER}

######################################################################
# Table of contents
# This list is intended to be all-inclusive

THIS_DIR =         \
 getints.sh             \
 Make*                  \
 README                 \
 README_RELEASE_NOTES   \
 cc.pl                  \
 check_malloc.pl        \
 compare.sh             \
 diffn.pl               \
 diffn3.pl              \
 seterrfile.pl          \
 trainerrfile.pl        \
 train.sh               \
 headtail.pl            \
 convert_f2d.sh         \
 todo

DOC =              \
 doc/Makefile           \
 doc/milcv6.texi        \
 doc/port_notes.txt

LIBRARIES =        \
 libraries/*.c          \
 libraries/*.h          \
 libraries/*.m4         \
 libraries/*.rs6k       \
 libraries/*.t3d        \
 libraries/*.t3e        \
 libraries/*.alpha      \
 libraries/Make_*        \
 libraries/README*      \
 libraries/include/*.h

GAUGE_UTILITIES =      \
 gauge_utilities/Make*     \
 gauge_utilities/*.c       \
 gauge_utilities/*.h       \
 gauge_utilities/in.sample.* \
 gauge_utilities/out.errtol.* \
 gauge_utilities/out.sample.*


BINARY_SAMPLES =      \
 binary_samples/colormatrix.*sample* \
 binary_samples/lat.sample*    \
 binary_samples/lprop.*sample* \
 binary_samples/in.sample.*smear* \
 binary_samples/ksprop*.sample.* \
 binary_samples/ks.sample.* \
 binary_samples/ksvector.*sample.* \
 binary_samples/wprop*.sample.* \
 binary_samples/smear*.sample.*

INCLUDE =        \
 include/Make_*        \
 include/*.h

GENERIC =        \
 generic/Make_*        \
 generic/*.c          \
 generic/*.h          \
 generic/imp_actions/*.h

GENERIC_KS =     \
 generic_ks/Make_*     \
 generic_ks/*.c       \
 generic_ks/*.cc      \
 generic_ks/*.h       \
 generic_ks/imp_actions/README \
 generic_ks/imp_actions/*.h \
 generic_ks/imp_actions/hisq/*.h

GENERIC_PG =     \
 generic_pg/Make_*     \
 generic_pg/*.c       \
 generic_pg/*.h

GENERIC_SCHROED =         \
 generic_schroed/Make_*         \
 generic_schroed/*.c           \
 generic_schroed/*.h

GENERIC_WILSON =     \
 generic_wilson/Make_*     \
 generic_wilson/*.c       \
 generic_wilson/*.h

GENERIC_CLOVER =          \
 generic_clover/Make_*     \
 generic_clover/*.c       \
 generic_clover/*.h       \
 generic_clover/utilities/Make*  \
 generic_clover/utilities/*.c

GENERIC_FORM =     \
 generic_form/Make_*     \
 generic_form/*.c       \
 generic_form/*.h

ARB_DIRAC_EIGEN =          \
 arb_dirac_eigen/README         \
 arb_dirac_eigen/*.c            \
 arb_dirac_eigen/*.h            \
 arb_dirac_eigen/Make_*          \
 arb_dirac_eigen/in.sample*     \
 arb_dirac_eigen/out.errtol*     \
 arb_dirac_eigen/out.sample*

ARB_DIRAC_INVERT =          \
 arb_dirac_invert/README         \
 arb_dirac_invert/*.c            \
 arb_dirac_invert/*.h            \
 arb_dirac_invert/Make_*          \
 arb_dirac_invert/in.sample*     \
 arb_dirac_invert/out.errtol*     \
 arb_dirac_invert/out.sample*

CLOVER_DYNAMICAL =          \
 clover_dynamical/*.c            \
 clover_dynamical/*.h            \
 clover_dynamical/Make_*          \
 clover_dynamical/in.sample*     \
 clover_dynamical/out.errtol*     \
 clover_dynamical/out.sample*

CLOVER_HYBRIDS =            \
 clover_hybrids/*.c              \
 clover_hybrids/*.h              \
 clover_hybrids/Make_*            \
 clover_hybrids/in.sample*       \
 clover_hybrids/out.sample*

CLOVER_INVERT2 =             \
 clover_invert2/*.c          \
 clover_invert2/*.h          \
 clover_invert2/Make_*       \
 clover_invert2/in.sample*   \
 clover_invert2/out.errtol*  \
 clover_invert2/out.sample*

GLUON_PROP =                 \
 gluon_prop/GF_555_6.1       \
 gluon_prop/*.c              \
 gluon_prop/*.h              \
 gluon_prop/Make_*           \
 gluon_prop/in.sample*       \
 gluon_prop/out.errtol*      \
 gluon_prop/out.sample*

DENSE_STATIC_SU3 =           \
 dense_static_su3/*.c        \
 dense_static_su3/*.h        \
 dense_static_su3/Make_*     

H_DIBARYON =                 \
 h_dibaryon/*.c              \
 h_dibaryon/*.h              \
 h_dibaryon/Make_*           \
 h_dibaryon/in.sample*       \
# h_dibaryon/out.errtol*     \
 h_dibaryon/out.sample*

HEAVY        =         \
 heavy/Make_*          \
 heavy/*.c             \
 heavy/*.h             \
 heavy/in.sample*      \
 heavy/out.errtol*     \
 heavy/out.sample*     \
 heavy/utilities/*.c   \
 heavy/utilities/*.h   \
 heavy/utilities/Make* \
 heavy/utilities/in.sample*

HQET_HEAVY_TO_LIGHT =          \
 hqet_heavy_to_light/*.c            \
 hqet_heavy_to_light/*.h            \
 hqet_heavy_to_light/Make_*          \
 hqet_heavy_to_light/in.sample*     \
 hqet_heavy_to_light/out.errtol*     \
 hqet_heavy_to_light/out.sample*

HVY_QPOT     =   \
 hvy_qpot/README      \
 hvy_qpot/Make_*       \
 hvy_qpot/*.c         \
 hvy_qpot/*.h         \
 hvy_qpot/in.sample.* \
 hvy_qpot/out.errtol*     \
 hvy_qpot/out.sample*

KS_DYNAMICAL =          \
 ks_dynamical/*.c            \
 ks_dynamical/*.h            \
 ks_dynamical/Make_*          \
 ks_dynamical/in.sample*     \
 ks_dynamical/in.time*       \
 ks_dynamical/out.errtol*     \
 ks_dynamical/out.sample*

KS_EIGEN =          \
 ks_eigen/README*        \
 ks_eigen/*.c            \
 ks_eigen/*.h            \
 ks_eigen/Make_*          \
 ks_eigen/in.sample*     \
 ks_eigen/out.errtol*     \
 ks_eigen/out.sample*

KS_IMP_DYN =           \
 ks_imp_dyn/README          \
 ks_imp_dyn/*.c             \
 ks_imp_dyn/*.h             \
 ks_imp_dyn/Make_*           \
 ks_imp_dyn/in.sample*      \
 ks_imp_dyn/in.time*        \
 ks_imp_dyn/out.errtol*     \
 ks_imp_dyn/out.sample*

KS_IMP_RHMC =           \
 ks_imp_rhmc/README*         \
 ks_imp_rhmc/*.c             \
 ks_imp_rhmc/*.h             \
 ks_imp_rhmc/Make_*           \
 ks_imp_rhmc/in.sample*      \
 ks_imp_rhmc/out.errtol*     \
 ks_imp_rhmc/out.sample*     \
 ks_imp_rhmc/rationals.sample* \
 ks_imp_rhmc/remez-milc/README* \
 ks_imp_rhmc/remez-milc/*.C     \
 ks_imp_rhmc/remez-milc/*.h     \
 ks_imp_rhmc/remez-milc/*.pl    \
 ks_imp_rhmc/remez-milc/in.sample* \
 ks_imp_rhmc/remez-milc/in.m013m065m838 \
 ks_imp_rhmc/remez-milc/rationals.sample* \
 ks_imp_rhmc/remez-milc/Make*


KS_IMP_INVERT_MULTI =           \
 ks_imp_invert_multi/README         \
 ks_imp_invert_multi/*.c             \
 ks_imp_invert_multi/*.h             \
 ks_imp_invert_multi/Make_*           \
 ks_imp_invert_multi/in.sample*      \
 ks_imp_invert_multi/out.errtol*     \
 ks_imp_invert_multi/out.sample*

PROPAGATING_FORM_FACTOR =          \
 propagating_form_factor/*.c            \
 propagating_form_factor/*.h            \
 propagating_form_factor/Make_*          \
 propagating_form_factor/in.sample*     \
 propagating_form_factor/out.errtol*    \     \
 propagating_form_factor/out.sample*    \
 propagating_form_factor/scripts/*       \
 propagating_form_factor/utilities/*.c  \
 propagating_form_factor/utilities/*.h  \
 propagating_form_factor/utilities/Make* \
 propagating_form_factor/utilities/in.sample*

PURE_GAUGE =          \
 pure_gauge/*.c            \
 pure_gauge/*.h            \
 pure_gauge/Make_*          \
 pure_gauge/in.sample*     \
 pure_gauge/out.errtol*     \
 pure_gauge/out.sample*

SCHROED_CL_INV =          \
 schroed_cl_inv/*.c            \
 schroed_cl_inv/*.h            \
 schroed_cl_inv/Make_*          \
 schroed_cl_inv/in.sample*     \
 schroed_cl_inv/out.errtol*     \
 schroed_cl_inv/out.sample*

SCHROED_KS_DYN =          \
 schroed_ks_dyn/*.c            \
 schroed_ks_dyn/*.h            \
 schroed_ks_dyn/Make_*          \
 schroed_ks_dyn/in.sample*     \
 schroed_ks_dyn/out.errtol*     \
 schroed_ks_dyn/out.sample*

SCHROED_PG =          \
 schroed_pg/*.c            \
 schroed_pg/*.h            \
 schroed_pg/Make_*          \
 schroed_pg/in.sample*     \
 schroed_pg/out.errtol*     \
 schroed_pg/out.sample*

SMOOTH_INST =         \
 smooth_inst/README*       \
 smooth_inst/*.c           \
 smooth_inst/*.c.unused    \
 smooth_inst/*.h           \
 smooth_inst/Make_*         \
 smooth_inst/in.sample*    \
 smooth_inst/out.errtol*   \
 smooth_inst/out.sample*   \
 smooth_inst/utilities/*.c \
 smooth_inst/utilities/Make_utilities

STRING_BREAK =          \
 string_break/*.c            \
 string_break/*.h            \
 string_break/Make_*          \
 string_break/in.sample*     \
 string_break/out.errtol*     \
 string_break/out.sample*

SYMANZIK_SL32 =         \
 symanzik_sl32/*.c           \
 symanzik_sl32/*.h           \
 symanzik_sl32/Make_*         \
 symanzik_sl32/in.sample*    \
 symanzik_sl32/out.errtol*     \
 symanzik_sl32/out.sample*

WILSON_DYNAMICAL =          \
 wilson_dynamical/*.c            \
 wilson_dynamical/*.h            \
 wilson_dynamical/Make_*         \
 wilson_dynamical/in.sample*     \
 wilson_dynamical/out.errtol*     \
 wilson_dynamical/out.sample*



WILSON_STATIC        =   \
 wilson_static/Make_*          \
 wilson_static/*.c            \
 wilson_static/*.h            \
 wilson_static/in.sample*     \
 wilson_static/out.errtol*    \
 wilson_static/out.sample*    \
 wilson_static/read_matrix_code/Make* \
 wilson_static/read_matrix_code/*.c \
 wilson_static/matrix_to_corr/Make* \
 wilson_static/matrix_to_corr/*.c \
 wilson_static/matrix_to_corr/*.h \

# We split up the archive into manageable components

BASIC =               \
 ${THIS_DIR}          \
 ${DOC}               \
 ${GAUGE_UTILITIES}   \
 ${BINARY_SAMPLES}    \
 ${GENERIC}           \
 ${INCLUDE}           \
 ${LIBRARIES}         \
 ${SSE}               \
 ${SSE_OPTERON}       \
 ${SSE2}            

SSE =               \
 sse/README_SSE          \
 sse/include/*.h         \
 sse/include/Makefile    \
 sse/nas/*.s             \
 sse/bin/*.pl

SSE_OPTERON =                    \
 sse_opteron/README_SSE          \
 sse_opteron/include/*.h         \
 sse_opteron/include/Makefile    \
 sse_opteron/nas/*.s             \
 sse_opteron/bin/*.pl

SSE2 =              \
 sse2/README_SSE         \
 sse2/include/*.h        \
 sse2/include/Makefile   \
 sse2/nas/*.s            \
 sse2/bin/*.pl

PG =          \
 ${GENERIC_PG}        \
 ${PURE_GAUGE}        \
 ${SYMANZIK_SL32}
# ${HVY_QPOT}

CLOVER =              \
 ${GENERIC_CLOVER}    \
 ${CLOVER_DYNAMICAL}  \
 ${CLOVER_HYBRIDS}    \
 ${CLOVER_INVERT2}    \
 ${H_DIBARYON}

FORM =

FP =                  \
 ${ARB_DIRAC_INVERT}  \
 ${ARB_DIRAC_EIGEN}

INST =                \
 ${SMOOTH_INST}

KS =                  \
 ${GENERIC_KS}        \
 ${GLUON_PROP}        \
 ${KS_EIGEN}          \
 ${KS_IMP_DYN}	      \
 ${KS_IMP_RHMC}	      \
 ${KS_IMP_INVERT_MULTI}

# SF =                  \
#  ${GENERIC_SCHROED}   \
#  ${SCHROED_CL_INV}    \
#  ${SCHROED_PG}
SF =                 \
  ${GENERIC_SCHROED} \
  ${SCHROED_CL_INV}  \
  ${SCHROED_KS_DYN}

WILSON =              \
 ${GENERIC_WILSON} \
 ${HEAVY}  \
 ${WILSON_STATIC}

# The names of the component tar files

BASIC_TAR   = ${NAME_ROOT}_basic.tar
CLOVER_TAR  = ${NAME_ROOT}_clover.tar
FORM_TAR    = ${NAME_ROOT}_form.tar
FP_TAR      = ${NAME_ROOT}_fp.tar
INST_TAR    = ${NAME_ROOT}_inst.tar
KS_TAR      = ${NAME_ROOT}_ks.tar
PURE_GAUGE_TAR  = ${NAME_ROOT}_pure_gauge.tar
SF_TAR      = ${NAME_ROOT}_sf.tar
WILSON_TAR  = ${NAME_ROOT}_wilson.tar

# The combined tar file

TAR =          \
 ${BASIC_TAR}  \
 ${CLOVER_TAR} \
 ${KS_TAR}     \
 ${INST_TAR}    \
 ${PURE_GAUGE_TAR} \
 ${SF_TAR}     \
 ${WILSON_TAR}

# Contents of the whole ball of wax

WORK =              \
 README_UNPACK      \
 Make_contents      \
 Make_unpack        \
 ${TAR}
