Makefile 741 Bytes
Newer Older
1
all:
2
3
4
	@echo "###" >&2
	@echo "### Atmel AVR targets ###" >&2
	@echo "###" >&2
5
6
	@echo "Do 'make PROCESS.LOAD' or 'make PROCESS.FUSE'" >&2
	@echo "where PROCESS is one of" >&2
7
8
9
10
11
12
13
	@./tools/find_avr_targets
	@echo "###" >&2
	@echo "### Linux targets ###" >&2
	@echo "###" >&2
	@echo "Do 'make PROGRAM.LINUX'" >&2
	@echo "where PROGRAM is one of" >&2
	@./tools/find_linux_targets
14
15
16
	@echo >&2
	@exit 1

Anders Blomdell's avatar
Anders Blomdell committed
17
18
19
20
21
22
%.CLEAN:
	for d in $$(./tools/find_linux_targets $*) \
		 $$(./tools/find_avr_targets $*) ; do \
	    make -C $${d} $@ ; \
	done

23
%.LOAD:
24
	make -C $$(./tools/find_avr_targets $*) $@
25

26
27
28
%.VERIFY:
	make -C $$(./tools/find_avr_targets $*) $@

29
%.FUSE:
30
31
32
33
	make -C $$(./tools/find_avr_targets $*) $@

%.LINUX:
	make -C $$(./tools/find_linux_targets $*) $@
Anders Blomdell's avatar
Anders Blomdell committed
34