5 AVRCC = avr-gcc -Wall -Os -DF_CPU=$(F_CPU) $(CFLAGS) -mmcu=$(DEVICE)
7 OBJECTS = usbdrv/usbdrv.o usbdrv/usbdrvasm.o usbdrv/oddebug.o \
8 libs-device/osccal.o main.o
14 $(AVRCC) -x assembler-with-cpp -c $< -o $@
18 main.elf: $(OBJECTS) usbconfig.h
19 $(AVRCC) -o main.elf $(OBJECTS)
22 avr-objcopy -j .text -j .data -O ihex main.elf main.hex
26 rm -f $(OBJECTS) main.elf main.hex