Fin merge et maj Makefile

This commit is contained in:
Paul Faure 2021-06-24 17:31:45 +02:00
parent b7270479a5
commit cb3d44a27c
4 changed files with 30 additions and 4 deletions

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

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

View file

@ -2,7 +2,24 @@ SOURCE=null
QUOI=null QUOI=null
default: default:
@echo "Specifiez une cible [compile|clean|exec]" @echo "Specifiez une cible [secure|unsecure|compile|exec|exec_secure|exec_unsecure|clean]"
secure:
@sed -i 's/#define SECURISED (0)/#define SECURISED (1)/g' Interpreteur/Tables/tables.c InterpreteurRegistres/Tables/tables.c Compilateur/Lex_Yacc/as.y
@sed -i 's/constant SECURISED : boolean := false;/constant SECURISED : boolean := true;/g' Processeur/Processeur.srcs/sources_1/new/System.vhd
unsecure:
@sed -i 's/#define SECURISED (1)/#define SECURISED (0)/g' Interpreteur/Tables/tables.c InterpreteurRegistres/Tables/tables.c Compilateur/Lex_Yacc/as.y
@sed -i 's/constant SECURISED : boolean := true;/constant SECURISED : boolean := false;/g' Processeur/Processeur.srcs/sources_1/new/System.vhd
compile: compile:
ifeq ($(QUOI),null) ifeq ($(QUOI),null)
@ -49,6 +66,15 @@ clean:
$(MAKE) -C CrossAssembleur clean $(MAKE) -C CrossAssembleur clean
@rm -f ./*.memasm ./*.regasm ./*.bin @rm -f ./*.memasm ./*.regasm ./*.bin
exec_secure: secure compile exec
exec_unsecure: unsecure compile exec
exec: exec:
ifeq ($(SOURCE),null) ifeq ($(SOURCE),null)
@echo "USAGE : make exec SOURCE=\"file_name\" QUOI=\"[compile|interprete|interprete_registres|cross_assemble|load|all]\"" @echo "USAGE : make exec SOURCE=\"file_name\" QUOI=\"[compile|interprete|interprete_registres|cross_assemble|load|all]\""

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