diff options
Diffstat (limited to 'src/lib/libcrypto/ripemd/Makefile.ssl')
-rw-r--r-- | src/lib/libcrypto/ripemd/Makefile.ssl | 46 |
1 files changed, 26 insertions, 20 deletions
diff --git a/src/lib/libcrypto/ripemd/Makefile.ssl b/src/lib/libcrypto/ripemd/Makefile.ssl index 67d47ceb2c..eb819e64f5 100644 --- a/src/lib/libcrypto/ripemd/Makefile.ssl +++ b/src/lib/libcrypto/ripemd/Makefile.ssl | |||
@@ -8,9 +8,12 @@ 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 | ||
11 | INSTALLTOP=/usr/local/ssl | 13 | INSTALLTOP=/usr/local/ssl |
12 | MAKE= make -f Makefile.ssl | 14 | MAKE= make -f Makefile.ssl |
13 | MAKEDEPEND= makedepend -f Makefile.ssl | 15 | MAKEDEPPROG= makedepend |
16 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
14 | MAKEFILE= Makefile.ssl | 17 | MAKEFILE= Makefile.ssl |
15 | AR= ar r | 18 | AR= ar r |
16 | 19 | ||
@@ -20,7 +23,7 @@ CFLAGS= $(INCLUDES) $(CFLAG) | |||
20 | 23 | ||
21 | GENERAL=Makefile | 24 | GENERAL=Makefile |
22 | TEST=rmdtest.c | 25 | TEST=rmdtest.c |
23 | APPS=rmd160.c | 26 | APPS= |
24 | 27 | ||
25 | LIB=$(TOP)/libcrypto.a | 28 | LIB=$(TOP)/libcrypto.a |
26 | LIBSRC=rmd_dgst.c rmd_one.c | 29 | LIBSRC=rmd_dgst.c rmd_one.c |
@@ -40,12 +43,12 @@ all: lib | |||
40 | 43 | ||
41 | lib: $(LIBOBJ) | 44 | lib: $(LIBOBJ) |
42 | $(AR) $(LIB) $(LIBOBJ) | 45 | $(AR) $(LIB) $(LIBOBJ) |
43 | sh $(TOP)/util/ranlib.sh $(LIB) | 46 | $(RANLIB) $(LIB) || echo Never mind. |
44 | @touch lib | 47 | @touch lib |
45 | 48 | ||
46 | # elf | 49 | # elf |
47 | asm/rm86-elf.o: asm/rm86unix.cpp | 50 | asm/rm86-elf.o: asm/rm86unix.cpp |
48 | $(CPP) -DELF asm/rm86unix.cpp | as -o asm/rm86-elf.o | 51 | $(CPP) -DELF -x c asm/rm86unix.cpp | as -o asm/rm86-elf.o |
49 | 52 | ||
50 | # solaris | 53 | # solaris |
51 | asm/rm86-sol.o: asm/rm86unix.cpp | 54 | asm/rm86-sol.o: asm/rm86unix.cpp |
@@ -59,26 +62,25 @@ asm/rm86-out.o: asm/rm86unix.cpp | |||
59 | 62 | ||
60 | # bsdi | 63 | # bsdi |
61 | asm/rm86bsdi.o: asm/rm86unix.cpp | 64 | asm/rm86bsdi.o: asm/rm86unix.cpp |
62 | $(CPP) -DBSDI asm/rm86unix.cpp | as -o asm/rm86bsdi.o | 65 | $(CPP) -DBSDI asm/rm86unix.cpp | sed 's/ :/:/' | as -o asm/rm86bsdi.o |
63 | 66 | ||
64 | asm/rm86unix.cpp: | 67 | asm/rm86unix.cpp: asm/rmd-586.pl ../perlasm/x86asm.pl |
65 | (cd asm; perl rmd-586.pl cpp >rm86unix.cpp) | 68 | (cd asm; $(PERL) rmd-586.pl cpp >rm86unix.cpp) |
66 | 69 | ||
67 | files: | 70 | files: |
68 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | 71 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
69 | 72 | ||
70 | links: | 73 | links: |
71 | /bin/rm -f Makefile | 74 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
72 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | 75 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
73 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | 76 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) |
74 | $(TOP)/util/mklink.sh ../../test $(TEST) | 77 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
75 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
76 | 78 | ||
77 | install: | 79 | install: |
78 | @for i in $(EXHEADER) ; \ | 80 | @for i in $(EXHEADER) ; \ |
79 | do \ | 81 | do \ |
80 | (cp $$i $(INSTALLTOP)/include/$$i; \ | 82 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
81 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | 83 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ |
82 | done; | 84 | done; |
83 | 85 | ||
84 | tags: | 86 | tags: |
@@ -90,15 +92,19 @@ lint: | |||
90 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 92 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
91 | 93 | ||
92 | depend: | 94 | depend: |
93 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | 95 | $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) |
94 | 96 | ||
95 | dclean: | 97 | dclean: |
96 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | 98 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
97 | mv -f Makefile.new $(MAKEFILE) | 99 | mv -f Makefile.new $(MAKEFILE) |
98 | 100 | ||
99 | clean: | 101 | clean: |
100 | /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | 102 | rm -f asm/rm86unix.cpp *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
101 | |||
102 | errors: | ||
103 | 103 | ||
104 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 104 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
105 | |||
106 | rmd_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
107 | rmd_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ripemd.h | ||
108 | rmd_dgst.o: ../md32_common.h rmd_dgst.c rmd_locl.h rmdconst.h | ||
109 | rmd_one.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
110 | rmd_one.o: ../../include/openssl/ripemd.h rmd_one.c | ||