source: avrstuff/chiptest/Makefile@ 7d84448

main
Last change on this file since 7d84448 was 6390cc3, checked in by Adrien Destugues <pulkomandy@…>, 7 years ago

chiptest: Start to hack on ATmega128 and STK500 devboard.

  • Set the proper clock for it (generated by the STK500 master MCU, did

not get crystal working reliably yet)

  • Instead of just 'H', generate the whole alphabet for more action!
  • Use ATmega128 since that's what happens to be seated on my board for

now.

  • Property mode set to 100644
File size: 476 bytes
RevLine 
[6390cc3]1# STK500
2F_CPU=3800000
3MCU=atmega128
4
[f51aacc]5# K4KUSB
[6390cc3]6#F_CPU=12000000
7#MCU=attiny2313
[f51aacc]8
9# muSerial
10# F_CPU=20000000
[6390cc3]11#MCU=attiny2313
[f51aacc]12
13# Common
[6d8c366]14BAUD=9600
[f51aacc]15
16all: blinkdel.hex
17
18include ../kbd/common.mk
19
[6390cc3]20COMPILE = $(CC) -Wall -std=c99 $(CFLAGS) -I../libs/usart/
[6d8c366]21
22VPATH=../libs/usart/
[98713b5]23
24#Rules
25
[6390cc3]26$(MCU).bin: main.o usart.o
[6d8c366]27 $(COMPILE) $^ -o $@
[98713b5]28
29main.o: main.c
[6d8c366]30 $(COMPILE) -c $^ -o $@
[98713b5]31
32#Generic rules
33.S.o:
34 $(COMPILE) -x assembler-with-cpp -c $< -o $@
35
36.c.o:
37 $(COMPILE) -std=c99 -c $< -o $@
38
Note: See TracBrowser for help on using the repository browser.