source: avrstuff/kbd/common.mk@ b83dc2a

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

Fix ps2toserial build.

  • Share relevant stuff in common.mk so I don't have to repeat myself too much and copypaste all the time.
  • Prepare for MCU switchability.

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

  • Property mode set to 100644
File size: 412 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 pattern-rules
10%.hex: %.bin
11 $(OBJCOPY) -j .text -j .data -O ihex $^ $@
12
Note: See TracBrowser for help on using the repository browser.