Building a project from the command line, Running zds ii from the command line, Appendix a. running zds ii from the command line – Zilog ZUSBOPTS User Manual
Page 377

UM017105-0511
Building a Project from the Command Line
Zilog Developer Studio II – ZNEO™
User Manual
349
Appendix A. Running ZDS II from the
Command Line
You can run ZDS II from the command line. ZDS II generates a make file
(project
_Debug.mak
or project
_Release.mak
, depending on the project configuration)
every time you build or rebuild a project. For a project named
test.zdsproj
set up in
the Debug configuration, ZDS II generates a make file named
test_Debug.mak
in the
project directory. You can use this make file to run your project from the command line.
This section covers the following topics:
•
Building a Project from the Command Line
•
Running the Compiler from the Command Line
•
Running the Assembler from the Command Line
•
Running the Linker from the Command Line
•
Assembler Command Line Options
•
•
Librarian Command Line Options
•
Building a Project from the Command Line
To build a project from the command line, observe the following procedure:
1. Add the ZDS II bin directory (for example,
C:\Program
Files\Zilog\ZDSII_Z8Encore!_4.11.0\bin
) to your path by setting the PATH
environment variable. The make utility is available in this directory.
2. Open the project using the IDE.
3. Export the make file for the project using the Export Makefile command in the
Proj-
ect
menu.
4. Open a DOS window and change to the intermediate files directory.
5. Build the project using the make utility on the command line in a DOS window.
6. To build a project by compiling only the changed files, use the following command:
make -f sampleproject_Debug.mak
To rebuild the entire project, use the following command: