Changeset ea32107 in avrstuff for kbd/ps2toserial/code/Makefile


Ignore:
Timestamp:
Jul 31, 2014, 10:13:43 PM (10 years ago)
Author:
Adrien Destugues <pulkomandy@…>
Branches:
main
Children:
87ab18e
Parents:
c7cc629
Message:

kbd: working XTK on ATtiny2313

  • Move more stuff to common.mk and handle multicpu support
  • Fix some pins mixups to get things working

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kbd/ps2toserial/code/Makefile

    rc7cc629 rea32107  
     1# Board settings
     2
     3# K4KUSB
    14MCU=attiny2313
     5F_CPU=12000000
    26
    3 all: $(MCU).hex
     7# Generic settings
     8BAUD=9600
     9
    410
    511include ../../common.mk
    6 
    7 $(MCU):
    8         mkdir -p $(MCU)
    912
    1013$(MCU).bin: $(MCU)/keyboard.o $(MCU)/usart.o $(MCU)/main.o
     
    1215
    1316$(MCU)/main.o: main.c $(LIBS)/usart/usart.h $(LIBS)/ps2_keyboard/ps2_keyboard.h $(MCU)
    14         $(CC) -c $< -Os -o $@ -mmcu=$(MCU) -Os
     17        $(CC) $(CFLAGS) -c $< -o $@
    1518
    1619$(MCU)/usart.o: $(LIBS)/usart/usart.c $(LIBS)/usart/usart.h $(MCU)
    17         $(CC) -c $< -o $@ -mmcu=$(MCU) -Os
     20        $(CC) $(CFLAGS) -c $< -o $@
    1821
    1922$(MCU)/keyboard.o: $(LIBS)/ps2_keyboard/ps2_keyboard.c $(LIBS)/ps2_keyboard/ps2_keyboard.h $(LIBS)/ps2_keyboard/keymap.h $(MCU)
    20         $(CC) -c $< -mmcu=$(MCU) -Os -o $@
     23        $(CC) $(CFLAGS) -c $< -o $@
Note: See TracChangeset for help on using the changeset viewer.