diff options
Diffstat (limited to 'src/lib/libcrypto/rc5/Makefile.ssl')
-rw-r--r-- | src/lib/libcrypto/rc5/Makefile.ssl | 41 |
1 files changed, 23 insertions, 18 deletions
diff --git a/src/lib/libcrypto/rc5/Makefile.ssl b/src/lib/libcrypto/rc5/Makefile.ssl index 5e98ee2348..666c4b6539 100644 --- a/src/lib/libcrypto/rc5/Makefile.ssl +++ b/src/lib/libcrypto/rc5/Makefile.ssl | |||
@@ -8,9 +8,11 @@ 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 | MAKEDEPEND= $(TOP)/util/domd $(TOP) |
14 | MAKEFILE= Makefile.ssl | 16 | MAKEFILE= Makefile.ssl |
15 | AR= ar r | 17 | AR= ar r |
16 | 18 | ||
@@ -42,7 +44,7 @@ all: lib | |||
42 | 44 | ||
43 | lib: $(LIBOBJ) | 45 | lib: $(LIBOBJ) |
44 | $(AR) $(LIB) $(LIBOBJ) | 46 | $(AR) $(LIB) $(LIBOBJ) |
45 | sh $(TOP)/util/ranlib.sh $(LIB) | 47 | $(RANLIB) $(LIB) |
46 | @touch lib | 48 | @touch lib |
47 | 49 | ||
48 | # elf | 50 | # elf |
@@ -61,27 +63,25 @@ asm/r586-out.o: asm/r586unix.cpp | |||
61 | 63 | ||
62 | # bsdi | 64 | # bsdi |
63 | asm/r586bsdi.o: asm/r586unix.cpp | 65 | asm/r586bsdi.o: asm/r586unix.cpp |
64 | $(CPP) -DBSDI asm/r586unix.cpp | as -o asm/r586bsdi.o | 66 | $(CPP) -DBSDI asm/r586unix.cpp | sed 's/ :/:/' | as -o asm/r586bsdi.o |
65 | 67 | ||
66 | asm/r586unix.cpp: | 68 | asm/r586unix.cpp: |
67 | (cd asm; perl rc5-586.pl cpp >r586unix.cpp) | 69 | (cd asm; $(PERL) rc5-586.pl cpp >r586unix.cpp) |
68 | 70 | ||
69 | files: | 71 | files: |
70 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | 72 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
71 | 73 | ||
72 | links: | 74 | links: |
73 | /bin/rm -f Makefile | 75 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
74 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | 76 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
75 | $(TOP)/util/point.sh ../../doc/rc5.doc rc5.doc ; | 77 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) |
76 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | 78 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
77 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
78 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
79 | 79 | ||
80 | install: | 80 | install: |
81 | @for i in $(EXHEADER) ; \ | 81 | @for i in $(EXHEADER) ; \ |
82 | do \ | 82 | do \ |
83 | (cp $$i $(INSTALLTOP)/include/$$i; \ | 83 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
84 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | 84 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ |
85 | done; | 85 | done; |
86 | 86 | ||
87 | tags: | 87 | tags: |
@@ -93,15 +93,20 @@ lint: | |||
93 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 93 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
94 | 94 | ||
95 | depend: | 95 | depend: |
96 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | 96 | $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) |
97 | 97 | ||
98 | dclean: | 98 | dclean: |
99 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | 99 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
100 | mv -f Makefile.new $(MAKEFILE) | 100 | mv -f Makefile.new $(MAKEFILE) |
101 | 101 | ||
102 | clean: | 102 | clean: |
103 | /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | 103 | rm -f asm/r586unix.cpp *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
104 | |||
105 | errors: | ||
106 | 104 | ||
107 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 105 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
106 | |||
107 | rc5_ecb.o: ../../include/openssl/opensslv.h ../../include/openssl/rc5.h | ||
108 | rc5_ecb.o: rc5_locl.h | ||
109 | rc5_enc.o: ../../include/openssl/rc5.h rc5_locl.h | ||
110 | rc5_skey.o: ../../include/openssl/rc5.h rc5_locl.h | ||
111 | rc5cfb64.o: ../../include/openssl/rc5.h rc5_locl.h | ||
112 | rc5ofb64.o: ../../include/openssl/rc5.h rc5_locl.h | ||