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 LIBOBJ= cbc128.o ctr128.o cts128.o cfb128.o ofb128.o gcm128.o \
30 #EXHEADER= store.h str_compat.h
32 HEADER= modes_lcl.h $(EXHEADER)
34 ALL= $(GENERAL) $(SRC) $(HEADER)
37 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
42 $(ARX) $(LIB) $(LIBOBJ)
43 $(RANLIB) $(LIB) || echo Never mind.
46 ghash-ia64.s: asm/ghash-ia64.pl
47 $(PERL) asm/ghash-ia64.pl $@ $(CFLAGS)
48 ghash-x86.s: asm/ghash-x86.pl
49 $(PERL) asm/ghash-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
50 ghash-x86_64.s: asm/ghash-x86_64.pl
51 $(PERL) asm/ghash-x86_64.pl $(PERLASM_SCHEME) > $@
52 ghash-sparcv9.s: asm/ghash-sparcv9.pl
53 $(PERL) asm/ghash-sparcv9.pl $@ $(CFLAGS)
54 ghash-alpha.s: asm/ghash-alpha.pl
55 $(PERL) $< | $(CC) -E - | tee $@ > /dev/null
56 ghash-parisc.s: asm/ghash-parisc.pl
57 $(PERL) asm/ghash-parisc.pl $(PERLASM_SCHEME) $@
59 # GNU make "catch all"
60 ghash-%.s: asm/ghash-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
63 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
66 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
67 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
68 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
71 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
72 @headerlist="$(EXHEADER)"; for i in $$headerlist; \
74 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
75 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
84 lint -DLINT $(INCLUDES) $(SRC)>fluff
87 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
88 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
91 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
92 mv -f Makefile.new $(MAKEFILE)
95 rm -f *.s *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
97 # DO NOT DELETE THIS LINE -- make depend depends on it.
99 cbc128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
100 cbc128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
101 cbc128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
102 cbc128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
103 cbc128.o: ../../include/openssl/symhacks.h cbc128.c modes_lcl.h
104 cfb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
105 cfb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
106 cfb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
107 cfb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
108 cfb128.o: ../../include/openssl/symhacks.h cfb128.c modes_lcl.h
109 ctr128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
110 ctr128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
111 ctr128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
112 ctr128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
113 ctr128.o: ../../include/openssl/symhacks.h ctr128.c modes_lcl.h
114 cts128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
115 cts128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
116 cts128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
117 cts128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
118 cts128.o: ../../include/openssl/symhacks.h cts128.c modes_lcl.h
119 gcm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
120 gcm128.o: ../../include/openssl/fips.h ../../include/openssl/modes.h
121 gcm128.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
122 gcm128.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
123 gcm128.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
124 gcm128.o: gcm128.c modes_lcl.h
125 ofb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
126 ofb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
127 ofb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
128 ofb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
129 ofb128.o: ../../include/openssl/symhacks.h modes_lcl.h ofb128.c