summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ripemd/Makefile.ssl
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ripemd/Makefile.ssl')
-rw-r--r--src/lib/libcrypto/ripemd/Makefile.ssl46
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
8CPP= $(CC) -E 8CPP= $(CC) -E
9INCLUDES= 9INCLUDES=
10CFLAG=-g 10CFLAG=-g
11INSTALL_PREFIX=
12OPENSSLDIR= /usr/local/ssl
11INSTALLTOP=/usr/local/ssl 13INSTALLTOP=/usr/local/ssl
12MAKE= make -f Makefile.ssl 14MAKE= make -f Makefile.ssl
13MAKEDEPEND= makedepend -f Makefile.ssl 15MAKEDEPPROG= makedepend
16MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
14MAKEFILE= Makefile.ssl 17MAKEFILE= Makefile.ssl
15AR= ar r 18AR= ar r
16 19
@@ -20,7 +23,7 @@ CFLAGS= $(INCLUDES) $(CFLAG)
20 23
21GENERAL=Makefile 24GENERAL=Makefile
22TEST=rmdtest.c 25TEST=rmdtest.c
23APPS=rmd160.c 26APPS=
24 27
25LIB=$(TOP)/libcrypto.a 28LIB=$(TOP)/libcrypto.a
26LIBSRC=rmd_dgst.c rmd_one.c 29LIBSRC=rmd_dgst.c rmd_one.c
@@ -40,12 +43,12 @@ all: lib
40 43
41lib: $(LIBOBJ) 44lib: $(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
47asm/rm86-elf.o: asm/rm86unix.cpp 50asm/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
51asm/rm86-sol.o: asm/rm86unix.cpp 54asm/rm86-sol.o: asm/rm86unix.cpp
@@ -59,26 +62,25 @@ asm/rm86-out.o: asm/rm86unix.cpp
59 62
60# bsdi 63# bsdi
61asm/rm86bsdi.o: asm/rm86unix.cpp 64asm/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
64asm/rm86unix.cpp: 67asm/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
67files: 70files:
68 perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO 71 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
69 72
70links: 73links:
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
77install: 79install:
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
84tags: 86tags:
@@ -90,15 +92,19 @@ lint:
90 lint -DLINT $(INCLUDES) $(SRC)>fluff 92 lint -DLINT $(INCLUDES) $(SRC)>fluff
91 93
92depend: 94depend:
93 $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) 95 $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
94 96
95dclean: 97dclean:
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
99clean: 101clean:
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
102errors:
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
106rmd_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
107rmd_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ripemd.h
108rmd_dgst.o: ../md32_common.h rmd_dgst.c rmd_locl.h rmdconst.h
109rmd_one.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
110rmd_one.o: ../../include/openssl/ripemd.h rmd_one.c