summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bf/Makefile.ssl
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bf/Makefile.ssl')
-rw-r--r--src/lib/libcrypto/bf/Makefile.ssl57
1 files changed, 35 insertions, 22 deletions
diff --git a/src/lib/libcrypto/bf/Makefile.ssl b/src/lib/libcrypto/bf/Makefile.ssl
index 236671f238..1b1cb8842f 100644
--- a/src/lib/libcrypto/bf/Makefile.ssl
+++ b/src/lib/libcrypto/bf/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
@@ -42,12 +45,12 @@ all: lib
42 45
43lib: $(LIBOBJ) 46lib: $(LIBOBJ)
44 $(AR) $(LIB) $(LIBOBJ) 47 $(AR) $(LIB) $(LIBOBJ)
45 sh $(TOP)/util/ranlib.sh $(LIB) 48 $(RANLIB) $(LIB) || echo Never mind.
46 @touch lib 49 @touch lib
47 50
48# elf 51# elf
49asm/bx86-elf.o: asm/bx86unix.cpp 52asm/bx86-elf.o: asm/bx86unix.cpp
50 $(CPP) -DELF asm/bx86unix.cpp | as -o asm/bx86-elf.o 53 $(CPP) -DELF -x c asm/bx86unix.cpp | as -o asm/bx86-elf.o
51 54
52# solaris 55# solaris
53asm/bx86-sol.o: asm/bx86unix.cpp 56asm/bx86-sol.o: asm/bx86unix.cpp
@@ -61,27 +64,27 @@ asm/bx86-out.o: asm/bx86unix.cpp
61 64
62# bsdi 65# bsdi
63asm/bx86bsdi.o: asm/bx86unix.cpp 66asm/bx86bsdi.o: asm/bx86unix.cpp
64 $(CPP) -DBSDI asm/bx86unix.cpp | as -o asm/bx86bsdi.o 67 $(CPP) -DBSDI asm/bx86unix.cpp | sed 's/ :/:/' | as -o asm/bx86bsdi.o
65 68
66asm/bx86unix.cpp: 69asm/bx86unix.cpp: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
67 (cd asm; perl bf-586.pl cpp >bx86unix.cpp) 70 (cd asm; $(PERL) bf-586.pl cpp $(PROCESSOR) >bx86unix.cpp)
68 71
69files: 72files:
70 perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO 73 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
71 74
72links: 75links:
73 /bin/rm -f Makefile 76 @$(TOP)/util/point.sh Makefile.ssl Makefile
74 $(TOP)/util/point.sh Makefile.ssl Makefile ; 77 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
75 $(TOP)/util/point.sh ../../doc/blowfish.doc blowfish.doc ; 78 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
76 $(TOP)/util/mklink.sh ../../include $(EXHEADER) 79 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
77 $(TOP)/util/mklink.sh ../../test $(TEST) 80
78 $(TOP)/util/mklink.sh ../../apps $(APPS) 81install: installs
79 82
80install: 83installs:
81 @for i in $(EXHEADER) ; \ 84 @for i in $(EXHEADER) ; \
82 do \ 85 do \
83 (cp $$i $(INSTALLTOP)/include/$$i; \ 86 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
84 chmod 644 $(INSTALLTOP)/include/$$i ); \ 87 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
85 done; 88 done;
86 89
87tags: 90tags:
@@ -93,15 +96,25 @@ lint:
93 lint -DLINT $(INCLUDES) $(SRC)>fluff 96 lint -DLINT $(INCLUDES) $(SRC)>fluff
94 97
95depend: 98depend:
96 $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) 99 $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
97 100
98dclean: 101dclean:
99 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
100 mv -f Makefile.new $(MAKEFILE) 103 mv -f Makefile.new $(MAKEFILE)
101 104
102clean: 105clean:
103 /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff 106 rm -f asm/bx86unix.cpp *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
104
105errors:
106 107
107# DO NOT DELETE THIS LINE -- make depend depends on it. 108# DO NOT DELETE THIS LINE -- make depend depends on it.
109
110bf_cfb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
111bf_cfb64.o: ../../include/openssl/opensslconf.h bf_cfb64.c bf_locl.h
112bf_ecb.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
113bf_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
114bf_ecb.o: bf_ecb.c bf_locl.h
115bf_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
116bf_enc.o: ../../include/openssl/opensslconf.h bf_enc.c bf_locl.h
117bf_ofb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
118bf_ofb64.o: ../../include/openssl/opensslconf.h bf_locl.h bf_ofb64.c
119bf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
120bf_skey.o: ../../include/openssl/opensslconf.h bf_locl.h bf_pi.h bf_skey.c