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.ssl54
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
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 15MAKEDEPPROG= makedepend
16MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
14MAKEFILE= Makefile.ssl 17MAKEFILE= Makefile.ssl
15AR= ar r 18AR= ar r
16 19
@@ -45,12 +48,12 @@ all: lib
45 48
46lib: $(LIBOBJ) 49lib: $(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
52asm/cx86-elf.o: asm/cx86unix.cpp 55asm/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
56asm/cx86-sol.o: asm/cx86unix.cpp 59asm/cx86-sol.o: asm/cx86unix.cpp
@@ -64,26 +67,25 @@ asm/cx86-out.o: asm/cx86unix.cpp
64 67
65# bsdi 68# bsdi
66asm/cx86bsdi.o: asm/cx86unix.cpp 69asm/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
69asm/cx86unix.cpp: 72asm/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
72files: 75files:
73 perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO 76 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
74 77
75links: 78links:
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
82install: 84install:
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
89tags: 91tags:
@@ -95,15 +97,29 @@ lint:
95 lint -DLINT $(INCLUDES) $(SRC)>fluff 97 lint -DLINT $(INCLUDES) $(SRC)>fluff
96 98
97depend: 99depend:
98 $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) 100 $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
99 101
100dclean: 102dclean:
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
104clean: 106clean:
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
107errors:
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
111c_cfb64.o: ../../e_os.h ../../include/openssl/cast.h
112c_cfb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
113c_cfb64.o: c_cfb64.c cast_lcl.h
114c_ecb.o: ../../e_os.h ../../include/openssl/cast.h
115c_ecb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
116c_ecb.o: ../../include/openssl/opensslv.h c_ecb.c cast_lcl.h
117c_enc.o: ../../e_os.h ../../include/openssl/cast.h
118c_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
119c_enc.o: c_enc.c cast_lcl.h
120c_ofb64.o: ../../e_os.h ../../include/openssl/cast.h
121c_ofb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
122c_ofb64.o: c_ofb64.c cast_lcl.h
123c_skey.o: ../../e_os.h ../../include/openssl/cast.h
124c_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
125c_skey.o: c_skey.c cast_lcl.h cast_s.h