Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1259 → Rev 1258

/demos/trunk/loader/readme.txt
File deleted
/demos/trunk/loader/marte/makefile.in
File deleted
/demos/trunk/loader/generators/makefile
1,9 → 1,11
event_gen:
all:
 
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/shark/makefile.in
File deleted
/demos/trunk/loader/shark/shark.mak
File deleted
/demos/trunk/loader/shark/shark.c
1,5 → 1,5
#include "func.h"
#include "calibrate.h"
#include "common/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 "nload.h"
#include "lconst.h"
#include "common/nload.h"
#include "common/lconst.h"
 
int calibrate_cycle();
void start_simulation();
/demos/trunk/loader/makefile
1,71 → 1,23
#
# help can be found in readme.txt
#
 
# -----------------------------------------------------
#
# OS dependent variables:
 
# 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
ifndef BASE
BASE=../..
endif
include $(BASE)/config/config.mk
 
ifeq ($(OS),SHARK)
OSINCLUDE=shark/makefile.in
endif
PROGS = nload
 
# -----------------------------------------------------
include $(BASE)/config/example.mk
 
.PHONY: all clean help
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__"
 
help:
cat readme.txt
allclean:
 
all: out out/common.done out/$(TEST).done os_specific_dep
make -C out $(TEST)
rm -f common/*.o
rm -f shark/*.o
rm -f generators/*.o
rm -f common/nload
 
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)