Print this page
5072963 Need an optimized AES implementation for amd64
*** 20,30 ****
#
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
! #ident "@(#)Makefile 1.8 08/01/02 SMI"
#
# This makefile drives the production of the AES KEF provider.
#
# intel implementation architecture dependent
#
--- 20,30 ----
#
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
! #ident "@(#)Makefile 1.9 08/05/21 SMI"
#
# This makefile drives the production of the AES KEF provider.
#
# intel implementation architecture dependent
#
*** 37,48 ****
#
# Define the module and object file sets.
#
MODULE = aes
- OBJECTS = $(AESPROV_OBJS:%=$(OBJS_DIR)/%)
LINTS = $(AESPROV_OBJS:%.o=$(LINTS_DIR)/%.ln)
ROOTMODULE = $(ROOT_CRYPTO_DIR)/$(MODULE)
#
# Include common rules.
#
--- 37,51 ----
#
# Define the module and object file sets.
#
MODULE = aes
LINTS = $(AESPROV_OBJS:%.o=$(LINTS_DIR)/%.ln)
+ AESPROV_OBJS_32 =
+ AESPROV_OBJS_64 = aes_amd64.o aeskey.o
+ AESPROV_OBJS += $(AESPROV_OBJS_$(CLASS))
+ OBJECTS = $(AESPROV_OBJS:%=$(OBJS_DIR)/%)
ROOTMODULE = $(ROOT_CRYPTO_DIR)/$(MODULE)
#
# Include common rules.
#
*** 97,101 ****
--- 100,118 ----
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ
+
+ $(OBJS_DIR)/%.ln: $(COM_DIR)/amd64/%.c
+ @($(LHEAD) $(LINT.c) $(COM_DIR)/amd64/${@F:.ln=.c} $(LTAIL))
+
+ $(OBJS_DIR)/%.o: $(COM_DIR)/amd64/%.c
+ $(COMPILE.c) -o $@ $(COM_DIR)/amd64/${@F:.o=.c}
+ $(POST_PROCESS_O)
+
+ $(OBJS_DIR)/aes_amd64.o: $(COM_DIR)/amd64/aes_amd64.s
+ $(COMPILE.s) -o $@ $(COM_DIR)/amd64/${@F:.o=.s}
+ $(POST_PROCESS_O)
+
+ $(OBJS_DIR)/aes_amd64.ln: $(COM_DIR)/amd64/aes_amd64.s
+ @($(LHEAD) $(LINT.s) $(COM_DIR)/amd64/${@F:.ln=.s} $(LTAIL))