Début TP4

This commit is contained in:
Geoffrey Frogeye 2017-06-09 12:30:34 +02:00
parent 6ca11e8fda
commit 162d381904
7 changed files with 589 additions and 0 deletions

39
TP4/Makefile Normal file
View file

@ -0,0 +1,39 @@
.PHONY: default cleantmp clean
#default: CR.pdf
##default: $(subst md,pdf,$(wildcard *.md))
#
## COMPTE-RENDU
#
#SOURCES=$(wildcard *.txt)
#
#%.pdf: %.html
# scripts/html2pdf -i "$<" -o "$@" -t "Tutorat de microprocesseurs S6 - TD1 Sujet 8"
#
#%.html: %.tmp template.html
# scripts/md2html -i "$<" -o "$@" -t template.html
#
#%.tmp: %.md $(SOURCES)
# scripts/node_modules/markedpp/bin/markedpp.js "$<" > "$@"
# PROGRAMME
%.asm: %.txt
wine ~/S6/uP/tutorat/scripts/Compilateur.exe ~/S6/uP/tutorat/scripts/gram.txt "$<" "$@"
%.hex: %.asm
wine ~/S6/uP/tutorat/scripts/gavrasm.exe "$<"
%.upload: %.hex
avrdude -C ~/S6/uP/tutorat/scripts/avrdude.conf -v -p atmega2560 -c wiring -P /dev/ttyACM0 -b 115200 -D -U flash:w:"$<":i
%.up: %.upload
serial:
minicom -D /dev/ttyACM0 -b 2400
clean:
rm -rf $(subst md,html,$(wildcard *.md)) *.tmp
rm -rf $(subst md,pdf,$(wildcard *.md))
rm -rf *.hex *.lst *.err