]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/modes/Makefile
make depend
[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
85b2c0ce
AP
20
21LIB=$(TOP)/libcrypto.a
6386b1b3 22LIBSRC= cbc128.c ctr128.c cts128.c cfb128.c ofb128.c gcm128.c \
c857a80c 23 ccm128.c xts128.c wrap128.c ocb128.c
8a1c92ce 24LIBOBJ= cbc128.o ctr128.o cts128.o cfb128.o ofb128.o gcm128.o \
c857a80c 25 ccm128.o xts128.o wrap128.o ocb128.o $(MODES_ASM_OBJ)
85b2c0ce
AP
26
27SRC= $(LIBSRC)
28
a80e33b9 29HEADER= modes_lcl.h
85b2c0ce
AP
30
31ALL= $(GENERAL) $(SRC) $(HEADER)
32
33top:
34 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
35
36all: lib
37
38lib: $(LIBOBJ)
f072785e 39 $(AR) $(LIB) $(LIBOBJ)
85b2c0ce
AP
40 $(RANLIB) $(LIB) || echo Never mind.
41 @touch lib
42
a3b0c44b 43ghash-ia64.s: asm/ghash-ia64.pl
8a1c92ce
AP
44 $(PERL) asm/ghash-ia64.pl $@ $(CFLAGS)
45ghash-x86.s: asm/ghash-x86.pl
46 $(PERL) asm/ghash-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
47ghash-x86_64.s: asm/ghash-x86_64.pl
48 $(PERL) asm/ghash-x86_64.pl $(PERLASM_SCHEME) > $@
4e049c52
AP
49aesni-gcm-x86_64.s: asm/aesni-gcm-x86_64.pl
50 $(PERL) asm/aesni-gcm-x86_64.pl $(PERLASM_SCHEME) > $@
8a1c92ce 51ghash-sparcv9.s: asm/ghash-sparcv9.pl
b2875087 52 $(PERL) asm/ghash-sparcv9.pl $@ $(CFLAGS)
8a1c92ce 53ghash-alpha.s: asm/ghash-alpha.pl
d475b2a3 54 (preproc=$$$$.$@.S; trap "rm $$preproc" INT; \
d1cf23ac 55 $(PERL) asm/ghash-alpha.pl > $$preproc && \
d475b2a3 56 $(CC) -E -P $$preproc > $@ && rm $$preproc)
5e19ee96 57ghash-parisc.s: asm/ghash-parisc.pl
3fdd168f 58 $(PERL) asm/ghash-parisc.pl $(PERLASM_SCHEME) $@
82741e9c
AP
59ghashv8-armx.S: asm/ghashv8-armx.pl
60 $(PERL) asm/ghashv8-armx.pl $(PERLASM_SCHEME) $@
0e716d92
AP
61ghashp8-ppc.s: asm/ghashp8-ppc.pl
62 $(PERL) asm/ghashp8-ppc.pl $(PERLASM_SCHEME) $@
396df731 63
8a1c92ce 64# GNU make "catch all"
1e863180
AP
65ghash-%.S: asm/ghash-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
66
67ghash-armv4.o: ghash-armv4.S
82741e9c 68ghashv8-armx.o: ghashv8-armx.S
8a1c92ce 69
85b2c0ce
AP
70files:
71 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
72
85b2c0ce
AP
73tags:
74 ctags $(SRC)
75
76tests:
77
78lint:
79 lint -DLINT $(INCLUDES) $(SRC)>fluff
80
81depend:
82 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
83 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
84
85dclean:
86 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
87 mv -f Makefile.new $(MAKEFILE)
88
89clean:
6559b40d 90 rm -f *.s *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
85b2c0ce
AP
91
92# DO NOT DELETE THIS LINE -- make depend depends on it.
93
b7056b64
DSH
94cbc128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
95cbc128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
96cbc128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
97cbc128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
975dfb1c 98cbc128.o: ../../include/openssl/symhacks.h cbc128.c modes_lcl.h
ae53b299
BM
99ccm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
100ccm128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
101ccm128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
102ccm128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
975dfb1c 103ccm128.o: ../../include/openssl/symhacks.h ccm128.c modes_lcl.h
b7056b64
DSH
104cfb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
105cfb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
106cfb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
107cfb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
975dfb1c 108cfb128.o: ../../include/openssl/symhacks.h cfb128.c modes_lcl.h
b7056b64
DSH
109ctr128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
110ctr128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
111ctr128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
112ctr128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
975dfb1c 113ctr128.o: ../../include/openssl/symhacks.h ctr128.c modes_lcl.h
b7056b64
DSH
114cts128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
115cts128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
116cts128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
117cts128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
975dfb1c 118cts128.o: ../../include/openssl/symhacks.h cts128.c modes_lcl.h
9d0397e9 119gcm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
ae53b299
BM
120gcm128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
121gcm128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
122gcm128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
975dfb1c 123gcm128.o: ../../include/openssl/symhacks.h gcm128.c modes_lcl.h
c857a80c
MC
124ocb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
125ocb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
126ocb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
127ocb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
128ocb128.o: ../../include/openssl/symhacks.h modes_lcl.h ocb128.c
b7056b64
DSH
129ofb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
130ofb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
131ofb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
132ofb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
975dfb1c 133ofb128.o: ../../include/openssl/symhacks.h modes_lcl.h ofb128.c
4cfeb00b
DSH
134wrap128.o: ../../e_os.h ../../include/openssl/bio.h
135wrap128.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
136wrap128.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
137wrap128.o: ../../include/openssl/lhash.h ../../include/openssl/modes.h
138wrap128.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
139wrap128.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
140wrap128.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
a3aadb2d 141wrap128.o: ../include/internal/cryptlib.h wrap128.c
ae53b299
BM
142xts128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
143xts128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
144xts128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
145xts128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
975dfb1c 146xts128.o: ../../include/openssl/symhacks.h modes_lcl.h xts128.c