diff options
Diffstat (limited to 'src/lib/libcrypto/cast/Makefile.ssl')
-rw-r--r-- | src/lib/libcrypto/cast/Makefile.ssl | 51 |
1 files changed, 33 insertions, 18 deletions
diff --git a/src/lib/libcrypto/cast/Makefile.ssl b/src/lib/libcrypto/cast/Makefile.ssl index 0143827ae5..cc040576ae 100644 --- a/src/lib/libcrypto/cast/Makefile.ssl +++ b/src/lib/libcrypto/cast/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 | ||
@@ -45,7 +47,7 @@ all: lib | |||
45 | 47 | ||
46 | lib: $(LIBOBJ) | 48 | lib: $(LIBOBJ) |
47 | $(AR) $(LIB) $(LIBOBJ) | 49 | $(AR) $(LIB) $(LIBOBJ) |
48 | sh $(TOP)/util/ranlib.sh $(LIB) | 50 | $(RANLIB) $(LIB) |
49 | @touch lib | 51 | @touch lib |
50 | 52 | ||
51 | # elf | 53 | # elf |
@@ -64,26 +66,25 @@ asm/cx86-out.o: asm/cx86unix.cpp | |||
64 | 66 | ||
65 | # bsdi | 67 | # bsdi |
66 | asm/cx86bsdi.o: asm/cx86unix.cpp | 68 | asm/cx86bsdi.o: asm/cx86unix.cpp |
67 | $(CPP) -DBSDI asm/cx86unix.cpp | as -o asm/cx86bsdi.o | 69 | $(CPP) -DBSDI asm/cx86unix.cpp | sed 's/ :/:/' | as -o asm/cx86bsdi.o |
68 | 70 | ||
69 | asm/cx86unix.cpp: | 71 | asm/cx86unix.cpp: asm/cast-586.pl |
70 | (cd asm; perl cast-586.pl cpp >cx86unix.cpp) | 72 | (cd asm; $(PERL) cast-586.pl cpp $(PROCESSOR) >cx86unix.cpp) |
71 | 73 | ||
72 | files: | 74 | files: |
73 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | 75 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
74 | 76 | ||
75 | links: | 77 | links: |
76 | /bin/rm -f Makefile | 78 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
77 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | 79 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
78 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | 80 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) |
79 | $(TOP)/util/mklink.sh ../../test $(TEST) | 81 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
80 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
81 | 82 | ||
82 | install: | 83 | install: |
83 | @for i in $(EXHEADER) ; \ | 84 | @for i in $(EXHEADER) ; \ |
84 | do \ | 85 | do \ |
85 | (cp $$i $(INSTALLTOP)/include/$$i; \ | 86 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
86 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | 87 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ |
87 | done; | 88 | done; |
88 | 89 | ||
89 | tags: | 90 | tags: |
@@ -95,15 +96,29 @@ lint: | |||
95 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 96 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
96 | 97 | ||
97 | depend: | 98 | depend: |
98 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | 99 | $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) |
99 | 100 | ||
100 | dclean: | 101 | dclean: |
101 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | 102 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
102 | mv -f Makefile.new $(MAKEFILE) | 103 | mv -f Makefile.new $(MAKEFILE) |
103 | 104 | ||
104 | clean: | 105 | clean: |
105 | /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | 106 | rm -f asm/cx86unix.cpp *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
106 | |||
107 | errors: | ||
108 | 107 | ||
109 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 108 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
109 | |||
110 | c_cfb64.o: ../../include/openssl/cast.h ../../include/openssl/e_os.h | ||
111 | c_cfb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
112 | c_cfb64.o: cast_lcl.h | ||
113 | c_ecb.o: ../../include/openssl/cast.h ../../include/openssl/e_os.h | ||
114 | c_ecb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
115 | c_ecb.o: ../../include/openssl/opensslv.h cast_lcl.h | ||
116 | c_enc.o: ../../include/openssl/cast.h ../../include/openssl/e_os.h | ||
117 | c_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
118 | c_enc.o: cast_lcl.h | ||
119 | c_ofb64.o: ../../include/openssl/cast.h ../../include/openssl/e_os.h | ||
120 | c_ofb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
121 | c_ofb64.o: cast_lcl.h | ||
122 | c_skey.o: ../../include/openssl/cast.h ../../include/openssl/e_os.h | ||
123 | c_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
124 | c_skey.o: cast_lcl.h cast_s.h | ||