usb-avr-cpld experiment board with FTDI FT232RL, ATMEGA88 & XC9572XL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

24 lines
589 B

#AVR-GCC Makefile
PROJECT = avrtest
SOURCES = src/avrtest.c
CC = avr-gcc
OBJCOPY = avr-objcopy
MMCU = atmega88
DUMMY_BINARY:=$(shell mkdir -p binary)
CFLAGS = -mmcu=$(MMCU) -Wall -Os -std=gnu99
compile : binary/$(PROJECT).out
binary/$(PROJECT).hex: binary/$(PROJECT).out
$(OBJCOPY) -j .text -O ihex binary/$(PROJECT).out binary/$(PROJECT).hex
binary/$(PROJECT).out: $(SOURCES)
$(CC) $(CFLAGS) -I./ -o binary/$(PROJECT).out $(SOURCES)
program: binary/$(PROJECT).hex
avrdude -p m88 -c buspirate -P /dev/cu.PL2303-003012FA -e -U flash:w:binary/$(PROJECT).hex
clean:
rm -rf binary/