X86makefile
1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!smake
#
PRDEPTH = ../..
include $(PRDEPTH)/PRdefs
CC=$(HOST_CC)
GCINCS=-I$(ROOT)/host_include -I/usr/include -D_LANGUAGE_C
LCOPTS += -g -DINTEL_GCC -DX86_BUILD -Wall
OPTIMIZER=-O2
TARGETS = libcryptoX86.a
CFILES = aes.c sha1.c aes_api.c aes_imp.c sha1.c bb_nn.c poly_math.c elliptic_math.c algorithms.c bbtoolsapi.c
default: $(TARGETS)
headers:
$(INSTALL) -m 444 -F /host_include -src aes_api.h aes_api.h
$(INSTALL) -m 444 -F /host_include -src aes.h aes.h
$(INSTALL) -m 444 -F /host_include -src sha1.h sha1.h
$(INSTALL) -m 444 -F /host_include -src algorithms.h algorithms.h
$(INSTALL) -m 444 -F /host_include -src bbtoolsapi.h bbtoolsapi.h
$(INSTALL) -m 444 -F /host_include -src elliptic_math.h elliptic_math.h
$(INSTALL) -m 444 -F /host_include -src poly_math.h poly_math.h
$(INSTALL) -m 444 -F /host_include -src binary_field.h binary_field.h
$(INSTALL) -m 444 -F /host_include -src bb_nn.h bb_nn.h
exports install: default headers
$(INSTALL) -m 444 -F /host_lib -src $(TARGETS) libcryptoX86.a
server-export:
$(INSTALL) -m 444 -F /../export_headers $(TARGETS)
$(TARGETS): %: %($(OBJECTS))
ar cru $@ $?
rm -f $?
LDIRT += $(TARGETS)
include $(COMMONRULES)