3 compile, 1 compiling on windows, 3 compile -4 – Solvline Eddy DK Ver 2.20 User Manual

Page 34: 1 compiling on windows -4, Compiling on windows

Advertising
background image

Chapter4. Compiling Application

4-4

The figure below shows part that is executed when running make command.

It shows that Hello_World is added also as an example.

Next shows part that is executed when running make clean command and make release command.

Make clean command deletes object files inside the current folder.
Make release command moves executable files to where it is set as DEST in environment setting.

4.3 Compile

Written source codes will be compiled to work on Eddy.

4.3.1

Compiling on Windows

Compiling on Windows environment is simple. Type in “make” command through cmd(command prompt) in

directory where Makefile is located. As shown below, if successfully compiled, execution file named Hello_World

will be created. Of course, as this file was cross-compiled, it can not run on Windows environment. Upload this file

to Eddy with a FTP to execute this file on Eddy, (Files uploaded with FTPs are not permanently saved on Eddy.).

This will be further explained on next chapter, Chpater 5 Creating Firmware.

clean:

rm *.bak *.o


release:

cp -f $(TARGET) $(DEST)
cp -f sb_default_config $(DEST_ETC)

all : $(TARGET)

udp : udp.o

rm -f $@

$(CC) $(CFLAGS) $(LDFLAGS) $(IFLAGS) -o $@ $ [email protected] $(LIBS)

$(STRIP)

$@


def : def.o

rm -f $@

$(CC) $(CFLAGS) $(LDFLAGS) $(IFLAGS) -o $@ $ [email protected] $(LIBS)

$(STRIP)

$@


Hello_World : Hello_World.o

Rm -f $@

$(CC) $(CFLAGS) $(LDFLAGS) $(IFLAGS) -o $@ $ [email protected]

$(STRIP)

$@

Advertising