source: avrstuff/aktoserial/code/Makefile@ 08d5388

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

Should-be_working version (but its not)

  • Amiga to usb keycodemap
  • Sending hid reports when a key is pressed

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

  • Property mode set to 100644
File size: 831 bytes
Line 
1#Set vars
2COMPILE = avr-gcc -Wall -Os -Iusbdrv -I. -mmcu=atmega8 -DF_CPU=16000000
3
4#Rules
5keyboard.hex: keyboard.bin
6 avr-objcopy -j .text -j .data -O ihex keyboard.bin keyboard.hex
7
8keyboard.bin: keyboard.o main.o usbdrv/usbdrv.o usbdrv/usbdrvasm.o
9 $(COMPILE) keyboard.o main.o usbdrv/usbdrvasm.o usbdrv/usbdrv.o -o keyboard.bin
10
11main.o: main.c ../../libs/amiga_keyboard/amiga_keyboard.h
12 $(COMPILE) -c main.c -mmcu=atmega8 -Os -o main.o -mmcu=atmega8 -Os -I../../libs/ -I.
13
14keyboard.o: ../../libs/amiga_keyboard/amiga_keyboard.c ../../libs/amiga_keyboard/amiga_keyboard.h ../../libs/amiga_keyboard/keymap.h
15 $(COMPILE) -c ../../libs/amiga_keyboard/amiga_keyboard.c -mmcu=atmega8 -Os -o keyboard.o
16
17#Generic rules
18.S.o:
19 $(COMPILE) -x assembler-with-cpp -c $< -o $@
20
21.c.o:
22 $(COMPILE) -std=c99 -c $< -o $@
Note: See TracBrowser for help on using the repository browser.