# we use the gnu make standard library
include gmsl
include avr-makefile.inc
-include *.mk
+include mkfiles/*.mk
ALGORITHMS = $(BLOCK_CIPHERS) $(STREAM_CIPHERS) $(HASHES) $(PRNGS) $(MACS)
ALGORITHMS_OBJ = $(patsubst %,%_OBJ, $(ALGORITHMS))
-ALGORITHMS_OBJ_IMM = $(foreach a, $(ALGORITHMS_OBJ), $($(a)))
+define OBJinBINDIR_TEMPLATE
+$(1) = $(2)
+endef
+$(foreach a, $(ALGORITHMS_OBJ), $(eval $(call OBJinBINDIR_TEMPLATE, $(a), $(patsubst %.o,$(BIN_DIR)%.o,$($(a))))))
ALGORITHMS_TEST_BIN = $(patsubst %,%_TEST_BIN, $(ALGORITHMS))
+$(foreach a, $(ALGORITHMS_TEST_BIN), $(eval $(call OBJinBINDIR_TEMPLATE, $(a), $(patsubst %.o,$(BIN_DIR)%.o,$($(a))))))
ALGORITHMS_TEST_BIN_MAIN = $(foreach a, $(ALGORITHMS_TEST_BIN), $(firstword $($(a))))
-ALGORITHMS_TEST_BIN_MAIN_ELF = $(patsubst %.o, %.elf, $(ALGORITHMS_TEST_BIN_MAIN))
-ALGORITHMS_TEST_BIN_MAIN_HEX = $(patsubst %.o, %.hex, $(ALGORITHMS_TEST_BIN_MAIN))
+ALGORITHMS_TEST_BIN_MAIN_ELF = $(patsubst $(BIN_DIR)%.o, $(TESTBIN_DIR)%.elf, $(ALGORITHMS_TEST_BIN_MAIN))
+ALGORITHMS_TEST_BIN_MAIN_HEX = $(patsubst $(BIN_DIR)%.o, $(TESTBIN_DIR)%.hex, $(ALGORITHMS_TEST_BIN_MAIN))
ALGORITHMS_TEST_BIN_IMM = $(foreach a, $(ALGORITHMS_TEST_BIN), $($(a)))
ALGORITHMS_NESSIE_TEST = $(patsubst %,%_NESSIE_TEST, $(ALGORITHMS))
ALGORITHMS_LC = $(call lc,$(ALGORITHMS))
-PRG = remove_me
#-------------------------------------------------------------------------------
$(LIBS)
endef
-$(foreach algo, $(ALGORITHMS), $(eval $(call BLA_TEMPLATE2, $(algo), $(patsubst %.o,%.elf,$(firstword $($(algo)_TEST_BIN))), $($(algo)_TEST_BIN) )))
+$(foreach algo, $(ALGORITHMS), $(eval $(call BLA_TEMPLATE2, $(algo), $(patsubst $(BIN_DIR)%.o,$(TESTBIN_DIR)%.elf,$(firstword $($(algo)_TEST_BIN))), $(patsubst %.o,%.o,$($(algo)_TEST_BIN)) )))
#-------------------------------------------------------------------------------
@echo " $(MACS)"
@echo " PRNG functions:"
@echo " $(PRNGS)"
-# @echo " LC functions:"
-# @echo " $(ALGORITHMS_LC)"
-
-# echo $(ALGORITHMS_TEST_BIN_MAIN)
-# echo $(ALGORITHMS)
-# echo $(firstword $(XTEA_TEST_BIN))
-# echo $(patsubst %.o,%.elf,$(firstword $(XTEA_TEST_BIN)))
-# echo $(ALGORITHMS_OBJ)
-# echo $(ALGORITHMS_OBJ_IMM)
-# echo $(ALGORITHMS_TEST_BIN)
-# echo $(ALGORITHMS_NESSIE_TEST)
-# echo $(ALGORITHMS_PERFORMANCE_TEST)
+
+$(BIN_DIR)%.o: %.c
+ @echo "[gcc]: $@"
+ @$(CC) $(CFLAGS) -c -o $@ $<
+
+$(BIN_DIR)%.o: %.S
+ @echo "[as] : $@"
+ @$(CC) $(ASFLAGS) -c -o $@ $<
%.o: %.c
@echo "[gcc]: $@"
- @$(CC) $(CFLAGS) -c -o $@ $<
+ @$(CC) $(CFLAGS) -c -o $@ $<
%.o: %.S
@echo "[as] : $@"
.PHONY: stats
stats: $(SIZESTAT_FILE)
-#$(patsubst %, %_size.txt, $(ALGORITHMS_LC))
$(SIZESTAT_FILE): $(patsubst %, %_size.txt, $(ALGORITHMS_LC))
.PHONY: clean
clean:
- rm -rf *.o *.elf *.eps *.png *.pdf *.bak *_size.txt
+ rm -rf $(BIN_DIR)*.o *.o $(TESTBIN_DIR)*.elf $(TESTBIN_DIR)* *.elf *.eps *.png *.pdf *.bak *_size.txt
rm -rf *.lst *.map $(EXTRA_CLEAN_FILES) $(SIZESTAT_FILE)
xclean: clean
- rm -rf *.d
+ rm -rf $(DEP_DIR)*.d
flash:
$(ERASECMD)
$(FLASHCMD)
-
-lst: $(PRG).lst
%.lst: %.elf
$(OBJDUMP) -h -S $< > $@
# Rules for building the .text rom images
-text: hex bin srec
-
-hex: $(PRG).hex
-bin: $(PRG).bin
-srec: $(PRG).srec
-
%.hex: %.elf
$(OBJCOPY) -j .text -j .data -O ihex $< $@
# Rules for building the .eeprom rom images
-eeprom: ehex ebin esrec
-
-ehex: $(PRG)_eeprom.hex
-ebin: $(PRG)_eeprom.bin
-esrec: $(PRG)_eeprom.srec
%_eeprom.hex: %.elf
$(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O ihex $< $@
FIG2DEV = fig2dev
EXTRA_CLEAN_FILES = *.hex *.bin *.srec
-dox: eps png pdf
-
-eps: $(PRG).eps
-png: $(PRG).png
-pdf: $(PRG).pdf
-
%.eps: %.fig
$(FIG2DEV) -L eps $< $@
$(FIG2DEV) -L png $< $@
-DEPS := $(wildcard *.d)
+DEPS := $(wildcard $(DEP_DIR)*.d)
+
ifneq ($(DEPS),)
include $(DEPS)
endif
+++ /dev/null
-# Makefile for ARCFOUR (RC4 compatible)
-ALGO_NAME := ARCFOUR
-
-# comment out the following line for removement of ARCFOUR from the build process
-STREAM_CIPHERS += $(ALGO_NAME)
-
-$(ALGO_NAME)_OBJ := arcfour-asm.o
-$(ALGO_NAME)_TEST_BIN := main-arcfour-test.o debug.o uart.o serial-tools.o \
- nessie_stream_test.o nessie_common.o arcfour-asm.o
-$(ALGO_NAME)_NESSIE_TEST := "nessie"
-$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
-
OPTIMIZE = -Os
DEFS = -D$(call uc, $(MCU_TARGET))
FLASHCMD = avrdude -p $(MCU_TARGET) -P /dev/ttyUSB0 -c avr911 -U flash:w:# no space at the end
-
+DEP_DIR = deps/
+BIN_DIR = bin/
+TESTBIN_DIR = test_bin/
#uisp -dprog=bsd -dlpt=/dev/parport1 --upload if=$(PRG).hex
ERASECMD =
CC = avr-gcc
-override CFLAGS = -MMD -pedantic -std=c99 -Wall -Wstrict-prototypes $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)
+override CFLAGS = -MMD -MF$(DEP_DIR)$(patsubst %.c,%.d,$^) -pedantic -std=c99 -Wall -Wstrict-prototypes $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)
override LDFLAGS = -Wl,-Map,
override ASFLAGS = -mmcu=$(MCU_TARGET)
+++ /dev/null
-# Makefile for camellia
-ALGO_NAME := CAMELLIA
-
-# comment out the following line for removement of serpent from the build process
-BLOCK_CIPHERS += $(ALGO_NAME)
-
-# main-camellia-test.o debug.o uart.o serial-tools.o camellia.o camellia-asm.o
-$(ALGO_NAME)_OBJ := camellia.o camellia-asm.o
-$(ALGO_NAME)_TEST_BIN := main-camellia-test.o debug.o uart.o serial-tools.o \
- camellia.o camellia-asm.o
-$(ALGO_NAME)_NESSIE_TEST := "nessie"
-$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
-
+++ /dev/null
-# Makefile for CAST5
-ALGO_NAME := CAST5
-
-# comment out the following line for removement of CAST5 from the build process
-BLOCK_CIPHERS += $(ALGO_NAME)
-
-$(ALGO_NAME)_OBJ := cast5.o
-$(ALGO_NAME)_TEST_BIN := main-cast5-test.o debug.o uart.o serial-tools.o cli.o\
- cast5.o nessie_bc_test.o nessie_common.o performance_test.o
-$(ALGO_NAME)_NESSIE_TEST := "nessie"
-$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
-
+++ /dev/null
-# Makefile for DES
-ALGO_NAME := DES
-
-# comment out the following line for removement of DES from the build process
-BLOCK_CIPHERS += $(ALGO_NAME)
-
-$(ALGO_NAME)_OBJ := des.o
-$(ALGO_NAME)_TEST_BIN := main-des-test.o debug.o uart.o serial-tools.o des.o \
- nessie_bc_test.o nessie_common.o cli.o performance_test.o
-$(ALGO_NAME)_NESSIE_TEST := "nessie"
-$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
-
+++ /dev/null
-# Makefile for Entropium PRNG
-ALGO_NAME := ENTROPIUM
-
-# comment out the following line for removement of PRNG from the build process
-PRNGS += $(ALGO_NAME)
-
-$(ALGO_NAME)_OBJ := entropium.o sha256-asm.o
-$(ALGO_NAME)_TEST_BIN := main-entropium-test.o debug.o uart.o serial-tools.o \
- sha256-asm.o entropium.o cli.o performance_test.o
-
-$(ALGO_NAME)_NESSIE_TEST := "nessie"
-$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
-
+++ /dev/null
-# Makefile for Grain
-ALGO_NAME := GRAIN
-
-# comment out the following line for removement of Grain from the build process
-STREAM_CIPHERS += $(ALGO_NAME)
-
-$(ALGO_NAME)_OBJ := grain.o
-$(ALGO_NAME)_TEST_BIN := main-grain-test.o debug.o uart.o serial-tools.o \
- nessie_stream_test.o nessie_common.o grain.o cli.o \
- performance_test.o
-$(ALGO_NAME)_NESSIE_TEST := "nessie"
-$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
-
+++ /dev/null
-# Makefile for HMAC-SHA256
-ALGO_NAME := HMAC-SHA256
-
-# comment out the following line for removement of HMAC-SHA256 from the build process
-MACS += $(ALGO_NAME)
-
-$(ALGO_NAME)_OBJ := hmac-sha256.o sha256-asm.o
-$(ALGO_NAME)_TEST_BIN := main-hmac-sha256-test.o debug.o uart.o serial-tools.o \
- hmac-sha256.o sha256-asm.o nessie_mac_test.o nessie_common.o
-$(ALGO_NAME)_NESSIE_TEST := "nessie"
-$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
-
+++ /dev/null
-# Makefile for MD5
-ALGO_NAME := MD5
-
-# comment out the following line for removement of MD5 from the build process
-HASHES += $(ALGO_NAME)
-
-$(ALGO_NAME)_OBJ := md5.o
-$(ALGO_NAME)_TEST_BIN := main-md5-test.o debug.o uart.o serial-tools.o md5.o
-$(ALGO_NAME)_NESSIE_TEST := "nessie"
-$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
-
--- /dev/null
+# Makefile for ARCFOUR (RC4 compatible)
+ALGO_NAME := ARCFOUR
+
+# comment out the following line for removement of ARCFOUR from the build process
+STREAM_CIPHERS += $(ALGO_NAME)
+
+$(ALGO_NAME)_OBJ := arcfour-asm.o
+$(ALGO_NAME)_TEST_BIN := main-arcfour-test.o debug.o uart.o serial-tools.o \
+ nessie_stream_test.o nessie_common.o arcfour-asm.o
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
--- /dev/null
+# Makefile for camellia
+ALGO_NAME := CAMELLIA
+
+# comment out the following line for removement of serpent from the build process
+BLOCK_CIPHERS += $(ALGO_NAME)
+
+# main-camellia-test.o debug.o uart.o serial-tools.o camellia.o camellia-asm.o
+$(ALGO_NAME)_OBJ := camellia.o camellia-asm.o
+$(ALGO_NAME)_TEST_BIN := main-camellia-test.o debug.o uart.o serial-tools.o \
+ camellia.o camellia-asm.o
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
--- /dev/null
+# Makefile for CAST5
+ALGO_NAME := CAST5
+
+# comment out the following line for removement of CAST5 from the build process
+BLOCK_CIPHERS += $(ALGO_NAME)
+
+$(ALGO_NAME)_OBJ := cast5.o
+$(ALGO_NAME)_TEST_BIN := main-cast5-test.o debug.o uart.o serial-tools.o cli.o\
+ cast5.o nessie_bc_test.o nessie_common.o performance_test.o
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
--- /dev/null
+# Makefile for DES
+ALGO_NAME := DES
+
+# comment out the following line for removement of DES from the build process
+BLOCK_CIPHERS += $(ALGO_NAME)
+
+$(ALGO_NAME)_OBJ := des.o
+$(ALGO_NAME)_TEST_BIN := main-des-test.o debug.o uart.o serial-tools.o des.o \
+ nessie_bc_test.o nessie_common.o cli.o performance_test.o
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
--- /dev/null
+# Makefile for Entropium PRNG
+ALGO_NAME := ENTROPIUM
+
+# comment out the following line for removement of PRNG from the build process
+PRNGS += $(ALGO_NAME)
+
+$(ALGO_NAME)_OBJ := entropium.o sha256-asm.o
+$(ALGO_NAME)_TEST_BIN := main-entropium-test.o debug.o uart.o serial-tools.o \
+ sha256-asm.o entropium.o cli.o performance_test.o
+
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
--- /dev/null
+# Makefile for Grain
+ALGO_NAME := GRAIN
+
+# comment out the following line for removement of Grain from the build process
+STREAM_CIPHERS += $(ALGO_NAME)
+
+$(ALGO_NAME)_OBJ := grain.o
+$(ALGO_NAME)_TEST_BIN := main-grain-test.o debug.o uart.o serial-tools.o \
+ nessie_stream_test.o nessie_common.o grain.o cli.o \
+ performance_test.o
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
--- /dev/null
+# Makefile for HMAC-SHA256
+ALGO_NAME := HMAC-SHA256
+
+# comment out the following line for removement of HMAC-SHA256 from the build process
+MACS += $(ALGO_NAME)
+
+$(ALGO_NAME)_OBJ := hmac-sha256.o sha256-asm.o
+$(ALGO_NAME)_TEST_BIN := main-hmac-sha256-test.o debug.o uart.o serial-tools.o \
+ hmac-sha256.o sha256-asm.o nessie_mac_test.o nessie_common.o
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
--- /dev/null
+# Makefile for MD5
+ALGO_NAME := MD5
+
+# comment out the following line for removement of MD5 from the build process
+HASHES += $(ALGO_NAME)
+
+$(ALGO_NAME)_OBJ := md5.o
+$(ALGO_NAME)_TEST_BIN := main-md5-test.o debug.o uart.o serial-tools.o md5.o
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
--- /dev/null
+# Makefile for Mickey128
+ALGO_NAME := MICKEY128
+
+# comment out the following line for removement of Mickey128 from the build process
+STREAM_CIPHERS += $(ALGO_NAME)
+
+$(ALGO_NAME)_OBJ := mickey128.o
+$(ALGO_NAME)_TEST_BIN := main-mickey128-test.o debug.o uart.o serial-tools.o \
+ nessie_stream_test.o nessie_common.o mickey128.o cli.o
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
--- /dev/null
+# Makefile for noekeon
+ALGO_NAME := NOEKEON
+
+# comment out the following line for removement of noekeon from the build process
+BLOCK_CIPHERS += $(ALGO_NAME)
+
+
+$(ALGO_NAME)_OBJ := noekeon_asm.o
+$(ALGO_NAME)_TEST_BIN := main-noekeon-test.o debug.o uart.o serial-tools.o \
+ noekeon_asm.o nessie_bc_test.o \
+ nessie_common.o cli.o performance_test.o
+$(ALGO_NAME)_NESSIE_TEST := test nessie
+$(ALGO_NAME)_PEROFRMANCE_TEST := performance
+
--- /dev/null
+# Makefile for present
+ALGO_NAME := PRESENT
+
+# comment out the following line for removement of present from the build process
+BLOCK_CIPHERS += $(ALGO_NAME)
+
+
+$(ALGO_NAME)_OBJ := present.o
+$(ALGO_NAME)_TEST_BIN := main-present-test.o debug.o uart.o serial-tools.o \
+ present.o nessie_bc_test.o nessie_common.o cli.o \
+ performance_test.o
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
--- /dev/null
+# Makefile for RC5
+ALGO_NAME := RC5
+
+# comment out the following line for removement of RC5 from the build process
+BLOCK_CIPHERS += $(ALGO_NAME)
+
+
+$(ALGO_NAME)_OBJ := rc5.o
+$(ALGO_NAME)_TEST_BIN := main-rc5-test.o debug.o uart.o serial-tools.o \
+ rc5.o nessie_bc_test.o \
+ nessie_common.o cli.o performance_test.o
+$(ALGO_NAME)_NESSIE_TEST := test nessie
+$(ALGO_NAME)_PEROFRMANCE_TEST := performance
+
--- /dev/null
+# Makefile for RC6
+ALGO_NAME := RC6
+
+# comment out the following line for removement of RC6 from the build process
+BLOCK_CIPHERS += $(ALGO_NAME)
+
+
+$(ALGO_NAME)_OBJ := rc6.o
+$(ALGO_NAME)_TEST_BIN := main-rc6-test.o debug.o uart.o serial-tools.o \
+ rc6.o nessie_bc_test.o \
+ nessie_common.o cli.o performance_test.o
+$(ALGO_NAME)_NESSIE_TEST := test nessie
+$(ALGO_NAME)_PEROFRMANCE_TEST := performance
+
--- /dev/null
+# Makefile for SEED
+ALGO_NAME := SEED
+
+# comment out the following line for removement of SEED from the build process
+BLOCK_CIPHERS += $(ALGO_NAME)
+
+$(ALGO_NAME)_OBJ := seed.o seed-asm.o
+$(ALGO_NAME)_TEST_BIN := main-seed-test.o debug.o uart.o serial-tools.o \
+ seed.o seed-asm.o
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
--- /dev/null
+# Makefile for serpent
+ALGO_NAME := SERPENT
+
+# comment out the following line for removement of serpent from the build process
+BLOCK_CIPHERS += $(ALGO_NAME)
+
+
+$(ALGO_NAME)_OBJ := serpent.o serpent-sboxes-bitslice.o
+$(ALGO_NAME)_TEST_BIN := main-serpent-test.o debug.o uart.o serial-tools.o \
+ serpent.o serpent-sboxes-bitslice.o nessie_bc_test.o \
+ nessie_common.o cli.o performance_test.o
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
--- /dev/null
+# Makefile for SHA1
+ALGO_NAME := SHA1
+
+# comment out the following line for removement of SHA1 from the build process
+HASHES += $(ALGO_NAME)
+
+$(ALGO_NAME)_OBJ := sha1-asm.o
+$(ALGO_NAME)_TEST_BIN := main-sha1-test.o debug.o uart.o serial-tools.o \
+ sha1-asm.o
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
--- /dev/null
+# Makefile for SHA256
+ALGO_NAME := SHA256
+
+# comment out the following line for removement of SHA256 from the build process
+HASHES += $(ALGO_NAME)
+
+$(ALGO_NAME)_OBJ := sha256-asm.o
+$(ALGO_NAME)_TEST_BIN := main-sha256-test.o debug.o uart.o serial-tools.o \
+ sha256-asm.o nessie_hash_test.o nessie_common.o
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
--- /dev/null
+# Makefile for SHABEA
+ALGO_NAME := SHABEA
+
+# comment out the following line for removement of SHABEA from the build process
+BLOCK_CIPHERS += $(ALGO_NAME)
+
+$(ALGO_NAME)_OBJ := shabea.o sha256-asm.o
+$(ALGO_NAME)_TEST_BIN := main-shabea-test.o debug.o uart.o serial-tools.o \
+ shabea.o sha256-asm.o
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
--- /dev/null
+# Makefile for present
+ALGO_NAME := SHACAL1ENC
+
+# comment out the following line for removement of present from the build process
+BLOCK_CIPHERS += $(ALGO_NAME)
+
+
+$(ALGO_NAME)_OBJ := shacal1_enc.o sha1-asm.o
+$(ALGO_NAME)_TEST_BIN := main-shacal1_enc-test.o debug.o uart.o serial-tools.o \
+ nessie_bc_test.o nessie_common.o cli.o \
+ performance_test.o shacal1_enc.o sha1-asm.o
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
--- /dev/null
+# Makefile for present
+ALGO_NAME := SHACAL2ENC
+
+# comment out the following line for removement of present from the build process
+BLOCK_CIPHERS += $(ALGO_NAME)
+
+
+$(ALGO_NAME)_OBJ := shacal2_enc.o sha256-asm.o
+$(ALGO_NAME)_TEST_BIN := main-shacal2_enc-test.o debug.o uart.o serial-tools.o \
+ nessie_bc_test.o nessie_common.o cli.o \
+ performance_test.o shacal2_enc.o sha256-asm.o
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
--- /dev/null
+# Makefile for SKIPJACK
+ALGO_NAME := SKIPJACK
+
+# comment out the following line for removement of skipjack from the build process
+BLOCK_CIPHERS += $(ALGO_NAME)
+
+$(ALGO_NAME)_OBJ := skipjack.o
+$(ALGO_NAME)_TEST_BIN := main-skipjack-test.o debug.o uart.o serial-tools.o \
+ skipjack.o
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
--- /dev/null
+# Makefile for DES
+ALGO_NAME := TDES
+
+# comment out the following line for removement of DES from the build process
+BLOCK_CIPHERS += $(ALGO_NAME)
+
+$(ALGO_NAME)_OBJ := des.o
+$(ALGO_NAME)_TEST_BIN := main-tdes-test.o debug.o uart.o serial-tools.o des.o \
+ nessie_bc_test.o nessie_common.o cli.o performance_test.o
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
--- /dev/null
+# Makefile for Trivium
+ALGO_NAME := TRIVIUM
+
+# comment out the following line for removement of Trivium from the build process
+STREAM_CIPHERS += $(ALGO_NAME)
+
+$(ALGO_NAME)_OBJ := trivium.o
+$(ALGO_NAME)_TEST_BIN := main-trivium-test.o debug.o uart.o serial-tools.o \
+ nessie_stream_test.o nessie_common.o trivium.o cli.o \
+ performance_test.o
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
--- /dev/null
+# Makefile for XTEA
+ALGO_NAME := XTEA
+
+# comment out the following line for removement of XTEA from the build process
+BLOCK_CIPHERS += $(ALGO_NAME)
+
+$(ALGO_NAME)_OBJ := xtea-asm.o
+$(ALGO_NAME)_TEST_BIN := main-xtea-test.o debug.o uart.o serial-tools.o \
+ xtea-asm.o nessie_bc_test.o nessie_common.o \
+ cli.o performance_test.o
+$(ALGO_NAME)_NESSIE_TEST := "nessie"
+$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
+
+++ /dev/null
-# Makefile for noekeon
-ALGO_NAME := NOEKEON
-
-# comment out the following line for removement of noekeon from the build process
-BLOCK_CIPHERS += $(ALGO_NAME)
-
-
-$(ALGO_NAME)_OBJ := noekeon_asm.o
-$(ALGO_NAME)_TEST_BIN := main-noekeon-test.o debug.o uart.o serial-tools.o \
- noekeon_asm.o nessie_bc_test.o \
- nessie_common.o cli.o performance_test.o
-$(ALGO_NAME)_NESSIE_TEST := test nessie
-$(ALGO_NAME)_PEROFRMANCE_TEST := performance
-
+++ /dev/null
-# Makefile for present
-ALGO_NAME := PRESENT
-
-# comment out the following line for removement of present from the build process
-BLOCK_CIPHERS += $(ALGO_NAME)
-
-
-$(ALGO_NAME)_OBJ := present.o
-$(ALGO_NAME)_TEST_BIN := main-present-test.o debug.o uart.o serial-tools.o \
- present.o nessie_bc_test.o nessie_common.o cli.o \
- performance_test.o
-$(ALGO_NAME)_NESSIE_TEST := "nessie"
-$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
-
+++ /dev/null
-# Makefile for RC5
-ALGO_NAME := RC5
-
-# comment out the following line for removement of RC5 from the build process
-BLOCK_CIPHERS += $(ALGO_NAME)
-
-
-$(ALGO_NAME)_OBJ := rc5.o
-$(ALGO_NAME)_TEST_BIN := main-rc5-test.o debug.o uart.o serial-tools.o \
- rc5.o nessie_bc_test.o \
- nessie_common.o cli.o performance_test.o
-$(ALGO_NAME)_NESSIE_TEST := test nessie
-$(ALGO_NAME)_PEROFRMANCE_TEST := performance
-
+++ /dev/null
-# Makefile for RC6
-ALGO_NAME := RC6
-
-# comment out the following line for removement of RC6 from the build process
-BLOCK_CIPHERS += $(ALGO_NAME)
-
-
-$(ALGO_NAME)_OBJ := rc6.o
-$(ALGO_NAME)_TEST_BIN := main-rc6-test.o debug.o uart.o serial-tools.o \
- rc6.o nessie_bc_test.o \
- nessie_common.o cli.o performance_test.o
-$(ALGO_NAME)_NESSIE_TEST := test nessie
-$(ALGO_NAME)_PEROFRMANCE_TEST := performance
-
+++ /dev/null
-# Makefile for SEED
-ALGO_NAME := SEED
-
-# comment out the following line for removement of SEED from the build process
-BLOCK_CIPHERS += $(ALGO_NAME)
-
-$(ALGO_NAME)_OBJ := seed.o seed-asm.o
-$(ALGO_NAME)_TEST_BIN := main-seed-test.o debug.o uart.o serial-tools.o \
- seed.o seed-asm.o
-$(ALGO_NAME)_NESSIE_TEST := "nessie"
-$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
-
+++ /dev/null
-# Makefile for serpent
-ALGO_NAME := SERPENT
-
-# comment out the following line for removement of serpent from the build process
-BLOCK_CIPHERS += $(ALGO_NAME)
-
-
-$(ALGO_NAME)_OBJ := serpent.o serpent-sboxes-bitslice.o
-$(ALGO_NAME)_TEST_BIN := main-serpent-test.o debug.o uart.o serial-tools.o \
- serpent.o serpent-sboxes-bitslice.o nessie_bc_test.o \
- nessie_common.o cli.o performance_test.o
-$(ALGO_NAME)_NESSIE_TEST := "nessie"
-$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
-
+++ /dev/null
-# Makefile for SHA1
-ALGO_NAME := SHA1
-
-# comment out the following line for removement of SHA1 from the build process
-HASHES += $(ALGO_NAME)
-
-$(ALGO_NAME)_OBJ := sha1-asm.o
-$(ALGO_NAME)_TEST_BIN := main-sha1-test.o debug.o uart.o serial-tools.o \
- sha1-asm.o
-$(ALGO_NAME)_NESSIE_TEST := "nessie"
-$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
-
+++ /dev/null
-# Makefile for SHA256
-ALGO_NAME := SHA256
-
-# comment out the following line for removement of SHA256 from the build process
-HASHES += $(ALGO_NAME)
-
-$(ALGO_NAME)_OBJ := sha256-asm.o
-$(ALGO_NAME)_TEST_BIN := main-sha256-test.o debug.o uart.o serial-tools.o \
- sha256-asm.o nessie_hash_test.o nessie_common.o
-$(ALGO_NAME)_NESSIE_TEST := "nessie"
-$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
-
+++ /dev/null
-# Makefile for SHABEA
-ALGO_NAME := SHABEA
-
-# comment out the following line for removement of SHABEA from the build process
-BLOCK_CIPHERS += $(ALGO_NAME)
-
-$(ALGO_NAME)_OBJ := shabea.o sha256-asm.o
-$(ALGO_NAME)_TEST_BIN := main-shabea-test.o debug.o uart.o serial-tools.o \
- shabea.o sha256-asm.o
-$(ALGO_NAME)_NESSIE_TEST := "nessie"
-$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
-
+++ /dev/null
-# Makefile for present
-ALGO_NAME := SHACAL1ENC
-
-# comment out the following line for removement of present from the build process
-BLOCK_CIPHERS += $(ALGO_NAME)
-
-
-$(ALGO_NAME)_OBJ := shacal1_enc.o sha1-asm.o
-$(ALGO_NAME)_TEST_BIN := main-shacal1_enc-test.o debug.o uart.o serial-tools.o \
- nessie_bc_test.o nessie_common.o cli.o \
- performance_test.o shacal1_enc.o sha1-asm.o
-$(ALGO_NAME)_NESSIE_TEST := "nessie"
-$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
-
+++ /dev/null
-# Makefile for present
-ALGO_NAME := SHACAL2ENC
-
-# comment out the following line for removement of present from the build process
-BLOCK_CIPHERS += $(ALGO_NAME)
-
-
-$(ALGO_NAME)_OBJ := shacal2_enc.o sha256-asm.o
-$(ALGO_NAME)_TEST_BIN := main-shacal2_enc-test.o debug.o uart.o serial-tools.o \
- nessie_bc_test.o nessie_common.o cli.o \
- performance_test.o shacal2_enc.o sha256-asm.o
-$(ALGO_NAME)_NESSIE_TEST := "nessie"
-$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
-
+++ /dev/null
-# Makefile for SKIPJACK
-ALGO_NAME := SKIPJACK
-
-# comment out the following line for removement of skipjack from the build process
-BLOCK_CIPHERS += $(ALGO_NAME)
-
-$(ALGO_NAME)_OBJ := skipjack.o
-$(ALGO_NAME)_TEST_BIN := main-skipjack-test.o debug.o uart.o serial-tools.o \
- skipjack.o
-$(ALGO_NAME)_NESSIE_TEST := "nessie"
-$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
-
+++ /dev/null
-# Makefile for DES
-ALGO_NAME := TDES
-
-# comment out the following line for removement of DES from the build process
-BLOCK_CIPHERS += $(ALGO_NAME)
-
-$(ALGO_NAME)_OBJ := des.o
-$(ALGO_NAME)_TEST_BIN := main-tdes-test.o debug.o uart.o serial-tools.o des.o \
- nessie_bc_test.o nessie_common.o cli.o performance_test.o
-$(ALGO_NAME)_NESSIE_TEST := "nessie"
-$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
-
+++ /dev/null
-# Makefile for Trivium
-ALGO_NAME := TRIVIUM
-
-# comment out the following line for removement of Trivium from the build process
-STREAM_CIPHERS += $(ALGO_NAME)
-
-$(ALGO_NAME)_OBJ := trivium.o
-$(ALGO_NAME)_TEST_BIN := main-trivium-test.o debug.o uart.o serial-tools.o \
- nessie_stream_test.o nessie_common.o trivium.o cli.o \
- performance_test.o
-$(ALGO_NAME)_NESSIE_TEST := "nessie"
-$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
-
+++ /dev/null
-# Makefile for XTEA
-ALGO_NAME := XTEA
-
-# comment out the following line for removement of XTEA from the build process
-BLOCK_CIPHERS += $(ALGO_NAME)
-
-$(ALGO_NAME)_OBJ := xtea-asm.o
-$(ALGO_NAME)_TEST_BIN := main-xtea-test.o debug.o uart.o serial-tools.o \
- xtea-asm.o nessie_bc_test.o nessie_common.o \
- cli.o performance_test.o
-$(ALGO_NAME)_NESSIE_TEST := "nessie"
-$(ALGO_NAME)_PEROFRMANCE_TEST := "performance"
-