|
@@ -2,7 +2,24 @@ SOURCE=null
|
2
|
2
|
QUOI=null
|
3
|
3
|
|
4
|
4
|
default:
|
5
|
|
- @echo "Specifiez une cible [compile|clean|exec]"
|
|
5
|
+ @echo "Specifiez une cible [secure|unsecure|compile|exec|exec_secure|exec_unsecure|clean]"
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+secure:
|
|
11
|
+ @sed -i 's/#define SECURISED (0)/#define SECURISED (1)/g' Interpreteur/Tables/tables.c InterpreteurRegistres/Tables/tables.c Compilateur/Lex_Yacc/as.y
|
|
12
|
+ @sed -i 's/constant SECURISED : boolean := false;/constant SECURISED : boolean := true;/g' Processeur/Processeur.srcs/sources_1/new/System.vhd
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+unsecure:
|
|
18
|
+ @sed -i 's/#define SECURISED (1)/#define SECURISED (0)/g' Interpreteur/Tables/tables.c InterpreteurRegistres/Tables/tables.c Compilateur/Lex_Yacc/as.y
|
|
19
|
+ @sed -i 's/constant SECURISED : boolean := true;/constant SECURISED : boolean := false;/g' Processeur/Processeur.srcs/sources_1/new/System.vhd
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
6
|
23
|
|
7
|
24
|
compile:
|
8
|
25
|
ifeq ($(QUOI),null)
|
|
@@ -49,6 +66,15 @@ clean:
|
49
|
66
|
$(MAKE) -C CrossAssembleur clean
|
50
|
67
|
@rm -f ./*.memasm ./*.regasm ./*.bin
|
51
|
68
|
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+exec_secure: secure compile exec
|
|
73
|
+
|
|
74
|
+exec_unsecure: unsecure compile exec
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
52
|
78
|
exec:
|
53
|
79
|
ifeq ($(SOURCE),null)
|
54
|
80
|
@echo "USAGE : make exec SOURCE=\"file_name\" QUOI=\"[compile|interprete|interprete_registres|cross_assemble|load|all]\""
|