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:
502 bytes
|
Line | |
---|
1 | MCU=atmega8
|
---|
2 |
|
---|
3 | include ../../common.mk
|
---|
4 |
|
---|
5 | all: keyboard.hex
|
---|
6 |
|
---|
7 | keyboard.bin: keyboard.o usart.o main.o
|
---|
8 | $(CC) $^ -o $@ -mmcu=$(MCU) -Os
|
---|
9 |
|
---|
10 | main.o: main.c $(LIBS)/usart/usart.h $(LIBS)/ps2_keyboard/ps2_keyboard.h
|
---|
11 | $(CC) -c $< -Os -o $@ -mmcu=$(MCU) -Os
|
---|
12 |
|
---|
13 | usart.o: $(LIBS)/usart/usart.c $(LIBS)/usart/usart.h
|
---|
14 | $(CC) -c $< -o $@ -mmcu=$(MCU) -Os
|
---|
15 |
|
---|
16 | keyboard.o: $(LIBS)/ps2_keyboard/ps2_keyboard.c $(LIBS)/ps2_keyboard/ps2_keyboard.h $(LIBS)/ps2_keyboard/keymap.h
|
---|
17 | $(CC) -c $< -mmcu=$(MCU) -Os -o $@
|
---|
Note:
See
TracBrowser
for help on using the repository browser.