diff options
Diffstat (limited to 'src/lib/libcrypto/ripemd')
| -rw-r--r-- | src/lib/libcrypto/ripemd/Makefile | 46 |
1 files changed, 17 insertions, 29 deletions
diff --git a/src/lib/libcrypto/ripemd/Makefile b/src/lib/libcrypto/ripemd/Makefile index 20c8b4d8db..d55875c20c 100644 --- a/src/lib/libcrypto/ripemd/Makefile +++ b/src/lib/libcrypto/ripemd/Makefile | |||
| @@ -8,11 +8,6 @@ CC= cc | |||
| 8 | CPP= $(CC) -E | 8 | CPP= $(CC) -E |
| 9 | INCLUDES= | 9 | INCLUDES= |
| 10 | CFLAG=-g | 10 | CFLAG=-g |
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile | 11 | MAKEFILE= Makefile |
| 17 | AR= ar r | 12 | AR= ar r |
| 18 | 13 | ||
| @@ -20,6 +15,7 @@ RIP_ASM_OBJ= | |||
| 20 | 15 | ||
| 21 | CFLAGS= $(INCLUDES) $(CFLAG) | 16 | CFLAGS= $(INCLUDES) $(CFLAG) |
| 22 | ASFLAGS= $(INCLUDES) $(ASFLAG) | 17 | ASFLAGS= $(INCLUDES) $(ASFLAG) |
| 18 | AFLAGS= $(ASFLAGS) | ||
| 23 | 19 | ||
| 24 | GENERAL=Makefile | 20 | GENERAL=Makefile |
| 25 | TEST=rmdtest.c | 21 | TEST=rmdtest.c |
| @@ -46,20 +42,15 @@ lib: $(LIBOBJ) | |||
| 46 | $(RANLIB) $(LIB) || echo Never mind. | 42 | $(RANLIB) $(LIB) || echo Never mind. |
| 47 | @touch lib | 43 | @touch lib |
| 48 | 44 | ||
| 49 | # elf | 45 | # ELF |
| 50 | asm/rm86-elf.s: asm/rmd-586.pl ../perlasm/x86asm.pl | 46 | rm86-elf.s: asm/rmd-586.pl ../perlasm/x86asm.pl |
| 51 | (cd asm; $(PERL) rmd-586.pl elf $(CFLAGS) > rm86-elf.s) | 47 | (cd asm; $(PERL) rmd-586.pl elf $(CFLAGS) > ../$@) |
| 52 | 48 | # COFF | |
| 49 | rm86-cof.s: asm/rmd-586.pl ../perlasm/x86asm.pl | ||
| 50 | (cd asm; $(PERL) rmd-586.pl coff $(CFLAGS) > ../$@) | ||
| 53 | # a.out | 51 | # a.out |
| 54 | asm/rm86-out.o: asm/rm86unix.cpp | 52 | rm86-out.s: asm/rmd-586.pl ../perlasm/x86asm.pl |
| 55 | $(CPP) -DOUT asm/rm86unix.cpp | as -o asm/rm86-out.o | 53 | (cd asm; $(PERL) rmd-586.pl a.out $(CFLAGS) > ../$@) |
| 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 | 54 | ||
| 64 | files: | 55 | files: |
| 65 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | 56 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO |
| @@ -70,6 +61,7 @@ links: | |||
| 70 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | 61 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
| 71 | 62 | ||
| 72 | install: | 63 | install: |
| 64 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
| 73 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | 65 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ |
| 74 | do \ | 66 | do \ |
| 75 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | 67 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
| @@ -85,6 +77,7 @@ lint: | |||
| 85 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 77 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
| 86 | 78 | ||
| 87 | depend: | 79 | depend: |
| 80 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | ||
| 88 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | 81 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) |
| 89 | 82 | ||
| 90 | dclean: | 83 | dclean: |
| @@ -92,20 +85,15 @@ dclean: | |||
| 92 | mv -f Makefile.new $(MAKEFILE) | 85 | mv -f Makefile.new $(MAKEFILE) |
| 93 | 86 | ||
| 94 | clean: | 87 | clean: |
| 95 | rm -f asm/rm86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | 88 | rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
| 96 | 89 | ||
| 97 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 90 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
| 98 | 91 | ||
| 99 | rmd_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | 92 | rmd_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h |
| 100 | rmd_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 101 | rmd_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | ||
| 102 | rmd_dgst.o: ../../include/openssl/opensslconf.h | ||
| 103 | rmd_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ripemd.h | 93 | rmd_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ripemd.h |
| 104 | rmd_dgst.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | 94 | rmd_dgst.o: ../md32_common.h rmd_dgst.c rmd_locl.h rmdconst.h |
| 105 | rmd_dgst.o: ../../include/openssl/symhacks.h ../md32_common.h rmd_dgst.c | ||
| 106 | rmd_dgst.o: rmd_locl.h rmdconst.h | ||
| 107 | rmd_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | 95 | rmd_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h |
| 108 | rmd_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | 96 | rmd_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
| 109 | rmd_one.o: ../../include/openssl/ripemd.h ../../include/openssl/safestack.h | 97 | rmd_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/ripemd.h |
| 110 | rmd_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 98 | rmd_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
| 111 | rmd_one.o: rmd_one.c | 99 | rmd_one.o: ../../include/openssl/symhacks.h rmd_one.c |
