summaryrefslogtreecommitdiff
path: root/digital/avr/modules/twi/test/Makefile
blob: 1af68de3ba82e54ddf0db7cd1881baeef38ca2f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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: subclean
	# 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

subclean:
	# General cleaning
	$(MAKE) -f Makefile.slave clean
	$(MAKE) -f Makefile.master clean

clean: subclean
	rm -f test_twi_master.keep.hex test_twi_sl.keep.hex