2 # SSLeay/crypto/rc4/Makefile
12 OPENSSLDIR= /usr/local/ssl
13 INSTALLTOP=/usr/local/ssl
14 MAKE= make -f Makefile.ssl
15 MAKEDEPPROG= makedepend
16 MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
17 MAKEFILE= Makefile.ssl
22 #RC4_ENC=asm/rx86-elf.o
23 #RC4_ENC=asm/rx86-out.o
24 #RC4_ENC=asm/rx86-sol.o
25 #RC4_ENC=asm/rx86bdsi.o
27 CFLAGS= $(INCLUDES) $(CFLAG)
28 ASFLAGS= $(INCLUDES) $(ASFLAG)
34 LIB=$(TOP)/libcrypto.a
35 LIBSRC=rc4_skey.c rc4_enc.c
36 LIBOBJ=rc4_skey.o $(RC4_ENC)
41 HEADER= $(EXHEADER) rc4_locl.h
43 ALL= $(GENERAL) $(SRC) $(HEADER)
46 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
51 $(AR) $(LIB) $(LIBOBJ)
52 $(RANLIB) $(LIB) || echo Never mind.
56 asm/rx86-elf.s: asm/rc4-586.pl ../perlasm/x86asm.pl
57 (cd asm; $(PERL) rc4-586.pl elf $(CFLAGS) > ../$@)
59 asm/rx86-cof.s: asm/rc4-586.pl ../perlasm/x86asm.pl
60 (cd asm; $(PERL) rc4-586.pl coff $(CFLAGS) > ../$@)
62 asm/rx86-out.s: asm/rc4-586.pl ../perlasm/x86asm.pl
63 (cd asm; $(PERL) rc4-586.pl a.out $(CFLAGS) > ../$@)
65 asm/rc4-amd64.s: asm/rc4-amd64.pl; $(PERL) $< $@
68 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
71 @sh $(TOP)/util/point.sh Makefile.ssl Makefile
72 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
73 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
74 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
77 @for i in $(EXHEADER) ; \
79 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
80 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
89 lint -DLINT $(INCLUDES) $(SRC)>fluff
92 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
95 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
96 mv -f Makefile.new $(MAKEFILE)
99 rm -f asm/rx86unix.cpp asm/*-[elf|cof|out].* *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o
101 # DO NOT DELETE THIS LINE -- make depend depends on it.
103 rc4_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc4.h
104 rc4_enc.o: rc4_enc.c rc4_locl.h
105 rc4_skey.o: ../../include/openssl/opensslconf.h
106 rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/rc4.h
107 rc4_skey.o: rc4_locl.h rc4_skey.c