# makeGen.tcl - configuration file generator
#
# modification history
# --------------------
# 02a,29may00,jb    converted configGen.tcl to makeGen.tcl
# 01a,12may98,ms    written
#
#
# DESCRIPTION
# This file generates the Makefile from a project file
# use full pathname to prjFile!
#
# USAGE
#        wtxtcl makeGen.tcl prjFile
#                prjFile	project file
#        RETURNS: An error string, which is empty on success
#        PRODUCES: file Makefile in current directory
#

# parse and check arguments

set usage "wtxtcl makeGen.tcl prjFile"
if {$argc != 1} {
    error "wrong # args. Usage: $usage"
    }

# generate the configuration files

source [wtxPath]/host/resource/tcl/app-config/Project/prjLib.tcl
source [wtxPath]/host/resource/tcl/app-config/Project/Utils.tcl
set prjFile [lindex $argv 0]
set hProj      [prjOpen $prjFile]
::prj_vxApp_hidden::makeGen $hProj ./Makefile
prjClose $hProj


