mirror of
git://projects.qi-hardware.com/nn-usb-fpga.git
synced 2025-04-21 12:27:27 +03:00
Adding RFM22b Example.
This commit is contained in:
25
Examples/UNFURO/RF/Makefile
Normal file
25
Examples/UNFURO/RF/Makefile
Normal file
@@ -0,0 +1,25 @@
|
||||
MCU = atmega168
|
||||
CC = avr-gcc
|
||||
OBJCOPY= avr-objcopy
|
||||
CFLAGS = -g -mmcu=$(MCU) -Wall -Wstrict-prototypes -O0 -mcall-prologues
|
||||
BINDIR = binary
|
||||
TARGET = prog
|
||||
|
||||
OBJECTS = main.o
|
||||
|
||||
.PHONY: all
|
||||
|
||||
all: $(TARGET).hex
|
||||
|
||||
prog.hex : main.out
|
||||
$(OBJCOPY) -R .eeprom -O ihex main.out $(BINDIR)/$(TARGET).hex
|
||||
|
||||
main.out : $(OBJECTS)
|
||||
$(CC) $(CFLAGS) -o main.out -Wl,-Map,main.map $(OBJECTS) -lm
|
||||
avr-size main.out
|
||||
|
||||
main.o : main.c
|
||||
$(CC) $(CFLAGS) -Os -c main.c
|
||||
|
||||
clean:
|
||||
rm -f *.o *.map *.out *.hex $(BINDIR)/$(TARGET).hex
|
||||
Reference in New Issue
Block a user