Installation Instructions:
--------------------------
(1) To build and install the Ch sample package library, run command
        make
        make install

Uninstallation Instructions:
--------------------------
(1) Run command
        make uninstall

Contents in this directory contains the code for developing 
the package chsample.
-------------------------------------
(1)./src: The original C code.
    It contains program.c, func.c and sample.h
    It can be compiled by Makefile in Unix and 
    Makefile.win in Windows 

(2) ./chfcreate/sample.h is based on ./include/sample.h.
    ./include/sample.h is the same as  ./src/sample.h, except that 
    ./include/sample.h contains he following code for Ch
 
        #ifdef _CH_
        #pragma package <chsample>
        #include <chdl.h>
        LOAD_CHDL(sample)
        #endif

    ./chfcreate/sample_err is the return errors for functions in sample.h
    type command
        cd chfcreate
        ./runc2chf.ch 
    will create files in dir chfcreate/sample which
    contains function files func1.chf and func2.chf,
    and C program for creating dynamically loaded lib
    libsample.dl

(3) ./c directory contains files for buiding 
    dynamically loaded lib libsample.dl.
    sample_chdl.c is from ./chfcreate/sample/sample_chdl.c.
    Use
        make -f Makefile 
    in Unix
        nmake -f Makefile.win 
    in Windows to create libsample.dl
(4) ./chfhandmade contains function files for functions that return struct type
(5) ./bin binary executables such as  .dll for Windows.


Run Demo Programs in Directory demos:
-------------------------------------
(1) start ch
(2) type program name such as 'program.c' or 'program.ch'  in 
    CHHOME/package/chsample/demos

Update Ch Sample Package for Newer Versions of Sample:
------------------------------------------------------
(1) Install Ch SDK from http://www.softintegration.com
(2) run pkgcreate.ch that does the following:
    + Generates ./chfcreate/*.h files containing bare function lists
    + Processes each function list with c2chf
    + Moves *.chf files generated by c2chf to chsample/lib subfolder and
      *_chdl.c files to ./c subfolder
    + Removes automatically generated wrappers that have manually
      created counterparts in *_chdl.c.
    + Builds .dl files using Ch SDK and places them to chsample/dl
    + Copies Pack DLLs to bin subfolders if there is any
    + Copies C samples from ./demos dir to chsample/demos if there is any
