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 13MODES_ASM_OBJ= 14 15CFLAGS= $(INCLUDES) $(CFLAG) 16ASFLAGS= $(INCLUDES) $(ASFLAG) 17AFLAGS= $(ASFLAGS) 18 19GENERAL=Makefile 20TEST= 21APPS= 22 23LIB=$(TOP)/libcrypto.a 24LIBSRC= cbc128.c ctr128.c cts128.c cfb128.c ofb128.c gcm128.c \ 25 ccm128.c xts128.c 26LIBOBJ= cbc128.o ctr128.o cts128.o cfb128.o ofb128.o gcm128.o \ 27 ccm128.o xts128.o $(MODES_ASM_OBJ) 28 29SRC= $(LIBSRC) 30 31#EXHEADER= store.h str_compat.h 32EXHEADER= modes.h 33HEADER= modes_lcl.h $(EXHEADER) 34 35ALL= $(GENERAL) $(SRC) $(HEADER) 36 37top: 38 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) 39 40all: lib 41 42lib: $(LIBOBJ) 43 $(AR) $(LIB) $(LIBOBJ) 44 $(RANLIB) $(LIB) || echo Never mind. 45 @touch lib 46 47ghash-ia64.s: asm/ghash-ia64.pl 48 $(PERL) asm/ghash-ia64.pl $@ $(CFLAGS) 49ghash-x86.s: asm/ghash-x86.pl 50 $(PERL) asm/ghash-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@ 51ghash-x86_64.s: asm/ghash-x86_64.pl 52 $(PERL) asm/ghash-x86_64.pl $(PERLASM_SCHEME) > $@ 53ghash-sparcv9.s: asm/ghash-sparcv9.pl 54 $(PERL) asm/ghash-sparcv9.pl $@ $(CFLAGS) 55ghash-alpha.s: asm/ghash-alpha.pl 56 (preproc=/tmp/$$$$.$@; trap "rm $$preproc" INT; \ 57 $(PERL) asm/ghash-alpha.pl > $$preproc && \ 58 $(CC) -E $$preproc > $@ && rm $$preproc) 59 60ghash-parisc.s: asm/ghash-parisc.pl 61 $(PERL) asm/ghash-parisc.pl $(PERLASM_SCHEME) $@ 62 63# GNU make "catch all" 64ghash-%.S: asm/ghash-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@ 65 66ghash-armv4.o: ghash-armv4.S 67 68files: 69 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO 70 71links: 72 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) 73 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) 74 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) 75 76install: 77 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... 78 @headerlist="$(EXHEADER)"; for i in $$headerlist; \ 79 do \ 80 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ 81 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ 82 done; 83 84tags: 85 ctags $(SRC) 86 87tests: 88 89lint: 90 lint -DLINT $(INCLUDES) $(SRC)>fluff 91 92update: depend 93 94depend: 95 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... 96 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) 97 98dclean: 99 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new 100 mv -f Makefile.new $(MAKEFILE) 101 102clean: 103 rm -f *.s *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff 104 105# DO NOT DELETE THIS LINE -- make depend depends on it. 106 107cbc128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 108cbc128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h 109cbc128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 110cbc128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 111cbc128.o: ../../include/openssl/symhacks.h cbc128.c modes_lcl.h 112ccm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 113ccm128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h 114ccm128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 115ccm128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 116ccm128.o: ../../include/openssl/symhacks.h ccm128.c modes_lcl.h 117cfb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 118cfb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h 119cfb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 120cfb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 121cfb128.o: ../../include/openssl/symhacks.h cfb128.c modes_lcl.h 122ctr128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 123ctr128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h 124ctr128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 125ctr128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 126ctr128.o: ../../include/openssl/symhacks.h ctr128.c modes_lcl.h 127cts128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 128cts128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h 129cts128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 130cts128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 131cts128.o: ../../include/openssl/symhacks.h cts128.c modes_lcl.h 132gcm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 133gcm128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h 134gcm128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 135gcm128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 136gcm128.o: ../../include/openssl/symhacks.h gcm128.c modes_lcl.h 137ofb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 138ofb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h 139ofb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 140ofb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 141ofb128.o: ../../include/openssl/symhacks.h modes_lcl.h ofb128.c 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 146xts128.o: ../../include/openssl/symhacks.h modes_lcl.h xts128.c 147