Subversion Repositories shark

Rev

Rev 1259 | Rev 1279 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1199 giacomo 1
#
1259 pj 2
# help can be found in readme.txt
1199 giacomo 3
#
1259 pj 4
 
5
# -----------------------------------------------------
1199 giacomo 6
#
1259 pj 7
# OS dependent variables:
1199 giacomo 8
 
1259 pj 9
# all the OS dependent variables and dependencies are under $(OS)/makefile.in
10
 
11
# This makefile will execute the dependency os_specific_dep to "fill"
12
# the out directory with OS-specific stuffs; Then, the makefile
13
# generated in the out directory will be executed with $(TEST) as
14
# parameter.
15
 
16
ifeq ($(OS),MARTE)
17
OSINCLUDE=marte/makefile.in
1199 giacomo 18
endif
19
 
1259 pj 20
ifeq ($(OS),SHARK)
21
OSINCLUDE=shark/makefile.in
22
endif
1199 giacomo 23
 
1259 pj 24
# -----------------------------------------------------
1199 giacomo 25
 
1259 pj 26
.PHONY: all clean help
1199 giacomo 27
 
1259 pj 28
help:
29
	cat readme.txt
1255 giacomo 30
 
1259 pj 31
all: out out/common.done out/$(TEST).done os_specific_dep
32
	make -C out $(TEST)
1255 giacomo 33
 
1273 giacomo 34
java: out out/common.done out_java/$(TEST).done os_specific_dep
35
	make -C out $(TEST)
36
 
1259 pj 37
clean:
38
	make -C generators clean
1273 giacomo 39
	make -C generators/java clean
1259 pj 40
	rm -rf out
41
 
42
out/common.done:
43
	cd out; cp -sf ../common/*.c .
44
	cd out; cp -sf ../common/*.h .
45
	touch out/common.done
46
 
47
# note: the out dependency is present only in the "all" dependency
48
# (there is some strange case with the updating of the out date that I
49
# do not know how to resolve...
50
out:
51
	mkdir out
52
 
53
# -----------------------------------------------------
54
#
55
# Testcase generation
56
 
57
# .FSF Format
58
# -----------------------
59
 
60
generators/event_gen:
61
	make -C generators event_gen
62
 
1273 giacomo 63
generators/java/Applicazione.class:
64
	make -C generators/java all
65
 
1259 pj 66
out/%.done: loadfile/%.fsf generators/event_gen
67
	cd out; ../generators/event_gen ../loadfile/$(TEST).fsf
68
	touch out/$*.done
69
 
1273 giacomo 70
out_java/%.done: loadfile/%.fsf generators/java/Applicazione.class
71
	cd generators/java; ./java_gen ../../loadfile/$(TEST).fsf; mv event.c ../../out/
72
	touch out/$*.done
1259 pj 73
 
74
# other file formats
75
# -----------------------
76
out/%.done: loadfile/%.otherformat
77
	echo Other file formats that are not specified yet...
78
	touch out/$*.done
79
 
80
include $(OSINCLUDE)