Hi all,
In wince the makefile gets details from the sources filesto
make the image.but is it possible that the make file can build
without the help from sources file.if yes please explain a little



Thanks
Nihar

Re: makefile by Bruce

Bruce
Fri Jun 08 08:03:18 CDT 2007

Possible maybe, but why? I say maybe becuase the sources is needed by Build
to know to stop and run nmake, but after that you might be able to replace
the makefile with your own.

If you answer the why question, we may be able to head you in a better
direction.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member

"nihar" <niharrou@gmail.com> wrote in message
news:1181305884.590398.238580@j4g2000prf.googlegroups.com...
> Hi all,
> In wince the makefile gets details from the sources filesto
> make the image.but is it possible that the make file can build
> without the help from sources file.if yes please explain a little
>
>
>
> Thanks
> Nihar
>



RE: makefile by Umesh

Umesh
Fri Jun 08 08:49:04 CDT 2007

In an application development environment, such as Microsoft Visual Studio
2005, a makefile file contains all commands, macro definitions, and options
that specify how to build a project.

But in Platform Builder, the sources files contain this type of information;
the makefile file contains only a reference to the common makefile file,
Makefile.def.

You should not edit the makefile file or alter Makefile.def. When creating
your own projects in the OS tree, create a makefile file that simply includes
makefile.def or copy an existing makefile file from another project. The
following is a sample makefile file.

After Build.exe locates the dirs and sources files, it sets an internal
environment variable. Nmake.exe uses this variable to append the Sources.cmn
file to sources files in applicable subdirectories.

Using the linking rules contained in Makefile.def, Nmake.exe compiles the
source code specified in the sources files or it links object modules.

Nmake.exe uses Makefile.def to transform the current set of environment
variables into calls to a compiler, linker, or other tool

!include $(_MAKEENVROOT)\makefile.def


Build utility invokes the correct tools with the appropriate options to
build your code. The Build utility is a wrapper around the Microsoft NMAKE
utility, so it handles issues like checking dependencies to ensure that the
correct files are rebuilt after a change.

for additional information to the Build utility, you could use Makefile.inc
This file allows you to add commands and dependencies to the makefile,
typically for pre- and post-processing of files related to the project


Regards
Umesh Jagga

"nihar" wrote:

> Hi all,
> In wince the makefile gets details from the sources filesto
> make the image.but is it possible that the make file can build
> without the help from sources file.if yes please explain a little
>
>
>
> Thanks
> Nihar
>
>