2 # SSLeay/crypto/rc4/Makefile
12 OPENSSLDIR= /usr/local/ssl
13 INSTALLTOP=/usr/local/ssl
14 MAKEDEPPROG= makedepend
15 MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
21 #RC4_ENC=asm/rx86-elf.o
22 #RC4_ENC=asm/rx86-out.o
23 #RC4_ENC=asm/rx86-sol.o
24 #RC4_ENC=asm/rx86bdsi.o
26 CFLAGS= $(INCLUDES) $(CFLAG)
27 ASFLAGS= $(INCLUDES) $(ASFLAG)
33 LIB=$(TOP)/libcrypto.a
34 LIBSRC=rc4_skey.c rc4_enc.c
35 LIBOBJ=rc4_skey.o $(RC4_ENC)
40 HEADER= $(EXHEADER) rc4_locl.h
42 ALL= $(GENERAL) $(SRC) $(HEADER)
45 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
50 $(AR) $(LIB) $(LIBOBJ)
51 $(RANLIB) $(LIB) || echo Never mind.
55 asm/rx86-elf.s: asm/rc4-586.pl ../perlasm/x86asm.pl
56 (cd asm; $(PERL) rc4-586.pl elf $(CFLAGS) > rx86-elf.s)
59 asm/rx86-out.o: asm/rx86unix.cpp
60 $(CPP) -DOUT asm/rx86unix.cpp | as -o asm/rx86-out.o
63 asm/rx86bsdi.o: asm/rx86unix.cpp
64 $(CPP) -DBSDI asm/rx86unix.cpp | sed 's/ :/:/' | as -o asm/rx86bsdi.o
66 asm/rx86unix.cpp: asm/rc4-586.pl ../perlasm/x86asm.pl
67 (cd asm; $(PERL) rc4-586.pl cpp >rx86unix.cpp)
70 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
73 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
74 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
75 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
78 @for i in $(EXHEADER) ; \
80 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
81 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
90 lint -DLINT $(INCLUDES) $(SRC)>fluff
93 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
96 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
97 mv -f Makefile.new $(MAKEFILE)
100 rm -f asm/rx86unix.cpp asm/*-elf.* *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o
102 # DO NOT DELETE THIS LINE -- make depend depends on it.
104 rc4_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc4.h
105 rc4_enc.o: rc4_enc.c rc4_locl.h
106 rc4_skey.o: ../../include/openssl/opensslconf.h
107 rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/rc4.h
108 rc4_skey.o: rc4_locl.h rc4_skey.c