summaryrefslogtreecommitdiff
path: root/Cryptlib/Makefile
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2012-06-18 17:49:57 -0400
committerMatthew Garrett <mjg@redhat.com>2012-06-18 17:49:57 -0400
commit9579a3633657f0adb26e975fca191e0a49474e82 (patch)
tree2d5c048c92fabf912a95db35c54a50287794056e /Cryptlib/Makefile
parent661392464eee92684187e49812c63b9afed5675f (diff)
downloadefi-boot-shim-9579a3633657f0adb26e975fca191e0a49474e82.tar.gz
efi-boot-shim-9579a3633657f0adb26e975fca191e0a49474e82.zip
Add crypto libraries
Diffstat (limited to 'Cryptlib/Makefile')
-rw-r--r--Cryptlib/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/Cryptlib/Makefile b/Cryptlib/Makefile
new file mode 100644
index 00000000..d8f999b3
--- /dev/null
+++ b/Cryptlib/Makefile
@@ -0,0 +1,46 @@
+ARCH = $(shell uname -m | sed s,i[3456789]86,ia32,)
+
+LIB_PATH = /usr/lib64
+
+EFI_INCLUDE = /usr/include/efi
+EFI_INCLUDES = -nostdinc -IInclude -I$(EFI_INCLUDE) -I$(EFI_INCLUDE)/$(ARCH) -I$(EFI_INCLUDE)/protocol
+EFI_PATH = /usr/lib64/gnuefi
+
+LIB_GCC = $(shell $(CC) -print-libgcc-file-name)
+EFI_LIBS = -lefi -lgnuefi $(LIB_GCC)
+
+CFLAGS = -ggdb -O2 -I. -fno-stack-protector -fno-strict-aliasing -fpic -fshort-wchar \
+ -Wall $(EFI_INCLUDES)
+ifeq ($(ARCH),x86_64)
+ CFLAGS += -DEFI_FUNCTION_WRAPPER
+endif
+LDFLAGS = -nostdlib -znocombreloc
+
+TARGET = libcryptlib.a
+OBJS = Hash/CryptMd4.o \
+ Hash/CryptMd5.o \
+ Hash/CryptSha1.o \
+ Hash/CryptSha256.o \
+ Hmac/CryptHmacMd5.o \
+ Hmac/CryptHmacSha1.o \
+ Cipher/CryptAes.o \
+ Cipher/CryptTdes.o \
+ Cipher/CryptArc4.o \
+ Rand/CryptRand.o \
+ Pk/CryptRsa.o \
+ Pk/CryptPkcs7.o \
+ Pk/CryptDh.o \
+ Pk/CryptX509.o \
+ Pk/CryptAuthenticode.o \
+ Pem/CryptPem.o \
+ SysCall/CrtWrapper.o \
+ SysCall/TimerWrapper.o \
+ SysCall/BaseMemAllocation.o \
+ SysCall/BaseStrings.o
+
+all: $(TARGET)
+
+libcryptlib.a: $(OBJS)
+ ar rcs libcryptlib.a $(OBJS)
+clean:
+ rm -f $(TARGET) $(OBJS)