ProSoft Technology MVI69E-LDM User Manual

Page 35

Advertising
background image

MVI69E-LDM ♦ "C" Programmable

Contents

Linux Application Development Module

Developer's Manual

ProSoft Technology, Inc.

Page 35 of 130

August 21, 2014

2.2.2 Compiling and Linking

1 Start the Linux (Debian) virtual machine in the VM Player.
2 Open a Bash Shell window by clicking on the B

ASH

S

HELL

icon on the main page.

3 Once in the shell, change the directory to one of the samples. In this case, change the

directory to get to the LED_sample program. Type:

cd /workspace/mvi69e-ldm/src/LDM/led_sample$

4 To recompile and link, simply type:

make

In this case, the executable is up to date and nothing needs to be done.

5 If the source is changed, the make utility detects the newer time on the source file and

rebuilds the application. The following example uses the Touch utility to cause the date
of a file (

led_sample.c)

to be updated as if the file had been changed, and make is re-

invoked. Make detects this change, recompiles and re-links the application.

Advertising