diff options
| author | djm <> | 2005-04-29 05:37:32 +0000 |
|---|---|---|
| committer | djm <> | 2005-04-29 05:37:32 +0000 |
| commit | 588543a0946f1dbf0f1dd5135f8f6447486dc183 (patch) | |
| tree | f74e14f98abfec33221f0f2e15cc88a34a3df7e5 /src/lib/libcrypto/rc4/Makefile | |
| parent | 00b426069b0dfa8f0d9b87308646e9684f45c515 (diff) | |
| download | openbsd-588543a0946f1dbf0f1dd5135f8f6447486dc183.tar.gz openbsd-588543a0946f1dbf0f1dd5135f8f6447486dc183.tar.bz2 openbsd-588543a0946f1dbf0f1dd5135f8f6447486dc183.zip | |
import of openssl-0.9.7g; tested on platforms from alpha to zaurus, ok deraadt@
Diffstat (limited to 'src/lib/libcrypto/rc4/Makefile')
| -rw-r--r-- | src/lib/libcrypto/rc4/Makefile | 123 |
1 files changed, 123 insertions, 0 deletions
diff --git a/src/lib/libcrypto/rc4/Makefile b/src/lib/libcrypto/rc4/Makefile new file mode 100644 index 0000000000..64e06924f4 --- /dev/null +++ b/src/lib/libcrypto/rc4/Makefile | |||
| @@ -0,0 +1,123 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/rc4/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= rc4 | ||
| 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 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile | ||
| 17 | AR= ar r | ||
| 18 | |||
| 19 | RC4_ENC=rc4_enc.o | ||
| 20 | # or use | ||
| 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 | ||
| 25 | |||
| 26 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 27 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
| 28 | |||
| 29 | GENERAL=Makefile | ||
| 30 | TEST=rc4test.c | ||
| 31 | APPS= | ||
| 32 | |||
| 33 | LIB=$(TOP)/libcrypto.a | ||
| 34 | LIBSRC=rc4_skey.c rc4_enc.c | ||
| 35 | LIBOBJ=rc4_skey.o $(RC4_ENC) | ||
| 36 | |||
| 37 | SRC= $(LIBSRC) | ||
| 38 | |||
| 39 | EXHEADER= rc4.h | ||
| 40 | HEADER= $(EXHEADER) rc4_locl.h | ||
| 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/rx86-elf.s: asm/rc4-586.pl ../perlasm/x86asm.pl | ||
| 56 | (cd asm; $(PERL) rc4-586.pl elf $(CFLAGS) > rx86-elf.s) | ||
| 57 | |||
| 58 | # a.out | ||
| 59 | asm/rx86-out.o: asm/rx86unix.cpp | ||
| 60 | $(CPP) -DOUT asm/rx86unix.cpp | as -o asm/rx86-out.o | ||
| 61 | |||
| 62 | # bsdi | ||
| 63 | asm/rx86bsdi.o: asm/rx86unix.cpp | ||
| 64 | $(CPP) -DBSDI asm/rx86unix.cpp | sed 's/ :/:/' | as -o asm/rx86bsdi.o | ||
| 65 | |||
| 66 | asm/rx86unix.cpp: asm/rc4-586.pl ../perlasm/x86asm.pl | ||
| 67 | (cd asm; $(PERL) rc4-586.pl cpp >rx86unix.cpp) | ||
| 68 | |||
| 69 | asm/rc4-amd64.s: asm/rc4-amd64.pl; $(PERL) asm/rc4-amd64.pl $@ | ||
| 70 | |||
| 71 | asm/rc4-ia64.s: asm/rc4-ia64.S | ||
| 72 | $(CC) $(CFLAGS) -E asm/rc4-ia64.S > $@ | ||
| 73 | |||
| 74 | files: | ||
| 75 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
| 76 | |||
| 77 | links: | ||
| 78 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
| 79 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
| 80 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
| 81 | |||
| 82 | install: | ||
| 83 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
| 84 | do \ | ||
| 85 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
| 86 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
| 87 | done; | ||
| 88 | |||
| 89 | tags: | ||
| 90 | ctags $(SRC) | ||
| 91 | |||
| 92 | tests: | ||
| 93 | |||
| 94 | lint: | ||
| 95 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 96 | |||
| 97 | depend: | ||
| 98 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
| 99 | |||
| 100 | dclean: | ||
| 101 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 102 | mv -f Makefile.new $(MAKEFILE) | ||
| 103 | |||
| 104 | clean: | ||
| 105 | rm -f asm/rx86unix.cpp asm/*-elf.* *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o | ||
| 106 | |||
| 107 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
| 108 | |||
| 109 | rc4_enc.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 110 | rc4_enc.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 111 | rc4_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 112 | rc4_enc.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 113 | rc4_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/rc4.h | ||
| 114 | rc4_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 115 | rc4_enc.o: ../../include/openssl/symhacks.h ../cryptlib.h rc4_enc.c rc4_locl.h | ||
| 116 | rc4_skey.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 117 | rc4_skey.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 118 | rc4_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 119 | rc4_skey.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 120 | rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/rc4.h | ||
| 121 | rc4_skey.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 122 | rc4_skey.o: ../../include/openssl/symhacks.h ../cryptlib.h rc4_locl.h | ||
| 123 | rc4_skey.o: rc4_skey.c | ||
