/***************************************************************************
 * Module: simple_c_project                                                *
 *                                                                         *
 * Copyright (C) 1998 Mark Grosberg. All Rights Reserved.                  *
 *                                                                         *
 * The software is redistributable under the licence given in the          *
 * file "License" distributed in the AMC archive.                          *
 ***************************************************************************
 * Date:      98.12.04                                                     *
 * Author:    Mark Grosberg (myg)                                          *
 * Language:  CGL                                                          *
 ***************************************************************************
 * This file contains the standard definitions for AMC to handle simple    *
 * projects written in the 'C' programming language that consist of only   *
 * one location (or subsystem).                                            *
 *                                                                         *
 * NOTE: The environment variable 'PROJECT_DIR' must be set to the         *
 * root of the directory structure for your project. And 'PROJECT_ROOT'    *
 * must be the name of the "root module" in your source files.             *
 ***************************************************************************/

/* Include the definitions for all C projects. */
include(@("AMCHOME") "/std/c_project");

/* Define the location of your files. */
loc def=(@("PROJECT_DIR") "/source", 
         @("PROJECT_DIR") "/.interface",
         @("PROJECT_DIR") "/obj") make;

/* Set 'def' to be the default location for everything (simple project). */
def_loc def;

root @("PROJECT_ROOT") in def
     final 
     (
        "gcc -s -o " @("PROJECT_DIR") "/" @("PROJECT_ROOT") 
        " " @("PROJECT_DIR") "/obj/*.o"
     );
