summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rc4/Makefile.ssl
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/rc4/Makefile.ssl')
-rw-r--r--src/lib/libcrypto/rc4/Makefile.ssl45
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 @@
5DIR= rc4 5DIR= rc4
6TOP= ../.. 6TOP= ../..
7CC= cc 7CC= cc
8CPP= $(CC) -E
8INCLUDES= 9INCLUDES=
9CFLAG=-g 10CFLAG=-g
11INSTALL_PREFIX=
12OPENSSLDIR= /usr/local/ssl
10INSTALLTOP=/usr/local/ssl 13INSTALLTOP=/usr/local/ssl
11MAKE= make -f Makefile.ssl 14MAKE= make -f Makefile.ssl
12MAKEDEPEND= makedepend -f Makefile.ssl 15MAKEDEPPROG= makedepend
16MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
13MAKEFILE= Makefile.ssl 17MAKEFILE= Makefile.ssl
14AR= ar r 18AR= ar r
15 19
@@ -44,12 +48,12 @@ all: lib
44 48
45lib: $(LIBOBJ) 49lib: $(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
51asm/rx86-elf.o: asm/rx86unix.cpp 55asm/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
55asm/rx86-sol.o: asm/rx86unix.cpp 59asm/rx86-sol.o: asm/rx86unix.cpp
@@ -63,26 +67,25 @@ asm/rx86-out.o: asm/rx86unix.cpp
63 67
64# bsdi 68# bsdi
65asm/rx86bsdi.o: asm/rx86unix.cpp 69asm/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
68asm/rx86unix.cpp: 72asm/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
71files: 75files:
72 perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO 76 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
73 77
74links: 78links:
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
81install: 84install:
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
88tags: 91tags:
@@ -94,15 +97,19 @@ lint:
94 lint -DLINT $(INCLUDES) $(SRC)>fluff 97 lint -DLINT $(INCLUDES) $(SRC)>fluff
95 98
96depend: 99depend:
97 $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) 100 $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
98 101
99dclean: 102dclean:
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
103clean: 106clean:
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
106errors:
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
111rc4_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc4.h
112rc4_enc.o: rc4_enc.c rc4_locl.h
113rc4_skey.o: ../../include/openssl/opensslconf.h
114rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/rc4.h
115rc4_skey.o: rc4_locl.h rc4_skey.c