TOC PREV NEXT INDEX


Generated Makefile


The -genmake option causes a makefile to be generated to assist in the C or C++ compilation of all of the generated source files. This makefile contains a rule to invoke XBinder to regenerate the .c and .h files if the XSD source file changes. It also contains rules to compile all of the C or C++ source files. Header file dependencies are generated for all the source files.
Two basic types of makefiles are generated:
1. A GNU compatible makefile. This makefile is compatible with the GNU make utility which is suitable for compiling code on Linux and many UNIX operating systems, and
2. A Microsoft Visual Studio compatible makefile. This makefile is compatible with the Microsoft Visual Studio nmake utility.
A GNU compatible makefile is produced by default, the Microsoft compatible file is produced when the -w32 command line option is specified in addition to -genmake.
Both of these makefile types rely on definitions in the platform.mk make include file. This file contains parameters specific to different compiler and linker utilities available on different platforms. Typically, all the needs to be done to port to a different platform is to adjust the parameters in this file.

Copyright © Objective Systems 2002-2008
This document may be distributed in any form, electronic or otherwise, provided that it is distributed in its entirety and that the copyright and this notice are included.

Objective Systems, Inc.

55 Dowlin Forge Road
Exton, Pennsylvania 19341
http://www.obj-sys.com
Phone: (484) 875-9841
Toll-free: (877) 307-6855 (US only)
Fax: (484) 875-9830
info@obj-sys.com

TOC PREV NEXT INDEX