source: avrstuff/grip2hid/Makefile@ bbcd1f8

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

Rewrite main loop in non-blocking way

Otherwise it is not possible to handle multiple pads at the same time.

  • Property mode set to 100644
File size: 456 bytes
Line 
1#Set vars
2MCU=at90usb1287
3COMPILE = avr-gcc -Wall -Wextra -Werror -Os -Iusbdrv -I. -mmcu=$(MCU) -DF_CPU=16000000
4PROJECT=grip2hid
5
6#Rules
7$(PROJECT).hex: $(PROJECT).bin
8 avr-objcopy -j .text -j .data -O ihex $^ $@
9
10$(PROJECT).bin: main.o
11 $(COMPILE) $^ -o $@
12
13#Generic rules
14.S.o:
15 $(COMPILE) -x assembler-with-cpp -c $< -o $@
16
17.cpp.o:
18 $(COMPILE) -c $< -o $@
19
20flash: $(PROJECT).hex
21 avrdude -u -c flip1 -p $(MCU) -Uflash:w:$^
22
23clean:
24 rm *.bin *.hex *.o
Note: See TracBrowser for help on using the repository browser.