/demos/trunk/loader/shark/shark.mak |
---|
0,0 → 1,15 |
ifndef BASE |
BASE=../../.. |
endif |
include $(BASE)/config/config.mk |
PROGS = TEST |
include $(BASE)/config/example.mk |
TEST: |
make -f $(SUBMAKE) APP="nload" BASE=../../.. INIT= OTHEROBJS="event.o initfile.o shark.o fsfinit.o" OTHERINCL="-I." SHARKOPT="__OLDCHAR__ __FIRST__" |
mv nload TEST |
touch nload |
/demos/trunk/loader/shark/makefile.in |
---|
0,0 → 1,14 |
# |
# Shark dependecies |
# |
os_specific_dep: out/shark.done out/makefile |
out/shark.done: |
cd out; cp -sf ../shark/*.c . |
cd out; cp -sf ../shark/*.h . |
touch out/shark.done |
out/makefile: shark/shark.mak |
sed -e "s/TEST/$(TEST)/" shark/shark.mak > out/makefile |
/demos/trunk/loader/shark/shark.c |
---|
1,5 → 1,5 |
#include "func.h" |
#include "common/calibrate.h" |
#include "calibrate.h" |
extern int cal_cycles; |
extern struct timespec zero_time; |
/demos/trunk/loader/shark/shark.h |
---|
1,8 → 1,8 |
#ifndef __SHARK_H__ |
#define __SHARK_H__ |
#include "common/nload.h" |
#include "common/lconst.h" |
#include "nload.h" |
#include "lconst.h" |
int calibrate_cycle(); |
void start_simulation(); |
/demos/trunk/loader/marte/makefile.in |
---|
0,0 → 1,7 |
# |
# MaRTE OS dependecies |
# |
os_specific_dep: |
echo MaRTE dependencies here |
/demos/trunk/loader/generators/makefile |
---|
1,11 → 1,9 |
all: |
event_gen: |
gcc -o lparser.o -c -Wall lparser.c -I. -I.. |
gcc -o lread.o -c -Wall lread.c -I. -I.. |
gcc -o event_gen -Wall lparser.o lread.o -I. -I.. -lc event_gen.c |
clean: |
rm -f *.o |
rm -f event_gen |
/demos/trunk/loader/readme.txt |
---|
0,0 → 1,20 |
FIRST Framework Evaluation architecture |
--------------------------------------- |
makefile usage: |
$ make OS=<osname> TEST=<demo> all |
where: |
<osname> is the name of the target operating system and it can be: |
- MARTE for MaRTE OS |
- SHARK for Shark |
<demo> is the name of the test case that have to be compiled. The |
specification of the test case is contained inside the loadfile |
directory. |
Valid extensions for the test case specification file are: .fsf |
/demos/trunk/loader/makefile |
---|
1,23 → 1,71 |
# |
# help can be found in readme.txt |
# |
# ----------------------------------------------------- |
# |
# OS dependent variables: |
ifndef BASE |
BASE=../.. |
# all the OS dependent variables and dependencies are under $(OS)/makefile.in |
# This makefile will execute the dependency os_specific_dep to "fill" |
# the out directory with OS-specific stuffs; Then, the makefile |
# generated in the out directory will be executed with $(TEST) as |
# parameter. |
ifeq ($(OS),MARTE) |
OSINCLUDE=marte/makefile.in |
endif |
include $(BASE)/config/config.mk |
PROGS = nload |
ifeq ($(OS),SHARK) |
OSINCLUDE=shark/makefile.in |
endif |
include $(BASE)/config/example.mk |
# ----------------------------------------------------- |
nload: |
make -f $(SUBMAKE) APP="./common/nload" INIT= OTHEROBJS="./generators/event.o ./shark/initfile.o ./shark/shark.o ./shark/fsfinit.o" OTHERINCL="-I. -I./shark" SHARKOPT="__OLDCHAR__ __FIRST__" |
.PHONY: all clean help |
allclean: |
help: |
cat readme.txt |
rm -f common/*.o |
rm -f shark/*.o |
rm -f generators/*.o |
rm -f common/nload |
all: out out/common.done out/$(TEST).done os_specific_dep |
make -C out $(TEST) |
clean: |
make -C generators clean |
rm -rf out |
out/common.done: |
cd out; cp -sf ../common/*.c . |
cd out; cp -sf ../common/*.h . |
touch out/common.done |
# note: the out dependency is present only in the "all" dependency |
# (there is some strange case with the updating of the out date that I |
# do not know how to resolve... |
out: |
mkdir out |
# ----------------------------------------------------- |
# |
# Testcase generation |
# .FSF Format |
# ----------------------- |
generators/event_gen: |
make -C generators event_gen |
out/%.done: loadfile/%.fsf generators/event_gen |
cd out; ../generators/event_gen ../loadfile/$(TEST).fsf |
touch out/$*.done |
# other file formats |
# ----------------------- |
out/%.done: loadfile/%.otherformat |
echo Other file formats that are not specified yet... |
touch out/$*.done |
include $(OSINCLUDE) |