2 # OpenSSL/crypto/modes/Makefile
8 INCLUDES= -I.. -I$(TOP) -I../../include
15 CFLAGS= $(INCLUDES) $(CFLAG)
16 ASFLAGS= $(INCLUDES) $(ASFLAG)
23 LIB=$(TOP)/libcrypto.a
24 LIBSRC= cbc128.c ctr128.c cts128.c cfb128.c ofb128.c gcm128.c \
25 ccm128.c xts128.c wrap128.c
26 LIBOBJ= cbc128.o ctr128.o cts128.o cfb128.o ofb128.o gcm128.o \
27 ccm128.o xts128.o wrap128.o $(MODES_ASM_OBJ)
31 #EXHEADER= store.h str_compat.h
33 HEADER= modes_lcl.h $(EXHEADER)
35 ALL= $(GENERAL) $(SRC) $(HEADER)
38 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
43 $(ARX) $(LIB) $(LIBOBJ)
44 $(RANLIB) $(LIB) || echo Never mind.
47 ghash-ia64.s: asm/ghash-ia64.pl
48 $(PERL) asm/ghash-ia64.pl $@ $(CFLAGS)
49 ghash-x86.s: asm/ghash-x86.pl
50 $(PERL) asm/ghash-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
51 ghash-x86_64.s: asm/ghash-x86_64.pl
52 $(PERL) asm/ghash-x86_64.pl $(PERLASM_SCHEME) > $@
53 aesni-gcm-x86_64.s: asm/aesni-gcm-x86_64.pl
54 $(PERL) asm/aesni-gcm-x86_64.pl $(PERLASM_SCHEME) > $@
55 ghash-sparcv9.s: asm/ghash-sparcv9.pl
56 $(PERL) asm/ghash-sparcv9.pl $@ $(CFLAGS)
57 ghash-alpha.s: asm/ghash-alpha.pl
58 (preproc=/tmp/$$$$.$@; trap "rm $$preproc" INT; \
59 $(PERL) asm/ghash-alpha.pl > $$preproc && \
60 $(CC) -E $$preproc > $@ && rm $$preproc)
62 ghash-parisc.s: asm/ghash-parisc.pl
63 $(PERL) asm/ghash-parisc.pl $(PERLASM_SCHEME) $@
65 # GNU make "catch all"
66 ghash-%.S: asm/ghash-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
68 ghash-armv4.o: ghash-armv4.S
71 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
74 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
75 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
76 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
79 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
80 @headerlist="$(EXHEADER)"; for i in $$headerlist; \
82 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
83 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
92 lint -DLINT $(INCLUDES) $(SRC)>fluff
95 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
96 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
99 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
100 mv -f Makefile.new $(MAKEFILE)
103 rm -f *.s *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
105 # DO NOT DELETE THIS LINE -- make depend depends on it.
107 cbc128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
108 cbc128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
109 cbc128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
110 cbc128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
111 cbc128.o: ../../include/openssl/symhacks.h cbc128.c modes_lcl.h
112 ccm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
113 ccm128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
114 ccm128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
115 ccm128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
116 ccm128.o: ../../include/openssl/symhacks.h ccm128.c modes_lcl.h
117 cfb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
118 cfb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
119 cfb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
120 cfb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
121 cfb128.o: ../../include/openssl/symhacks.h cfb128.c modes_lcl.h
122 ctr128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
123 ctr128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
124 ctr128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
125 ctr128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
126 ctr128.o: ../../include/openssl/symhacks.h ctr128.c modes_lcl.h
127 cts128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
128 cts128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
129 cts128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
130 cts128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
131 cts128.o: ../../include/openssl/symhacks.h cts128.c modes_lcl.h
132 gcm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
133 gcm128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
134 gcm128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
135 gcm128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
136 gcm128.o: ../../include/openssl/symhacks.h gcm128.c modes_lcl.h
137 ofb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
138 ofb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
139 ofb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
140 ofb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
141 ofb128.o: ../../include/openssl/symhacks.h modes_lcl.h ofb128.c
142 wrap128.o: ../../e_os.h ../../include/openssl/bio.h
143 wrap128.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
144 wrap128.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
145 wrap128.o: ../../include/openssl/lhash.h ../../include/openssl/modes.h
146 wrap128.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
147 wrap128.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
148 wrap128.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
149 wrap128.o: ../cryptlib.h wrap128.c
150 xts128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
151 xts128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
152 xts128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
153 xts128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
154 xts128.o: ../../include/openssl/symhacks.h modes_lcl.h xts128.c