beautypg.com

Appendix c. running zds ii from the command line, Building a project from the command line, E the – Zilog Z8F0130 User Manual

Page 503

background image

UM013037-1212

Appendix C. Running ZDS II from the Command Line

Zilog Developer Studio II – Z8 Encore!

User Manual

479

Appendix C. 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.

The following sections describe how to run ZDS II from the command line:

Building a Project from the Command Line

– see page 479

Running the Assembler from the Command Line

– see page 480

Running the Compiler from the Command Line

– see page 480

Running the Linker from the Command Line

– see page 481

Assembler Command Line Options

– see page 482

Compiler Command Line Options

– see page 484

Librarian Command Line Options

– see page 487

Linker Command Line Options

– see page 488

Building a Project from the Command Line

To build a project from the command line, use the following procedure:

1. To see the current path, enter the following command in a DOS window:

PATH

2. To set up the ZDS II bin directory (for example,

C:\PRO-

GRA~1\Zilog\ZDSII_Z8Encore!_4.11.0\bin

) in the path, enter the following

code:

SET PATH=%PATH%;C:\Program

Files\Zilog\ZDSII_Z8Encore!_4.11.0\bin

The make utility is available in this directory.

3. Type

PATH

again to see the new path.

4. Open the project using the IDE.

5. Export the make file for the project using the Export Makefile command in the

Proj-

ect

menu.