summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cast/Makefile.ssl
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/cast/Makefile.ssl')
-rw-r--r--src/lib/libcrypto/cast/Makefile.ssl51
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
8CPP= $(CC) -E 8CPP= $(CC) -E
9INCLUDES= 9INCLUDES=
10CFLAG=-g 10CFLAG=-g
11INSTALL_PREFIX=
12OPENSSLDIR= /usr/local/ssl
11INSTALLTOP=/usr/local/ssl 13INSTALLTOP=/usr/local/ssl
12MAKE= make -f Makefile.ssl 14MAKE= make -f Makefile.ssl
13MAKEDEPEND= makedepend -f Makefile.ssl 15MAKEDEPEND= $(TOP)/util/domd $(TOP)
14MAKEFILE= Makefile.ssl 16MAKEFILE= Makefile.ssl
15AR= ar r 17AR= ar r
16 18
@@ -45,7 +47,7 @@ all: lib
45 47
46lib: $(LIBOBJ) 48lib: $(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
66asm/cx86bsdi.o: asm/cx86unix.cpp 68asm/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
69asm/cx86unix.cpp: 71asm/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
72files: 74files:
73 perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO 75 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
74 76
75links: 77links:
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
82install: 83install:
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
89tags: 90tags:
@@ -95,15 +96,29 @@ lint:
95 lint -DLINT $(INCLUDES) $(SRC)>fluff 96 lint -DLINT $(INCLUDES) $(SRC)>fluff
96 97
97depend: 98depend:
98 $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) 99 $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
99 100
100dclean: 101dclean:
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
104clean: 105clean:
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
107errors:
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
110c_cfb64.o: ../../include/openssl/cast.h ../../include/openssl/e_os.h
111c_cfb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
112c_cfb64.o: cast_lcl.h
113c_ecb.o: ../../include/openssl/cast.h ../../include/openssl/e_os.h
114c_ecb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
115c_ecb.o: ../../include/openssl/opensslv.h cast_lcl.h
116c_enc.o: ../../include/openssl/cast.h ../../include/openssl/e_os.h
117c_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
118c_enc.o: cast_lcl.h
119c_ofb64.o: ../../include/openssl/cast.h ../../include/openssl/e_os.h
120c_ofb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
121c_ofb64.o: cast_lcl.h
122c_skey.o: ../../include/openssl/cast.h ../../include/openssl/e_os.h
123c_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
124c_skey.o: cast_lcl.h cast_s.h