2 CXXFLAGS
= -O2
-g
-Wall
-mmcu
=atmega162
-DF_CPU
=8000000
3 CXXFLAGS2
= -O2
-g
-Wall
-mmcu
=atmega8
-DF_CPU
=8000000
8 all: deep_frame demo timer
test
9 deep_frame
: deep_frame.c
10 $(CXX
) $(CXXFLAGS
) -o deep_frame deep_frame.c
13 $(CXX
) $(CXXFLAGS
) -o demo demo.c
16 $(CXX
) $(CXXFLAGS
) -o timer timer.c
19 $(CXX
) $(CXXFLAGS
) -o
test test.c
22 $(CXX
) $(CXXFLAGS
) -o loop loop.c
25 $(CXX
) $(CXXFLAGS
) -o fib fib.c
28 $(CXX
) $(CXXFLAGS
) -o nsquared nsquared.c
30 usart
: usart_test.c midi.c
31 $(CXX
) $(CXXFLAGS
) -o usart usart_test.c midi.c
33 usart_int
: usart_test.c midi_int.c
34 $(CXX
) $(CXXFLAGS
) -o usart_int usart_test.c midi_int.c
37 $(CXX
) $(CXXFLAGS
) -o spi spi_test.c spi.c
39 eeprom
: eeprom.c spi.c eeprom_test.c
40 $(CXX
) $(CXXFLAGS
) -DHAVE_SPI
-o eeprom eeprom_test.c eeprom.c spi.c
42 adc
: adio.c adc_test.c
43 $(CXX
) $(CXXFLAGS2
) -o adc adc_test.c adio.c
45 flash_test
: flash_test.c
46 $(CXX
) $(CXXFLAGS
) -o flash_test flash_test.c
48 test_eeprom
: test_eeprom.asm
49 $(ASM
) $(ASMFLAGS
) -o test_eeprom test_eeprom.asm
51 test_cntr
: test_cntr.asm
52 $(ASM
) $(ASMFLAGS
) -o test_cntr test_cntr.asm