diff options
Diffstat (limited to 'src/lib/libcrypto/cast/Makefile.ssl')
| -rw-r--r-- | src/lib/libcrypto/cast/Makefile.ssl | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/src/lib/libcrypto/cast/Makefile.ssl b/src/lib/libcrypto/cast/Makefile.ssl new file mode 100644 index 0000000000..b04c1c0e9b --- /dev/null +++ b/src/lib/libcrypto/cast/Makefile.ssl | |||
| @@ -0,0 +1,125 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/cast/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= cast | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | CPP= $(CC) -E | ||
| 9 | INCLUDES= | ||
| 10 | CFLAG=-g | ||
| 11 | INSTALL_PREFIX= | ||
| 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 | ||
| 18 | AR= ar r | ||
| 19 | |||
| 20 | CAST_ENC=c_enc.o | ||
| 21 | # or use | ||
| 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 | ||
| 26 | |||
| 27 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 28 | |||
| 29 | GENERAL=Makefile | ||
| 30 | TEST=casttest.c | ||
| 31 | APPS= | ||
| 32 | |||
| 33 | LIB=$(TOP)/libcrypto.a | ||
| 34 | LIBSRC=c_skey.c c_ecb.c c_enc.c c_cfb64.c c_ofb64.c | ||
| 35 | LIBOBJ=c_skey.o c_ecb.o $(CAST_ENC) c_cfb64.o c_ofb64.o | ||
| 36 | |||
| 37 | SRC= $(LIBSRC) | ||
| 38 | |||
| 39 | EXHEADER= cast.h | ||
| 40 | HEADER= cast_s.h cast_lcl.h $(EXHEADER) | ||
| 41 | |||
| 42 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 43 | |||
| 44 | top: | ||
| 45 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 46 | |||
| 47 | all: lib | ||
| 48 | |||
| 49 | lib: $(LIBOBJ) | ||
| 50 | $(AR) $(LIB) $(LIBOBJ) | ||
| 51 | $(RANLIB) $(LIB) || echo Never mind. | ||
| 52 | @touch lib | ||
| 53 | |||
| 54 | # elf | ||
| 55 | asm/cx86-elf.o: asm/cx86unix.cpp | ||
| 56 | $(CPP) -DELF -x c asm/cx86unix.cpp | as -o asm/cx86-elf.o | ||
| 57 | |||
| 58 | # solaris | ||
| 59 | asm/cx86-sol.o: asm/cx86unix.cpp | ||
| 60 | $(CC) -E -DSOL asm/cx86unix.cpp | sed 's/^#.*//' > asm/cx86-sol.s | ||
| 61 | as -o asm/cx86-sol.o asm/cx86-sol.s | ||
| 62 | rm -f asm/cx86-sol.s | ||
| 63 | |||
| 64 | # a.out | ||
| 65 | asm/cx86-out.o: asm/cx86unix.cpp | ||
| 66 | $(CPP) -DOUT asm/cx86unix.cpp | as -o asm/cx86-out.o | ||
| 67 | |||
| 68 | # bsdi | ||
| 69 | asm/cx86bsdi.o: asm/cx86unix.cpp | ||
| 70 | $(CPP) -DBSDI asm/cx86unix.cpp | sed 's/ :/:/' | as -o asm/cx86bsdi.o | ||
| 71 | |||
| 72 | asm/cx86unix.cpp: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 73 | (cd asm; $(PERL) cast-586.pl cpp $(PROCESSOR) >cx86unix.cpp) | ||
| 74 | |||
| 75 | files: | ||
| 76 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 77 | |||
| 78 | links: | ||
| 79 | @$(TOP)/util/point.sh Makefile.ssl Makefile | ||
| 80 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 81 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 82 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 83 | |||
| 84 | install: | ||
| 85 | @for i in $(EXHEADER) ; \ | ||
| 86 | do \ | ||
| 87 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 88 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 89 | done; | ||
| 90 | |||
| 91 | tags: | ||
| 92 | ctags $(SRC) | ||
| 93 | |||
| 94 | tests: | ||
| 95 | |||
| 96 | lint: | ||
| 97 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 98 | |||
| 99 | depend: | ||
| 100 | $(MAKEDEPEND) $(CFLAG) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) | ||
| 101 | |||
| 102 | dclean: | ||
| 103 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 104 | mv -f Makefile.new $(MAKEFILE) | ||
| 105 | |||
| 106 | clean: | ||
| 107 | rm -f asm/cx86unix.cpp *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 108 | |||
| 109 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 110 | |||
| 111 | c_cfb64.o: ../../e_os.h ../../include/openssl/cast.h | ||
| 112 | c_cfb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 113 | c_cfb64.o: c_cfb64.c cast_lcl.h | ||
| 114 | c_ecb.o: ../../e_os.h ../../include/openssl/cast.h | ||
| 115 | c_ecb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 116 | c_ecb.o: ../../include/openssl/opensslv.h c_ecb.c cast_lcl.h | ||
| 117 | c_enc.o: ../../e_os.h ../../include/openssl/cast.h | ||
| 118 | c_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 119 | c_enc.o: c_enc.c cast_lcl.h | ||
| 120 | c_ofb64.o: ../../e_os.h ../../include/openssl/cast.h | ||
| 121 | c_ofb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 122 | c_ofb64.o: c_ofb64.c cast_lcl.h | ||
| 123 | c_skey.o: ../../e_os.h ../../include/openssl/cast.h | ||
| 124 | c_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
| 125 | c_skey.o: c_skey.c cast_lcl.h cast_s.h | ||
