Running zds ii from the command line, Building a project from the command line – Zilog EZ80F916 User Manual
Page 399

UM014423-0607
Running ZDS II from the Command Line
ZiLOG Developer Studio II
eZ80Acclaim!
®
User Manual
379
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” on page 379
•
“Running the Compiler from the Command Line” on page 380
•
“Running the Assembler from the Command Line” on page 380
•
“Running the Linker from the Command Line” on page 380
•
“Assembler Command Line Options” on page 381
•
“Compiler Command Line Options” on page 383
•
“Librarian Command Line Options” on page 385
•
“Linker Command Line Options” on page 385
BUILDING A PROJECT FROM THE COMMAND LINE
To build a project from the command line, use the following procedure:
1. Add the ZDS II bin directory (for example,
C:\Program
Files\ZiLOG\ZDSII_eZ80Acclaim!_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 Project
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.
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:
make rebuildall -f sampleproject_Debug.mak