diff options
author | markus <> | 2002-09-05 12:51:51 +0000 |
---|---|---|
committer | markus <> | 2002-09-05 12:51:51 +0000 |
commit | f3e848761b58c1645ce3b150d17770e528f39556 (patch) | |
tree | 88a70dc7c35100da165c0ff4f7182805f3d85b76 /src/lib/libcrypto/sha | |
parent | 2f5692b12332315048054bcce20e370985e19970 (diff) | |
download | openbsd-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.ssl | 50 |
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 @@ | |||
5 | DIR= sha | 5 | DIR= sha |
6 | TOP= ../.. | 6 | TOP= ../.. |
7 | CC= cc | 7 | CC= cc |
8 | CPP= $(CC) -E | ||
8 | INCLUDES= | 9 | INCLUDES= |
9 | CFLAG=-g | 10 | CFLAG=-g |
11 | INSTALL_PREFIX= | ||
12 | OPENSSLDIR= /usr/local/ssl | ||
10 | INSTALLTOP=/usr/local/ssl | 13 | INSTALLTOP=/usr/local/ssl |
11 | MAKE= make -f Makefile.ssl | 14 | MAKE= make -f Makefile.ssl |
12 | MAKEDEPEND= makedepend -f Makefile.ssl | 15 | MAKEDEPPROG= makedepend |
16 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
13 | MAKEFILE= Makefile.ssl | 17 | MAKEFILE= Makefile.ssl |
14 | AR= ar r | 18 | AR= ar r |
15 | 19 | ||
@@ -39,12 +43,12 @@ all: lib | |||
39 | 43 | ||
40 | lib: $(LIBOBJ) | 44 | lib: $(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 |
46 | asm/sx86-elf.o: asm/sx86unix.cpp | 50 | asm/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 |
50 | asm/sx86-sol.o: asm/sx86unix.cpp | 54 | asm/sx86-sol.o: asm/sx86unix.cpp |
@@ -58,26 +62,25 @@ asm/sx86-out.o: asm/sx86unix.cpp | |||
58 | 62 | ||
59 | # bsdi | 63 | # bsdi |
60 | asm/sx86bsdi.o: asm/sx86unix.cpp | 64 | asm/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 | ||
63 | asm/sx86unix.cpp: | 67 | asm/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 | ||
66 | files: | 70 | files: |
67 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | 71 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
68 | 72 | ||
69 | links: | 73 | links: |
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 | ||
76 | install: | 79 | install: |
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 | ||
83 | tags: | 86 | tags: |
@@ -89,15 +92,24 @@ lint: | |||
89 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 92 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
90 | 93 | ||
91 | depend: | 94 | depend: |
92 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | 95 | $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) |
93 | 96 | ||
94 | dclean: | 97 | dclean: |
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 | ||
98 | clean: | 101 | clean: |
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 | |||
101 | errors: | ||
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 | |||
106 | sha1_one.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
107 | sha1_one.o: ../../include/openssl/sha.h sha1_one.c | ||
108 | sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
109 | sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h | ||
110 | sha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h | ||
111 | sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
112 | sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h | ||
113 | sha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h | ||
114 | sha_one.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
115 | sha_one.o: ../../include/openssl/sha.h sha_one.c | ||