Using the make utility

You can use the make utility to control the build of your z/OS® UNIX System Services XL C/C++ applications. The make utility calls the c89 utility by default to compile and bind the programs that the previously created makefile specifies.

Example: To create myappl you compile and bind two source parts mymain.c and mysub.c. This dependency is captured in makefile /u/jake/myappl/Makefile. No recipe is specified, so the default makefile rules are used. If myappl was built and a subsequent change was made only to mysub.c, you would specify:
cd /u/jake/myappl
make
The make utility sees that mysub.c has changed, and invokes the following commands for you:
c89  -O -c mysub.c
c89  -o myappl mymain.o mysub.o
Note: The make utility requires that application program source files that are to be "maintained" through use of a makefile reside in z/OS UNIX files. To compile and bind z/OS XL C/C++ source files that are in data sets, you must use the c89 utility directly.

See z/OS UNIX System Services Command Reference for a description of the make utility. For a detailed discussion on how to create and use makefiles to manage application parts, see z/OS UNIX System Services Programming Tools.