2 # SSLeay/crypto/cast/Makefile
11 INSTALLTOP=/usr/local/ssl
12 MAKE= make -f Makefile.ssl
13 MAKEDEPEND= makedepend -f Makefile.ssl
14 MAKEFILE= Makefile.ssl
19 #CAST_ENC=asm/cx86-elf.o
20 #CAST_ENC=asm/cx86-out.o
21 #CAST_ENC=asm/cx86-sol.o
22 #CAST_ENC=asm/cx86bdsi.o
24 CFLAGS= $(INCLUDES) $(CFLAG)
30 LIB=$(TOP)/libcrypto.a
31 LIBSRC=c_skey.c c_ecb.c c_enc.c c_cfb64.c c_ofb64.c
32 LIBOBJ=c_skey.o c_ecb.o $(CAST_ENC) c_cfb64.o c_ofb64.o
37 HEADER= cast_s.h cast_lcl.h $(EXHEADER)
39 ALL= $(GENERAL) $(SRC) $(HEADER)
42 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
47 $(AR) $(LIB) $(LIBOBJ)
48 sh $(TOP)/util/ranlib.sh $(LIB)
52 asm/cx86-elf.o: asm/cx86unix.cpp
53 $(CPP) -DELF asm/cx86unix.cpp | as -o asm/cx86-elf.o
56 asm/cx86-sol.o: asm/cx86unix.cpp
57 $(CC) -E -DSOL asm/cx86unix.cpp | sed 's/^#.*//' > asm/cx86-sol.s
58 as -o asm/cx86-sol.o asm/cx86-sol.s
62 asm/cx86-out.o: asm/cx86unix.cpp
63 $(CPP) -DOUT asm/cx86unix.cpp | as -o asm/cx86-out.o
66 asm/cx86bsdi.o: asm/cx86unix.cpp
67 $(CPP) -DBSDI asm/cx86unix.cpp | sed 's/ :/:/' | as -o asm/cx86bsdi.o
70 (cd asm; perl cast-586.pl cpp >cx86unix.cpp)
73 perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
77 $(TOP)/util/point.sh Makefile.ssl Makefile ;
78 $(TOP)/util/mklink.sh ../../include $(EXHEADER)
79 $(TOP)/util/mklink.sh ../../test $(TEST)
80 $(TOP)/util/mklink.sh ../../apps $(APPS)
83 @for i in $(EXHEADER) ; \
85 (cp $$i $(INSTALLTOP)/include/$$i; \
86 chmod 644 $(INSTALLTOP)/include/$$i ); \
95 lint -DLINT $(INCLUDES) $(SRC)>fluff
98 $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
101 perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
102 mv -f Makefile.new $(MAKEFILE)
105 /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
109 # DO NOT DELETE THIS LINE -- make depend depends on it.