ToolMakefile
685 Bytes
AES_LIB_DIR = ../../../iosim/src/pi_test/aes
ECC_LIB_DIR = ../../../iosim/src/pi_test/ecc
AES_LIB_NAME = pi_aes.a
ECC_LIB_NAME = pi_ecc.o
AES_LIB = $(AES_LIB_DIR)/$(AES_LIB_NAME)
ECC_LIB = $(ECC_LIB_DIR)/$(ECC_LIB_NAME)
CC = gcc
INCLUDES = -I$(ECC_LIB_DIR) -I$(AES_LIB_DIR) -I$(ROOT)/usr/include \
-I$(ROOT)/usr/include/PR
CFLAGS = -g -D_LANGUAGE_C $(INCLUDES)
LDLIBS = $(AES_LIB) -lm
LDFLAGS = -lm -L$(AES_LIB_DIR)
CFLAGS += -DLOAD_SK_PAGES=$(DEFINE_DLOAD_SK_PAGES)
psk_tool: psk_tool.o sha1.o $(AES_LIB) $(ECC_LIB)
$(AES_LIB):
cd $(AES_LIB_DIR); make $(AES_LIB_NAME)
$(ECC_LIB):
cd $(ECC_LIB_DIR); make $(ECC_LIB_NAME)
clean:
rm -f psk_tool psk_tool.o sha1.o