Browse Source

Fin merge et maj Makefile

Paul Faure 2 years ago
parent
commit
cb3d44a27c
4 changed files with 30 additions and 4 deletions
  1. 1
    1
      Interpreteur
  2. 1
    1
      InterpreteurRegistres
  3. 27
    1
      Makefile
  4. 1
    1
      Processeur

+ 1
- 1
Interpreteur

@@ -1 +1 @@
1
-Subproject commit 725e0125079b6bde8ad032a3be21910980900ec4
1
+Subproject commit 9b91ac00367bf25679448763cbc02c132bcaf090

+ 1
- 1
InterpreteurRegistres

@@ -1 +1 @@
1
-Subproject commit cf119a9a257d0885c86920f0cd6945cbbf4134fa
1
+Subproject commit bc036e3c948c7efc893f07195dbec34e9e20c446

+ 27
- 1
Makefile View File

@@ -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]\""

+ 1
- 1
Processeur

@@ -1 +1 @@
1
-Subproject commit a70b442150f8ff4e8974c10559c3db47109a5609
1
+Subproject commit 1c8364b30d5f956cf5b101acc7feec19d849cda9

Loading…
Cancel
Save