:
# This demo demonstrates C main() calling Cobol

# Create cmain.cpy from cmain.h
h2cpy -I /usr/include -I /usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/include -I/usr/lib/gcc-lib/s390-suse-linux/3.3.3/include cmain1.h

# Create callable shared objects for Cobol modules.
# Alternative: cob -z cobsub1.cbl cobsub2.cbl
cob -zv cobsub2.cbl
cob -zv cobsub1.cbl

# Create exe with a C main()
cob -xvo cmain1 -CC -I$COBDIR/include cmain1.c -dcobsub2 -dcobsub3

# To run:
# ./cmain1
