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
34 ALL= $(GENERAL) $(SRC) $(HEADER)
37 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
42 $(AR) $(LIB) $(LIBOBJ)
43 $(RANLIB) $(LIB) || echo Never mind.
46 aes-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) $@
58 # GNU make "catch all"
59 ghash-%.s: asm/ghash-%.pl; $(PERL) $< $(PERLASM_SCHEME) $(CFLAGS) > $@
62 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
65 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
66 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
67 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
70 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
71 @headerlist="$(EXHEADER)"; for i in $$headerlist; \
73 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
74 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
83 lint -DLINT $(INCLUDES) $(SRC)>fluff
86 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
87 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
90 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
91 mv -f Makefile.new $(MAKEFILE)
94 rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
96 # DO NOT DELETE THIS LINE -- make depend depends on it.
98 cbc128.o: cbc128.c modes.h
99 cfb128.o: cfb128.c modes.h
100 ctr128.o: ctr128.c modes.h
101 cts128.o: cts128.c modes.h
102 ofb128.o: modes.h ofb128.c