Skip to content
This repository
Browse code

Added the C and assembly code to the sdist package by using the extra…

…-source-files field.
  • Loading branch information...
commit 0abc7d0a456ee0d818b2313184f0d253aae10e47 1 parent 2ca08a1
Ryan Newton authored January 30, 2011
1  cbits/Intel_AESNI_Sample_Library_v1.0/intel_aes_lib/Makefile
@@ -22,6 +22,7 @@ YASM=yasm
22 22
 YASMFLAGS= -D__linux__ -g dwarf2 -f elf$(SZ) 
23 23
 
24 24
 all: $(STATIC) $(DYNAMIC)
  25
+	cp lib/x$(ARCH)/* ../../
25 26
 
26 27
 $(STATIC): $(OBJ)
27 28
 	@mkdir -p lib/x$(ARCH)
6  cbits/Makefile
... ...
@@ -0,0 +1,6 @@
  1
+
  2
+
  3
+
  4
+all:
  5
+	cd Intel_AESNI_Sample_Library_v1.0/intel_aes_lib; $(MAKE)
  6
+
27  intel-aes.cabal
@@ -18,6 +18,23 @@ Cabal-Version: >=1.8
18 18
 build-type: Simple
19 19
 -- build-type: Distribution.Simple.Haddock
20 20
 
  21
+extra-source-files:
  22
+      cbits/Intel_AESNI_Sample_Library_v1.0/intel_aes_lib/Makefile
  23
+    , cbits/Intel_AESNI_Sample_Library_v1.0/intel_aes_lib/asm/x64/do_rdtsc.s
  24
+    , cbits/Intel_AESNI_Sample_Library_v1.0/intel_aes_lib/asm/x64/iaesx64.s
  25
+    , cbits/Intel_AESNI_Sample_Library_v1.0/intel_aes_lib/asm/x86/do_rdtsc.s
  26
+    , cbits/Intel_AESNI_Sample_Library_v1.0/intel_aes_lib/asm/x86/iaesx86.s
  27
+    , cbits/Intel_AESNI_Sample_Library_v1.0/intel_aes_lib/include/iaes_asm_interface.h
  28
+    , cbits/Intel_AESNI_Sample_Library_v1.0/intel_aes_lib/include/iaesni.h
  29
+    , cbits/Intel_AESNI_Sample_Library_v1.0/intel_aes_lib/mk_lnx_lib.sh
  30
+    , cbits/Intel_AESNI_Sample_Library_v1.0/intel_aes_lib/mk_win_lib.bat
  31
+    , cbits/Intel_AESNI_Sample_Library_v1.0/intel_aes_lib/src/aessample.c
  32
+    , cbits/Intel_AESNI_Sample_Library_v1.0/intel_aes_lib/src/aessampletiming.cpp
  33
+    , cbits/Intel_AESNI_Sample_Library_v1.0/intel_aes_lib/src/intel_aes.c
  34
+    , cbits/Intel_AESNI_Sample_Library_v1.0/intel_aes_lib/where_files_come_from_and_license.txt
  35
+    , cbits/Makefile
  36
+    , cbits/c_test.c
  37
+
21 38
 source-repository head
22 39
   type:     git
23 40
   location: git://github.com/rrnewton/intel-aes.git
@@ -38,15 +55,16 @@ library
38 55
                  ,  Codec.Utils
39 56
   extensions: 
40 57
 
41  
-  GHC-Options: -O2 cbits/intel_aes64.a
  58
+  GHC-Options: -O2 
42 59
 ----------------------------------------
43 60
 --  GHC-Options: -O2 cbits/intel_aes64.a
44  
-  extra-libraries: intel_aes64
  61
+  extra-libraries: intel_aes
45 62
   extra-lib-dirs: /home/newton/intel-aes/cbits/
  63
+
46 64
 --  ld-options: -L/home/newton/intel-aes/cbits  intel_aes64.a
47 65
 --  ld-options: cbits/intel_aes64.a
48 66
 --  install-includes: cbits/intel_aes64.a
49  
-  C-sources: 
  67
+--  C-sources: 
50 68
 --             cbits/intel_aes.c
51 69
 -- It does seem to call the assembler... but not correctly... probably doesn't handle intel syntax:
52 70
 --            , cbits/iaesx64.s 
@@ -59,6 +77,7 @@ library
59 77
            -- , cbits/include/iaes_asm_interface.h
60 78
 
61 79
 
  80
+
62 81
 -- ----------------------------------------------------------------------------------------------------
63 82
 Executable benchmark-intel-aes-rng
64 83
   Main-is:        SimpleRNGBench.hs
@@ -67,7 +86,7 @@ Executable benchmark-intel-aes-rng
67 86
   GHC-Options:    -O2 -threaded -rtsopts 
68 87
   C-sources:	   cbits/c_test.c
69 88
   Include-dirs:    cbits
70  
-  extra-libraries: intel_aes64
  89
+  extra-libraries: intel_aes
71 90
   extra-lib-dirs: /home/newton/intel-aes/cbits/
72 91
 --  ld-options: cbits/intel_aes64.a
73 92
 

0 notes on commit 0abc7d0

Please sign in to comment.
Something went wrong with that request. Please try again.