diff options
Diffstat (limited to 'src/lib/libcrypto/rc4/Makefile.ssl')
-rw-r--r-- | src/lib/libcrypto/rc4/Makefile.ssl | 45 |
1 files changed, 26 insertions, 19 deletions
diff --git a/src/lib/libcrypto/rc4/Makefile.ssl b/src/lib/libcrypto/rc4/Makefile.ssl index 19c1e980f3..5214e512fc 100644 --- a/src/lib/libcrypto/rc4/Makefile.ssl +++ b/src/lib/libcrypto/rc4/Makefile.ssl | |||
@@ -5,11 +5,15 @@ | |||
5 | DIR= rc4 | 5 | DIR= rc4 |
6 | TOP= ../.. | 6 | TOP= ../.. |
7 | CC= cc | 7 | CC= cc |
8 | CPP= $(CC) -E | ||
8 | INCLUDES= | 9 | INCLUDES= |
9 | CFLAG=-g | 10 | CFLAG=-g |
11 | INSTALL_PREFIX= | ||
12 | OPENSSLDIR= /usr/local/ssl | ||
10 | INSTALLTOP=/usr/local/ssl | 13 | INSTALLTOP=/usr/local/ssl |
11 | MAKE= make -f Makefile.ssl | 14 | MAKE= make -f Makefile.ssl |
12 | MAKEDEPEND= makedepend -f Makefile.ssl | 15 | MAKEDEPPROG= makedepend |
16 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
13 | MAKEFILE= Makefile.ssl | 17 | MAKEFILE= Makefile.ssl |
14 | AR= ar r | 18 | AR= ar r |
15 | 19 | ||
@@ -44,12 +48,12 @@ all: lib | |||
44 | 48 | ||
45 | lib: $(LIBOBJ) | 49 | lib: $(LIBOBJ) |
46 | $(AR) $(LIB) $(LIBOBJ) | 50 | $(AR) $(LIB) $(LIBOBJ) |
47 | sh $(TOP)/util/ranlib.sh $(LIB) | 51 | $(RANLIB) $(LIB) || echo Never mind. |
48 | @touch lib | 52 | @touch lib |
49 | 53 | ||
50 | # elf | 54 | # elf |
51 | asm/rx86-elf.o: asm/rx86unix.cpp | 55 | asm/rx86-elf.o: asm/rx86unix.cpp |
52 | $(CPP) -DELF asm/rx86unix.cpp | as -o asm/rx86-elf.o | 56 | $(CPP) -DELF -x c asm/rx86unix.cpp | as -o asm/rx86-elf.o |
53 | 57 | ||
54 | # solaris | 58 | # solaris |
55 | asm/rx86-sol.o: asm/rx86unix.cpp | 59 | asm/rx86-sol.o: asm/rx86unix.cpp |
@@ -63,26 +67,25 @@ asm/rx86-out.o: asm/rx86unix.cpp | |||
63 | 67 | ||
64 | # bsdi | 68 | # bsdi |
65 | asm/rx86bsdi.o: asm/rx86unix.cpp | 69 | asm/rx86bsdi.o: asm/rx86unix.cpp |
66 | $(CPP) -DBSDI asm/rx86unix.cpp | as -o asm/rx86bsdi.o | 70 | $(CPP) -DBSDI asm/rx86unix.cpp | sed 's/ :/:/' | as -o asm/rx86bsdi.o |
67 | 71 | ||
68 | asm/rx86unix.cpp: | 72 | asm/rx86unix.cpp: asm/rc4-586.pl ../perlasm/x86asm.pl |
69 | (cd asm; perl rc4-586.pl cpp >rx86unix.cpp) | 73 | (cd asm; $(PERL) rc4-586.pl cpp >rx86unix.cpp) |
70 | 74 | ||
71 | files: | 75 | files: |
72 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | 76 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
73 | 77 | ||
74 | links: | 78 | links: |
75 | /bin/rm -f Makefile | 79 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
76 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | 80 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
77 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | 81 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) |
78 | $(TOP)/util/mklink.sh ../../test $(TEST) | 82 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
79 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
80 | 83 | ||
81 | install: | 84 | install: |
82 | @for i in $(EXHEADER) ; \ | 85 | @for i in $(EXHEADER) ; \ |
83 | do \ | 86 | do \ |
84 | (cp $$i $(INSTALLTOP)/include/$$i; \ | 87 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
85 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | 88 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ |
86 | done; | 89 | done; |
87 | 90 | ||
88 | tags: | 91 | tags: |
@@ -94,15 +97,19 @@ lint: | |||
94 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 97 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
95 | 98 | ||
96 | depend: | 99 | depend: |
97 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | 100 | $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) |
98 | 101 | ||
99 | dclean: | 102 | dclean: |
100 | 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 |
101 | mv -f Makefile.new $(MAKEFILE) | 104 | mv -f Makefile.new $(MAKEFILE) |
102 | 105 | ||
103 | clean: | 106 | clean: |
104 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o | 107 | rm -f asm/rx86unix.cpp *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o |
105 | |||
106 | errors: | ||
107 | 108 | ||
108 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 109 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
110 | |||
111 | rc4_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc4.h | ||
112 | rc4_enc.o: rc4_enc.c rc4_locl.h | ||
113 | rc4_skey.o: ../../include/openssl/opensslconf.h | ||
114 | rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/rc4.h | ||
115 | rc4_skey.o: rc4_locl.h rc4_skey.c | ||