MIPSmakefile
960 Bytes
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
44
45
include $(ROOT)/usr/include/make/commondefs
include $(ROOT)/usr/include/make/PRdefs
TARGETS = libcryptoMIPS.a
CFILES = aes.c aes_api.c aes_imp.c sha1.c bb_nn.c \
poly_math.c elliptic_math.c algorithms.c
OPTIMIZER=
LCOPTS += -mips2 -Os -g -fno-builtin -Wall
LLDOPTS += -Ttext 0x80000000 -N -G 0
LDIRT += cpu.log*
ifdef DEBUG
LCOPTS += -DDEBUG -g
endif
default : $(TARGETS)
headers:
$(INSTALL) -m 444 -F /usr/include sha1.h
$(INSTALL) -m 444 -F /usr/include aes.h
$(INSTALL) -m 444 -F /usr/include algorithms.h
$(INSTALL) -m 444 -F /usr/include binary_field.h
$(INSTALL) -m 444 -F /usr/include poly_math.h
$(INSTALL) -m 444 -F /usr/include elliptic_math.h
$(INSTALL) -m 444 -F /usr/include aes_api.h
$(INSTALL) -m 444 -F /usr/include bb_nn.h
exports install: default headers
$(INSTALL) -m 444 -F /usr/lib -src $(TARGETS) libcrypto.a
LDIRT += $(TARGETS)
$(TARGETS): %: %($(OBJECTS))
ar cru $@ $?
rm -f $?
include $(COMMONRULES)