2
# SSLeay/crypto/cast/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
#CAST_ENC=asm/cx86-elf.o
23
#CAST_ENC=asm/cx86-out.o
24
#CAST_ENC=asm/cx86-sol.o
25
#CAST_ENC=asm/cx86bdsi.o
27
CFLAGS= $(INCLUDES) $(CFLAG)
28
ASFLAGS= $(INCLUDES) $(ASFLAG)
34
LIB=$(TOP)/libcrypto.a
35
LIBSRC=c_skey.c c_ecb.c c_enc.c c_cfb64.c c_ofb64.c
36
LIBOBJ=c_skey.o c_ecb.o $(CAST_ENC) c_cfb64.o c_ofb64.o
41
HEADER= cast_s.h cast_lcl.h $(EXHEADER)
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/cx86-elf.s: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
57
(cd asm; $(PERL) cast-586.pl elf $(CLAGS) $(PROCESSOR) > cx86-elf.s)
60
asm/cx86-out.o: asm/cx86unix.cpp
61
$(CPP) -DOUT asm/cx86unix.cpp | as -o asm/cx86-out.o
64
asm/cx86bsdi.o: asm/cx86unix.cpp
65
$(CPP) -DBSDI asm/cx86unix.cpp | sed 's/ :/:/' | as -o asm/cx86bsdi.o
67
asm/cx86unix.cpp: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
68
(cd asm; $(PERL) cast-586.pl cpp $(PROCESSOR) >cx86unix.cpp)
71
$(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
74
@sh $(TOP)/util/point.sh Makefile.ssl Makefile
75
@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
76
@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
77
@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
80
@for i in $(EXHEADER) ; \
82
(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
83
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
92
lint -DLINT $(INCLUDES) $(SRC)>fluff
95
$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
98
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
99
mv -f Makefile.new $(MAKEFILE)
102
rm -f asm/cx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
104
# DO NOT DELETE THIS LINE -- make depend depends on it.
106
c_cfb64.o: ../../e_os.h ../../include/openssl/cast.h
107
c_cfb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
108
c_cfb64.o: c_cfb64.c cast_lcl.h
109
c_ecb.o: ../../e_os.h ../../include/openssl/cast.h
110
c_ecb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
111
c_ecb.o: ../../include/openssl/opensslv.h c_ecb.c cast_lcl.h
112
c_enc.o: ../../e_os.h ../../include/openssl/cast.h
113
c_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
114
c_enc.o: c_enc.c cast_lcl.h
115
c_ofb64.o: ../../e_os.h ../../include/openssl/cast.h
116
c_ofb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
117
c_ofb64.o: c_ofb64.c cast_lcl.h
118
c_skey.o: ../../e_os.h ../../include/openssl/cast.h
119
c_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
120
c_skey.o: c_skey.c cast_lcl.h cast_s.h