]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/modes/Makefile
Provisional AES XTS support.
[thirdparty/openssl.git] / crypto / modes / Makefile
CommitLineData
85b2c0ce
AP
1#
2# OpenSSL/crypto/modes/Makefile
3#
4
5DIR= modes
6TOP= ../..
7CC= cc
8INCLUDES= -I.. -I$(TOP) -I../../include
9CFLAG=-g
10MAKEFILE= Makefile
11AR= ar r
12
8a1c92ce
AP
13MODES_ASM_OBJ=
14
85b2c0ce 15CFLAGS= $(INCLUDES) $(CFLAG)
8a1c92ce
AP
16ASFLAGS= $(INCLUDES) $(ASFLAG)
17AFLAGS= $(ASFLAGS)
85b2c0ce
AP
18
19GENERAL=Makefile
20TEST=
21APPS=
22
23LIB=$(TOP)/libcrypto.a
32a2d8dd 24LIBSRC= cbc128.c ctr128.c cts128.c cfb128.c ofb128.c gcm128.c xts128.c
8a1c92ce 25LIBOBJ= cbc128.o ctr128.o cts128.o cfb128.o ofb128.o gcm128.o \
32a2d8dd 26 xts128.o $(MODES_ASM_OBJ)
85b2c0ce
AP
27
28SRC= $(LIBSRC)
29
30#EXHEADER= store.h str_compat.h
31EXHEADER= modes.h
324abf1d 32HEADER= modes_lcl.h $(EXHEADER)
85b2c0ce
AP
33
34ALL= $(GENERAL) $(SRC) $(HEADER)
35
36top:
37 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
38
39all: lib
40
41lib: $(LIBOBJ)
df6de39f 42 $(ARX) $(LIB) $(LIBOBJ)
85b2c0ce
AP
43 $(RANLIB) $(LIB) || echo Never mind.
44 @touch lib
45
a3b0c44b 46ghash-ia64.s: asm/ghash-ia64.pl
8a1c92ce
AP
47 $(PERL) asm/ghash-ia64.pl $@ $(CFLAGS)
48ghash-x86.s: asm/ghash-x86.pl
49 $(PERL) asm/ghash-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
50ghash-x86_64.s: asm/ghash-x86_64.pl
51 $(PERL) asm/ghash-x86_64.pl $(PERLASM_SCHEME) > $@
52ghash-sparcv9.s: asm/ghash-sparcv9.pl
b2875087 53 $(PERL) asm/ghash-sparcv9.pl $@ $(CFLAGS)
8a1c92ce
AP
54ghash-alpha.s: asm/ghash-alpha.pl
55 $(PERL) $< | $(CC) -E - | tee $@ > /dev/null
5e19ee96 56ghash-parisc.s: asm/ghash-parisc.pl
3fdd168f 57 $(PERL) asm/ghash-parisc.pl $(PERLASM_SCHEME) $@
396df731 58
8a1c92ce 59# GNU make "catch all"
1e863180
AP
60ghash-%.S: asm/ghash-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
61
62ghash-armv4.o: ghash-armv4.S
8a1c92ce 63
85b2c0ce
AP
64files:
65 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
66
67links:
68 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
69 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
70 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
71
72install:
73 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
74 @headerlist="$(EXHEADER)"; for i in $$headerlist; \
75 do \
76 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
77 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
78 done;
79
80tags:
81 ctags $(SRC)
82
83tests:
84
85lint:
86 lint -DLINT $(INCLUDES) $(SRC)>fluff
87
88depend:
89 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
90 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
91
92dclean:
93 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
94 mv -f Makefile.new $(MAKEFILE)
95
96clean:
6559b40d 97 rm -f *.s *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
85b2c0ce
AP
98
99# DO NOT DELETE THIS LINE -- make depend depends on it.
100
b7056b64
DSH
101cbc128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
102cbc128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
103cbc128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
104cbc128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
105cbc128.o: ../../include/openssl/symhacks.h cbc128.c modes_lcl.h
106cfb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
107cfb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
108cfb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
109cfb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
110cfb128.o: ../../include/openssl/symhacks.h cfb128.c modes_lcl.h
111ctr128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
112ctr128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
113ctr128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
114ctr128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
115ctr128.o: ../../include/openssl/symhacks.h ctr128.c modes_lcl.h
116cts128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
117cts128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
118cts128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
119cts128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
120cts128.o: ../../include/openssl/symhacks.h cts128.c modes_lcl.h
9d0397e9 121gcm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
c6dbe908
RL
122gcm128.o: ../../include/openssl/fips.h ../../include/openssl/modes.h
123gcm128.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
124gcm128.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
125gcm128.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
126gcm128.o: gcm128.c modes_lcl.h
b7056b64
DSH
127ofb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
128ofb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
129ofb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
130ofb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
131ofb128.o: ../../include/openssl/symhacks.h modes_lcl.h ofb128.c