beautypg.com

Running the assembler from the command line, Running the compiler from the command line – Zilog Z8F0130 User Manual

Page 504

background image

Appendix C. Running ZDS II from the Command Line

UM013037-1212

480

Zilog Developer Studio II – Z8 Encore!
User Manual

6. Open a DOS window and change to the intermediate files directory.

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

Running the Assembler from the Command Line

To run the assembler from the command line:

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:

C:\>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 make file in a text editor.

5. Copy the options in the ASFLAGS section.

6. In a Command Prompt window, enter the path to the assembler, the options from the

ASFLAGS section (on a single line and without backslashes), and your assembly file.


For example:

ez8asm -include:"..\include" -cpu:Z8F6423 test.asm

Running the Compiler from the Command Line

To run the compiler from the command line:

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

PATH