Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1672 | tullio | 1 | FIRST Framework Evaluation architecture |
2 | --------------------------------------- |
||
3 | |||
4 | makefile usage: |
||
5 | |||
6 | $ make OS=<osname> TEST=<demo> all |
||
7 | |||
8 | where: |
||
9 | |||
10 | <osname> is the name of the target operating system and it can be: |
||
11 | |||
12 | - MARTE for MaRTE OS |
||
13 | - SHARK for Shark |
||
14 | |||
15 | <demo> is the name of the test case that have to be compiled. The |
||
16 | specification of the test case is contained inside the loadfile |
||
17 | directory. |
||
18 | |||
19 | Valid extensions for the test case specification files are: |
||
20 | .fsf - old script file |
||
21 | .fsf2 - XML version |
||
22 | (other extensions can be added easily) |
||
23 | |||
24 | For example: |
||
25 | |||
26 | make OS=SHARK TEST=load all |
||
27 | |||
28 | these makefile will: |
||
29 | - prepare the out directory with the common files |
||
30 | - add the shark initialization files |
||
31 | - parse a file loadfile/load.fsf (the file extension is guessed automatically |
||
32 | by the makefile) to produce source code inside out |
||
33 | - compile the resulting shark application |
||
34 | |||
35 | ------------------------------------------------------------------------- |
||
36 | |||
37 | XML Parser & Java setup |
||
38 | |||
39 | To use the XML parser (file extension .fsf2) you need to properly setup |
||
40 | your system, and you need toinstall the following libraries: |
||
41 | |||
42 | - JDOM BETA 9 - http://www.jdom.org |
||
43 | - XERCES (Parser SAX with XSD support) - http://xml.apache.org |
||
44 | |||
45 | On my Linux system, after installing the Sun's j2re, |
||
46 | I did the following commands (as root): |
||
47 | |||
48 | # mkdir j |
||
49 | # cd j |
||
50 | # wget http://www.jdom.org/dist/binary/jdom-b9.tar.gz |
||
51 | # tar xvzf jdom-b9.tar.gz |
||
52 | # cp jdom-b9/build/jdom.jar /usr/java/j2re1.4.1_02/lib/ |
||
53 | # wget http://www.apache.org/dist/xml/xerces-j/Xerces-J-bin.2.6.0.tar.gz |
||
54 | # tar xvzf Xerces-J-bin.2.6.0.tar.gz |
||
55 | # cp ./xerces-2_6_0/xercesImpl.jar /usr/java/j2re1.4.1_02/lib/ |
||
56 | # cp ./xerces-2_6_0/xml-apis.jar /usr/java/j2re1.4.1_02/lib/ |
||
57 | |||
58 | then, as user, I did |
||
59 | |||
60 | $ export CLASSPATH=/usr/java/j2re1.4.1_02/lib |
||
61 | |||
62 | Enjoy, |
||
63 | |||
64 | Michael, Giacomo, PJ |