
2. How to make application program
==================================
Table of contents
2.1 Outline
2.2 Special files
2.3 MAKEFILE
2.4 Installing the Diab C/C++ Power-PC compiler
2.5 Compatibility related to variables of type 'int'
2.6 Using compiler libraries
2.7 Describing 2-byte characters in source-codes
2.8 Remarks
2.1 Outline
In this documentation we assume that the "C Executor library disk" has been
installed in the directory C:¥APP.
The application program is made by the following procedures.
(1) Make the working directory.
(2) Copy ¥APP¥TOOL¥MAKEFILE, ¥APP¥TOOL¥VERSION.C into the working
directory.
(3) Edit the source files.
(4) Modify MAKEFILE to fit to user application.
(5) Modify user application's version number in VERSION.C.
(6) Execute NMAKE.
(1) Making the working directory.
Usually, the working directory is made in the directory( C:¥APP ) in which
the C library has been installed. We assume that the working directory name
is PROG1.
C:¥> md c:¥app¥prog1
(2) Copying specific files.
Copy the necessary files at a minimum from TOOL directory to the working
directory.
C:¥> cd c:¥app¥prog1
C:¥APP¥PROG1> copy ..¥tool¥makefile
C:¥APP¥PROG1> copy ..¥tool¥version.c