AMX DESIGN XPRESS V 1.5 - PROGRAMMER GUIDE User's Guide Page 118

  • Download
  • Add to my manuals
  • Print
  • Page
    / 316
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 117
104
K
A
DAK
KwikNet System Construction
3.2 Making the KwikNet Library
To build the KwikNet Library, you will need a make utility capable of running your C
compiler and object librarian (archiver). The library construction process is illustrated in
Figure 3.2-1. If you have ported KwikNet to your operating environment, the shaded
blocks indicate modules which you have already modified to adapt the make process to
accommodate your software development tools. If you are using
KwikNet with AMX,
these modules are ready for use without modification.
Your custom
KwikNet Library is created from the KwikNet Network Parameter File, a text
file describing the TCP/IP features, options, networks and devices drivers which your
application requires. This file is created and edited using the KwikNet Configuration
Builder as described in Chapter 2.
The
KwikNet Configuration Builder uses the information in your Network Parameter File
to generate a
KwikNet Library Make File. This make file is suitable for use with
Microsoft's NMAKE utility. The make file purposely avoids constructs and directives that
tend to vary among make utilities. Hence, you should have little difficulty using this
make file with your own make utility if you so choose.
The make utility uses your C compiler and object librarian to generate the KwikNet
Library from the KwikNet source modules and the OS Interface Module.
All KwikNet C files include a KwikNet compiler configuration header file KNZZZCC.H.
This file identifies the characteristics of your C compiler. This file is also used to
optimize code sequences within KwikNet modules by taking advantage of compiler
specific features such as in-line code, assembly language functions and C library macros
or functions. A number of variants of this module are provided with KwikNet ready for
use with popular compilers on a variety of target processors.
The OS Interface Module KN_OSIF.C is the module which connects KwikNet to your
RT/OS (see Figure 1.2-1 in Chapter 1). This module is merged into the KwikNet Library.
The make process automatically includes the OS Interface Make File KN_OSIF.INC to
determine the make dependencies and rules which control the compilation of the OS
Interface source file
KN_OSIF.C.
As you would probably expect, the make file does not know how to run your C compiler
and object librarian. This information is provided in a file called KNZZZCC.INC which the
make process automatically includes. This file, called a tailoring file, is used to tailor the
library construction process to accommodate your make utility's syntax for implicit rules.
It also provides the command sequences necessary to invoke your C compiler and object
librarian. KwikNet is shipped with a number of tailoring files ready for use with
Microsoft's NMAKE utility and many popular compilers.
Note
When KwikNet is used with AMX, the compiler
configuration header file KNZZZCC.H, the OS Interface
Make File KN_OSIF.INC and the tailoring file KNZZZCC.INC
provided with KwikNet are ready for use without
modification as described in Chapter 3.7.3.
Page view 117
1 ... 117 118 119 ... 316

Comments to this Manuals

No comments