Fusion des 3 projets
This commit is contained in:
parent
18f7c1e2c0
commit
6cb6e78023
2 changed files with 41 additions and 0 deletions
41
Makefile
41
Makefile
|
|
@ -0,0 +1,41 @@
|
||||||
|
SOURCE=null
|
||||||
|
QUOI=null
|
||||||
|
|
||||||
|
default:
|
||||||
|
@echo "Specifiez une cible [projet|clean|exec]"
|
||||||
|
|
||||||
|
projet:
|
||||||
|
$(MAKE) -C Compilateur build
|
||||||
|
$(MAKE) -C CrossAssembleur build
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(MAKE) -C Compilateur clean
|
||||||
|
$(MAKE) -C CrossAssembleur clean
|
||||||
|
|
||||||
|
exec:
|
||||||
|
ifeq ($(SOURCE),null)
|
||||||
|
@echo "USAGE : make exec SOURCE=\"file_name\" QUOI=\"[compile|cross_asm|load|all]\""
|
||||||
|
else ifeq ($(QUOI),null)
|
||||||
|
@echo "USAGE : make exec SOURCE=\"file_name\" QUOI=\"[compile|cross_asm|load|all]\""
|
||||||
|
else
|
||||||
|
ifeq ($(QUOI),compile)
|
||||||
|
cat $(SOURCE).c | Compilateur/rondoudou_gcc
|
||||||
|
mv output.txt $(SOURCE).memasm
|
||||||
|
else ifeq ($(QUOI),cross_asm)
|
||||||
|
cat $(SOURCE).memasm | CrossAssembleur/rondoudou_cross_assembleur
|
||||||
|
mv output.asm $(SOURCE).regasm
|
||||||
|
mv output.bin $(SOURCE).bin
|
||||||
|
else ifeq ($(QUOI),load)
|
||||||
|
@echo "Non encore supporté"
|
||||||
|
else ifeq ($(QUOI),all)
|
||||||
|
cat $(SOURCE).c | Compilateur/rondoudou_gcc
|
||||||
|
mv output.txt $(SOURCE).memasm
|
||||||
|
cat $(SOURCE).memasm | CrossAssembleur/rondoudou_cross_assembleur
|
||||||
|
mv output.asm $(SOURCE).regasm
|
||||||
|
mv output.bin $(SOURCE).bin
|
||||||
|
else
|
||||||
|
@echo "USAGE : make exec SOURCE=\"file_name\" QUOI=\"[compile|cross_asm|load|all]\""
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in a new issue