5 SERPENT_OBJ = main-serpent-test.o debug.o uart.o serial-tools.o serpent.o
6 CAMELLIA_OBJ = main-camellia-test.o debug.o uart.o serial-tools.o camellia.o camellia-asm.o
7 SKIPJACK_OBJ = main-skipjack-test.o debug.o uart.o serial-tools.o skipjack.o
8 SHA1_OBJ = main-sha1-test.o debug.o uart.o serial-tools.o sha1-asm.o
9 MD5_OBJ = main-md5-test.o debug.o uart.o serial-tools.o md5.o
10 CAST5_OBJ = main-cast5-test.o debug.o uart.o serial-tools.o cast5.o
11 RC6_OBJ = main-rc6-test.o debug.o uart.o serial-tools.o rc6.o
12 Multi_OBJ = main.o debug.o uart.o serial-tools.o sha256-asm.o xtea-asm.o arcfour-asm.o prng.o cast5.o
13 DES_OBJ = main-des-test.o debug.o uart.o serial-tools.o des.o
14 TDES_OBJ = main-tdes-test.o debug.o uart.o serial-tools.o des.o
15 SEED_OBJ = main-seed-test.o debug.o uart.o serial-tools.o seed.o seed-asm.o
16 SHABEA_OBJ = main-shabea-test.o debug.o uart.o serial-tools.o shabea.o sha256-asm.o
22 FLASHCMD = avrdude -p $(MCU_TARGET) -P /dev/ttyUSB0 -c avr911 -U flash:w:$(PRG).hex
23 # -U eeprom:w:$(PRG)_eeprom.hex
24 #uisp -dprog=bsd -dlpt=/dev/parport1 --upload if=$(PRG).hex
30 # You should not have to change anything below here.
34 # Override is only needed by avr-lib build system.
36 override CFLAGS = -pedantic -std=c99 -Wall -Wstrict-prototypes $(OPTIMIZE) -mmcu=$(MCU_TARGET)
38 override LDFLAGS = -Wl,-Map,$(PRG).map
39 override ASFLAGS = -mmcu=$(MCU_TARGET)
44 all: $(PRG).elf lst text eeprom
47 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
52 rm -rf *.o $(PRG).elf *.eps *.png *.pdf *.bak
53 rm -rf *.lst *.map $(EXTRA_CLEAN_FILES)
62 $(OBJDUMP) -h -S $< > $@
64 # Rules for building the .text rom images
73 $(OBJCOPY) -j .text -j .data -O ihex $< $@
76 $(OBJCOPY) -j .text -j .data -O srec $< $@
79 $(OBJCOPY) -j .text -j .data -O binary $< $@
81 # Rules for building the .eeprom rom images
83 eeprom: ehex ebin esrec
85 ehex: $(PRG)_eeprom.hex
86 ebin: $(PRG)_eeprom.bin
87 esrec: $(PRG)_eeprom.srec
90 $(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O ihex $< $@
93 $(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O srec $< $@
96 $(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O binary $< $@
98 # Every thing below here is used by avr-libc's build system and can be ignored
102 EXTRA_CLEAN_FILES = *.hex *.bin *.srec
111 $(FIG2DEV) -L eps $< $@
114 $(FIG2DEV) -L pdf $< $@
117 $(FIG2DEV) -L png $< $@