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