home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11.lha / ccs-lib / Configure < prev    next >
Encoding:
Text File  |  1993-08-23  |  640 b   |  22 lines

  1. #! /bin/sh
  2.  
  3. M_TYPE=${1-src}
  4. TOPDIR=${2-`pwd`}
  5. HERE=${3-}
  6. MFLAGS=${4-}
  7.  
  8. # M_TYPE = name of machine specific configuration file
  9. # TOPDIR = location of top level directory (see makefile.awk for desciption )
  10. # HERE =  used to keep track of current directory
  11. # MFLAGS = any standard 'make' arguements you may want to use 
  12.  
  13. (     echo TOPDIR = ${TOPDIR} ;
  14.     echo CONFIG = config.${M_TYPE} ;
  15.     echo HERE = ${HERE} ;
  16.     echo CCS_ROOT = ${TOPDIR} ;
  17.     cat ${TOPDIR}/config.${M_TYPE} ${TOPDIR}/makefile.hdr makefile.src ${TOPDIR}/makefile.tlr
  18. ) > Makefile
  19.  
  20. make config-subdirs TOPDIR=${TOPDIR} CONFIG=${M_TYPE} HERE=${HERE} \
  21.                 MFLAGS=${MFLAGS}
  22.