source: avrstuff/kbd/common.mk@ f51aacc

main
Last change on this file since f51aacc was f51aacc, checked in by Adrien Destugues <pulkomandy@…>, 10 years ago

Convert muserial test to common.mk.

git-svn-id: svn://pulkomandy.tk/avrstuff@104 c6672c3c-f6b6-47f9-9001-1fd6b12fecbe

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