Makefile revision 325335
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 wrap128.c 26LIBOBJ= cbc128.o ctr128.o cts128.o cfb128.o ofb128.o gcm128.o \ 27 ccm128.o xts128.o wrap128.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) > $@ 53aesni-gcm-x86_64.s: asm/aesni-gcm-x86_64.pl 54 $(PERL) asm/aesni-gcm-x86_64.pl $(PERLASM_SCHEME) > $@ 55ghash-sparcv9.s: asm/ghash-sparcv9.pl 56 $(PERL) asm/ghash-sparcv9.pl $@ $(CFLAGS) 57ghash-alpha.s: asm/ghash-alpha.pl 58 (preproc=$$$$.$@.S; trap "rm $$preproc" INT; \ 59 $(PERL) asm/ghash-alpha.pl > $$preproc && \ 60 $(CC) -E -P $$preproc > $@ && rm $$preproc) 61ghash-parisc.s: asm/ghash-parisc.pl 62 $(PERL) asm/ghash-parisc.pl $(PERLASM_SCHEME) $@ 63ghashv8-armx.S: asm/ghashv8-armx.pl 64 $(PERL) asm/ghashv8-armx.pl $(PERLASM_SCHEME) $@ 65ghashp8-ppc.s: asm/ghashp8-ppc.pl 66 $(PERL) asm/ghashp8-ppc.pl $(PERLASM_SCHEME) $@ 67 68# GNU make "catch all" 69ghash-%.S: asm/ghash-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@ 70 71ghash-armv4.o: ghash-armv4.S 72ghashv8-armx.o: ghashv8-armx.S 73 74files: 75 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO 76 77links: 78 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) 79 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) 80 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) 81 82install: 83 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... 84 @headerlist="$(EXHEADER)"; for i in $$headerlist; \ 85 do \ 86 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ 87 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ 88 done; 89 90tags: 91 ctags $(SRC) 92 93tests: 94 95lint: 96 lint -DLINT $(INCLUDES) $(SRC)>fluff 97 98update: depend 99 100depend: 101 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... 102 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) 103 104dclean: 105 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new 106 mv -f Makefile.new $(MAKEFILE) 107 108clean: 109 rm -f *.s *.S *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff 110 111# DO NOT DELETE THIS LINE -- make depend depends on it. 112 113cbc128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 114cbc128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h 115cbc128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 116cbc128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 117cbc128.o: ../../include/openssl/symhacks.h cbc128.c modes_lcl.h 118ccm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 119ccm128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h 120ccm128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 121ccm128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 122ccm128.o: ../../include/openssl/symhacks.h ccm128.c modes_lcl.h 123cfb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 124cfb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h 125cfb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 126cfb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 127cfb128.o: ../../include/openssl/symhacks.h cfb128.c modes_lcl.h 128ctr128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 129ctr128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h 130ctr128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 131ctr128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 132ctr128.o: ../../include/openssl/symhacks.h ctr128.c modes_lcl.h 133cts128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 134cts128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h 135cts128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 136cts128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 137cts128.o: ../../include/openssl/symhacks.h cts128.c modes_lcl.h 138gcm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 139gcm128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h 140gcm128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 141gcm128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 142gcm128.o: ../../include/openssl/symhacks.h gcm128.c modes_lcl.h 143ofb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 144ofb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h 145ofb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 146ofb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 147ofb128.o: ../../include/openssl/symhacks.h modes_lcl.h ofb128.c 148wrap128.o: ../../e_os.h ../../include/openssl/bio.h 149wrap128.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 150wrap128.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 151wrap128.o: ../../include/openssl/lhash.h ../../include/openssl/modes.h 152wrap128.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 153wrap128.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 154wrap128.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 155wrap128.o: ../cryptlib.h wrap128.c 156xts128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 157xts128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h 158xts128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 159xts128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 160xts128.o: ../../include/openssl/symhacks.h modes_lcl.h xts128.c 161