summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Dufour2008-03-02 22:23:21 +0100
committerJérémy Dufour2008-03-02 22:23:21 +0100
commite1f7db670b2e5aab68073fe2192f228debd4c78a (patch)
treed43786da20abcf023114a35aee507007a799f7d1
parent2fde463837af6a7e2ffd0ef84874646d501597c2 (diff)
* avr/modules/twi
- add a Makefile to help you build the test program.
-rw-r--r--digital/avr/modules/twi/test/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/digital/avr/modules/twi/test/Makefile b/digital/avr/modules/twi/test/Makefile
new file mode 100644
index 00000000..a5ba612e
--- /dev/null
+++ b/digital/avr/modules/twi/test/Makefile
@@ -0,0 +1,16 @@
+# Quick dirty makefile to help you build the test program for twi.
+# It is required to clean before building each program because they share the
+# same object with different defines.
+# Files are copied in *.keep.hex.
+all:
+ # General cleaning
+ $(MAKE) -f Makefile.slave clean
+ $(MAKE) -f Makefile.master clean
+ # Slave
+ $(MAKE) -f Makefile.slave
+ cp test_twi_sl.hex test_twi_sl.keep.hex
+ $(MAKE) -f Makefile.slave clean
+ # Master
+ $(MAKE) -f Makefile.master
+ cp test_twi_master.hex test_twi_master.keep.hex
+ $(MAKE) -f Makefile.master clean