diff options
Diffstat (limited to 'src/lib/libcrypto/ripemd')
| -rw-r--r-- | src/lib/libcrypto/ripemd/Makefile.ssl | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/src/lib/libcrypto/ripemd/Makefile.ssl b/src/lib/libcrypto/ripemd/Makefile.ssl new file mode 100644 index 0000000000..3583dfdcaf --- /dev/null +++ b/src/lib/libcrypto/ripemd/Makefile.ssl | |||
| @@ -0,0 +1,107 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/ripemd/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= ripemd | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKE= make -f Makefile.ssl | ||
| 15 | MAKEDEPPROG= makedepend | ||
| 16 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 17 | MAKEFILE= Makefile.ssl | ||
| 18 | AR= ar r | ||
| 19 | |||
| 20 | RIP_ASM_OBJ= | ||
| 21 | |||
| 22 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 23 | |||
| 24 | GENERAL=Makefile | ||
| 25 | TEST=rmdtest.c | ||
| 26 | APPS= | ||
| 27 | |||
| 28 | LIB=$(TOP)/libcrypto.a | ||
| 29 | LIBSRC=rmd_dgst.c rmd_one.c | ||
| 30 | LIBOBJ=rmd_dgst.o rmd_one.o $(RMD160_ASM_OBJ) | ||
| 31 | |||
| 32 | SRC= $(LIBSRC) | ||
| 33 | |||
| 34 | EXHEADER= ripemd.h | ||
| 35 | HEADER= rmd_locl.h rmdconst.h $(EXHEADER) | ||
| 36 | |||
| 37 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 38 | |||
| 39 | top: | ||
| 40 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 41 | |||
| 42 | all: lib | ||
| 43 | |||
| 44 | lib: $(LIBOBJ) | ||
| 45 | $(AR) $(LIB) $(LIBOBJ) | ||
| 46 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 47 | @touch lib | ||
| 48 | |||
| 49 | # elf | ||
| 50 | asm/rm86-elf.s: asm/rmd-586.pl ../perlasm/x86asm.pl | ||
| 51 | (cd asm; $(PERL) rmd-586.pl elf $(CFLAGS) > rm86-elf.s) | ||
| 52 | |||
| 53 | # a.out | ||
| 54 | asm/rm86-out.o: asm/rm86unix.cpp | ||
| 55 | $(CPP) -DOUT asm/rm86unix.cpp | as -o asm/rm86-out.o | ||
| 56 | |||
| 57 | # bsdi | ||
| 58 | asm/rm86bsdi.o: asm/rm86unix.cpp | ||
| 59 | $(CPP) -DBSDI asm/rm86unix.cpp | sed 's/ :/:/' | as -o asm/rm86bsdi.o | ||
| 60 | |||
| 61 | asm/rm86unix.cpp: asm/rmd-586.pl ../perlasm/x86asm.pl | ||
| 62 | (cd asm; $(PERL) rmd-586.pl cpp >rm86unix.cpp) | ||
| 63 | |||
| 64 | files: | ||
| 65 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 66 | |||
| 67 | links: | ||
| 68 | @$(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 69 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 70 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 71 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 72 | |||
| 73 | install: | ||
| 74 | @for i in $(EXHEADER) ; \ | ||
| 75 | do \ | ||
| 76 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 77 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 78 | done; | ||
| 79 | |||
| 80 | tags: | ||
| 81 | ctags $(SRC) | ||
| 82 | |||
| 83 | tests: | ||
| 84 | |||
| 85 | lint: | ||
| 86 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 87 | |||
| 88 | depend: | ||
| 89 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 90 | |||
| 91 | dclean: | ||
| 92 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 93 | mv -f Makefile.new $(MAKEFILE) | ||
| 94 | |||
| 95 | clean: | ||
| 96 | rm -f asm/rm86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 97 | |||
| 98 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 99 | |||
| 100 | rmd_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 101 | rmd_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ripemd.h | ||
| 102 | rmd_dgst.o: ../md32_common.h rmd_dgst.c rmd_locl.h rmdconst.h | ||
| 103 | rmd_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
| 104 | rmd_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 105 | rmd_one.o: ../../include/openssl/ripemd.h ../../include/openssl/safestack.h | ||
| 106 | rmd_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 107 | rmd_one.o: rmd_one.c | ||
