#! /usr/bin/autogen
AutoGen definitions melt-build.tpl;

// melt-build.mk is generated from melt-build.tpl using melt-build.def
// and the autogen utility by 'autogen melt-build.def'.
// This file is written by Basile Starynkevitch
//
//   Copyright 2010, 2012  Free Software Foundation
//
// This file 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 3 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; see the file COPYING3.  If not see
// <http://www.gnu.org/licenses/>.

// When adding or removing a core melt/*.melt file, please describe it
// here.
////////////////////////////////////////////////////////////////

// the MELT translator is described by several similar entries, one
// for each source file. Entry order is important!

// field 'base' gives the base name of the  *.melt file
// field 'mkvarsuf' gives a suffix part of a generated make variable name
melt_translator_file = {
  base = "warmelt-first";
  mkvarsuf = FIRST;
};

melt_translator_file = {
  base = "warmelt-base";
  mkvarsuf = BASE;
};

melt_translator_file = {
  base = "warmelt-debug";
  mkvarsuf = DEBUG;
};

melt_translator_file = {
  base = "warmelt-macro";
  mkvarsuf = MACRO;
};

melt_translator_file = {
  base = "warmelt-normal";
  // warmelt-normal.melt contains (load "warmelt-predef.melt")
  includeload = "warmelt-predef.melt";
  mkvarsuf = NORMAL;
};

melt_translator_file = {
  base = "warmelt-normatch"; 
  mkvarsuf = NORMATCH;
};

melt_translator_file = {
  base = "warmelt-genobj";
  mkvarsuf = GENOBJ;
};

melt_translator_file = {
  base = "warmelt-outobj";
  mkvarsuf = OUTOBJ;
};

melt_translator_file = {
  base = "warmelt-modes";
  mkvarsuf = MODES;
};


////////////////
// the additional MELT application files
melt_application_file = {
  base = "xtramelt-ana-base";
  mkvarsuf = ANA_BASE;
};

melt_application_file = {
  base = "xtramelt-ana-tree";
  mkvarsuf = ANA_TREE;
};

melt_application_file = {
  base = "xtramelt-ana-gimple";
  mkvarsuf = ANA_GIMPLE;
};

melt_application_file = {
  base = "xtramelt-probe";
  mkvarsuf = PROBE;
};

melt_application_file = {
  base = "xtramelt-ana-simple";
  mkvarsuf = ANA_SIMPLE;
};

melt_application_file = {
  base = "xtramelt-c-generator";
  mkvarsuf = C_GENERATOR;
};

melt_application_file = {
  base = "xtramelt-opengpu";
  mkvarsuf = OPENGPU;
};

// the various MELT stages which should be melt-stage1 melt-stage2
// etc...
melt_stage = melt-stage1;
melt_stage = melt-stage2;
melt_stage = melt-stage3;