main
Line | |
---|
1 | # Executables (with Haiku hybrids support)
|
---|
2 | CC := $(shell { which avr-gcc || which avr-gcc-x86; } 2>/dev/null)
|
---|
3 | OBJCOPY := $(shell { which avr-objcopy || which avr-objcopy-x86; } 2>/dev/null)
|
---|
4 | AVRDUDE := $(shell { which avrdude || which avrdude-x86; } 2>/dev/null)
|
---|
5 |
|
---|
6 | # Some useful paths (relative to each project)
|
---|
7 | LIBS=../../../libs
|
---|
8 |
|
---|
9 | # Generic rules
|
---|
10 | %.hex: %.bin
|
---|
11 | $(OBJCOPY) -j .text -j .data -O ihex $^ $@
|
---|
12 |
|
---|
13 | clean:
|
---|
14 | rm *.bin *.o *.hex
|
---|
Note:
See
TracBrowser
for help on using the repository browser.