2 # SSLeay/crypto/cast/Makefile
11 INSTALLTOP=/usr/local/ssl
12 MAKE= make -f Makefile.ssl
13 MAKEDEPEND= $(TOP)/util/domd $(TOP)
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
69 asm/cx86unix.cpp: asm/cast-586.pl
70 (cd asm; perl cast-586.pl cpp >cx86unix.cpp)
73 perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
76 @$(TOP)/util/point.sh Makefile.ssl Makefile
77 @$(TOP)/util/mklink.sh ../../include $(EXHEADER)
78 @$(TOP)/util/mklink.sh ../../test $(TEST)
79 @$(TOP)/util/mklink.sh ../../apps $(APPS)
82 @for i in $(EXHEADER) ; \
84 (cp $$i $(INSTALLTOP)/include/$$i; \
85 chmod 644 $(INSTALLTOP)/include/$$i ); \
94 lint -DLINT $(INCLUDES) $(SRC)>fluff
97 $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
100 perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
101 mv -f Makefile.new $(MAKEFILE)
104 rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
108 # DO NOT DELETE THIS LINE -- make depend depends on it.