summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sha
diff options
context:
space:
mode:
authormarkus <>2002-09-05 12:51:51 +0000
committermarkus <>2002-09-05 12:51:51 +0000
commitf3e848761b58c1645ce3b150d17770e528f39556 (patch)
tree88a70dc7c35100da165c0ff4f7182805f3d85b76 /src/lib/libcrypto/sha
parent2f5692b12332315048054bcce20e370985e19970 (diff)
downloadopenbsd-f3e848761b58c1645ce3b150d17770e528f39556.tar.gz
openbsd-f3e848761b58c1645ce3b150d17770e528f39556.tar.bz2
openbsd-f3e848761b58c1645ce3b150d17770e528f39556.zip
import openssl-0.9.7-beta1
Diffstat (limited to 'src/lib/libcrypto/sha')
-rw-r--r--src/lib/libcrypto/sha/Makefile.ssl50
1 files changed, 31 insertions, 19 deletions
diff --git a/src/lib/libcrypto/sha/Makefile.ssl b/src/lib/libcrypto/sha/Makefile.ssl
index eeb545d140..51ba7811c4 100644
--- a/src/lib/libcrypto/sha/Makefile.ssl
+++ b/src/lib/libcrypto/sha/Makefile.ssl
@@ -5,11 +5,15 @@
5DIR= sha 5DIR= sha
6TOP= ../.. 6TOP= ../..
7CC= cc 7CC= cc
8CPP= $(CC) -E
8INCLUDES= 9INCLUDES=
9CFLAG=-g 10CFLAG=-g
11INSTALL_PREFIX=
12OPENSSLDIR= /usr/local/ssl
10INSTALLTOP=/usr/local/ssl 13INSTALLTOP=/usr/local/ssl
11MAKE= make -f Makefile.ssl 14MAKE= make -f Makefile.ssl
12MAKEDEPEND= makedepend -f Makefile.ssl 15MAKEDEPPROG= makedepend
16MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
13MAKEFILE= Makefile.ssl 17MAKEFILE= Makefile.ssl
14AR= ar r 18AR= ar r
15 19
@@ -39,12 +43,12 @@ all: lib
39 43
40lib: $(LIBOBJ) 44lib: $(LIBOBJ)
41 $(AR) $(LIB) $(LIBOBJ) 45 $(AR) $(LIB) $(LIBOBJ)
42 sh $(TOP)/util/ranlib.sh $(LIB) 46 $(RANLIB) $(LIB) || echo Never mind.
43 @touch lib 47 @touch lib
44 48
45# elf 49# elf
46asm/sx86-elf.o: asm/sx86unix.cpp 50asm/sx86-elf.o: asm/sx86unix.cpp
47 $(CPP) -DELF asm/sx86unix.cpp | as -o asm/sx86-elf.o 51 $(CPP) -DELF -x c asm/sx86unix.cpp | as -o asm/sx86-elf.o
48 52
49# solaris 53# solaris
50asm/sx86-sol.o: asm/sx86unix.cpp 54asm/sx86-sol.o: asm/sx86unix.cpp
@@ -58,26 +62,25 @@ asm/sx86-out.o: asm/sx86unix.cpp
58 62
59# bsdi 63# bsdi
60asm/sx86bsdi.o: asm/sx86unix.cpp 64asm/sx86bsdi.o: asm/sx86unix.cpp
61 $(CPP) -DBSDI asm/sx86unix.cpp | as -o asm/sx86bsdi.o 65 $(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o
62 66
63asm/sx86unix.cpp: 67asm/sx86unix.cpp: asm/sha1-586.pl ../perlasm/x86asm.pl
64 (cd asm; perl sha1-586.pl cpp >sx86unix.cpp) 68 (cd asm; $(PERL) sha1-586.pl cpp $(PROCESSOR) >sx86unix.cpp)
65 69
66files: 70files:
67 perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO 71 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
68 72
69links: 73links:
70 /bin/rm -f Makefile 74 @$(TOP)/util/point.sh Makefile.ssl Makefile
71 $(TOP)/util/point.sh Makefile.ssl Makefile ; 75 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
72 $(TOP)/util/mklink.sh ../../include $(EXHEADER) 76 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
73 $(TOP)/util/mklink.sh ../../test $(TEST) 77 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
74 $(TOP)/util/mklink.sh ../../apps $(APPS)
75 78
76install: 79install:
77 @for i in $(EXHEADER) ; \ 80 @for i in $(EXHEADER) ; \
78 do \ 81 do \
79 (cp $$i $(INSTALLTOP)/include/$$i; \ 82 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
80 chmod 644 $(INSTALLTOP)/include/$$i ); \ 83 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
81 done; 84 done;
82 85
83tags: 86tags:
@@ -89,15 +92,24 @@ lint:
89 lint -DLINT $(INCLUDES) $(SRC)>fluff 92 lint -DLINT $(INCLUDES) $(SRC)>fluff
90 93
91depend: 94depend:
92 $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) 95 $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
93 96
94dclean: 97dclean:
95 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
96 mv -f Makefile.new $(MAKEFILE) 99 mv -f Makefile.new $(MAKEFILE)
97 100
98clean: 101clean:
99 /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o 102 rm -f asm/sx86unix.cpp *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o
100
101errors:
102 103
103# DO NOT DELETE THIS LINE -- make depend depends on it. 104# DO NOT DELETE THIS LINE -- make depend depends on it.
105
106sha1_one.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
107sha1_one.o: ../../include/openssl/sha.h sha1_one.c
108sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
109sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
110sha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h
111sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
112sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
113sha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h
114sha_one.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
115sha_one.o: ../../include/openssl/sha.h sha_one.c