diff options
| author | djm <> | 2008-09-06 12:15:53 +0000 |
|---|---|---|
| committer | djm <> | 2008-09-06 12:15:53 +0000 |
| commit | 353af015bc02bd5a098251d120b3ae56c10ac763 (patch) | |
| tree | 42536fc91256eb7239389df70f6abce69f06da56 /src/lib/libcrypto/cast | |
| parent | 2264137440a13fb11f05127cb03f7239f024ab28 (diff) | |
| parent | 221e4bfdc56c7ec8942006900694c958c515c143 (diff) | |
| download | openbsd-353af015bc02bd5a098251d120b3ae56c10ac763.tar.gz openbsd-353af015bc02bd5a098251d120b3ae56c10ac763.tar.bz2 openbsd-353af015bc02bd5a098251d120b3ae56c10ac763.zip | |
This commit was generated by cvs2git to track changes on a CVS vendor
branch.
Diffstat (limited to 'src/lib/libcrypto/cast')
| -rw-r--r-- | src/lib/libcrypto/cast/Makefile | 41 |
1 files changed, 13 insertions, 28 deletions
diff --git a/src/lib/libcrypto/cast/Makefile b/src/lib/libcrypto/cast/Makefile index b388f6271c..149956ee90 100644 --- a/src/lib/libcrypto/cast/Makefile +++ b/src/lib/libcrypto/cast/Makefile | |||
| @@ -8,23 +8,14 @@ CC= cc | |||
| 8 | CPP= $(CC) -E | 8 | CPP= $(CC) -E |
| 9 | INCLUDES= | 9 | INCLUDES= |
| 10 | CFLAG=-g | 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 | 11 | MAKEFILE= Makefile |
| 17 | AR= ar r | 12 | AR= ar r |
| 18 | 13 | ||
| 19 | CAST_ENC=c_enc.o | 14 | CAST_ENC=c_enc.o |
| 20 | # or use | ||
| 21 | #CAST_ENC=asm/cx86-elf.o | ||
| 22 | #CAST_ENC=asm/cx86-out.o | ||
| 23 | #CAST_ENC=asm/cx86-sol.o | ||
| 24 | #CAST_ENC=asm/cx86bdsi.o | ||
| 25 | 15 | ||
| 26 | CFLAGS= $(INCLUDES) $(CFLAG) | 16 | CFLAGS= $(INCLUDES) $(CFLAG) |
| 27 | ASFLAGS= $(INCLUDES) $(ASFLAG) | 17 | ASFLAGS= $(INCLUDES) $(ASFLAG) |
| 18 | AFLAGS= $(ASFLAGS) | ||
| 28 | 19 | ||
| 29 | GENERAL=Makefile | 20 | GENERAL=Makefile |
| 30 | TEST=casttest.c | 21 | TEST=casttest.c |
| @@ -51,20 +42,15 @@ lib: $(LIBOBJ) | |||
| 51 | $(RANLIB) $(LIB) || echo Never mind. | 42 | $(RANLIB) $(LIB) || echo Never mind. |
| 52 | @touch lib | 43 | @touch lib |
| 53 | 44 | ||
| 54 | # elf | 45 | # ELF |
| 55 | asm/cx86-elf.s: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | 46 | cx86-elf.s: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl |
| 56 | (cd asm; $(PERL) cast-586.pl elf $(CLAGS) $(PROCESSOR) > cx86-elf.s) | 47 | (cd asm; $(PERL) cast-586.pl elf $(CLAGS) $(PROCESSOR) > ../$@) |
| 57 | 48 | # COFF | |
| 49 | cx86-cof.s: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 50 | (cd asm; $(PERL) cast-586.pl coff $(CLAGS) $(PROCESSOR) > ../$@) | ||
| 58 | # a.out | 51 | # a.out |
| 59 | asm/cx86-out.o: asm/cx86unix.cpp | 52 | cx86-out.s: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl |
| 60 | $(CPP) -DOUT asm/cx86unix.cpp | as -o asm/cx86-out.o | 53 | (cd asm; $(PERL) cast-586.pl a.out $(CLAGS) $(PROCESSOR) > ../$@) |
| 61 | |||
| 62 | # bsdi | ||
| 63 | asm/cx86bsdi.o: asm/cx86unix.cpp | ||
| 64 | $(CPP) -DBSDI asm/cx86unix.cpp | sed 's/ :/:/' | as -o asm/cx86bsdi.o | ||
| 65 | |||
| 66 | asm/cx86unix.cpp: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 67 | (cd asm; $(PERL) cast-586.pl cpp $(PROCESSOR) >cx86unix.cpp) | ||
| 68 | 54 | ||
| 69 | files: | 55 | files: |
| 70 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | 56 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO |
| @@ -75,6 +61,7 @@ links: | |||
| 75 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | 61 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
| 76 | 62 | ||
| 77 | install: | 63 | install: |
| 64 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
| 78 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | 65 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ |
| 79 | do \ | 66 | do \ |
| 80 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | 67 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
| @@ -90,6 +77,7 @@ lint: | |||
| 90 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 77 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
| 91 | 78 | ||
| 92 | depend: | 79 | depend: |
| 80 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | ||
| 93 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | 81 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) |
| 94 | 82 | ||
| 95 | dclean: | 83 | dclean: |
| @@ -97,7 +85,7 @@ dclean: | |||
| 97 | mv -f Makefile.new $(MAKEFILE) | 85 | mv -f Makefile.new $(MAKEFILE) |
| 98 | 86 | ||
| 99 | clean: | 87 | clean: |
| 100 | rm -f asm/cx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | 88 | rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
| 101 | 89 | ||
| 102 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 90 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
| 103 | 91 | ||
| @@ -114,8 +102,5 @@ c_ofb64.o: ../../e_os.h ../../include/openssl/cast.h | |||
| 114 | c_ofb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | 102 | c_ofb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h |
| 115 | c_ofb64.o: c_ofb64.c cast_lcl.h | 103 | c_ofb64.o: c_ofb64.c cast_lcl.h |
| 116 | c_skey.o: ../../e_os.h ../../include/openssl/cast.h | 104 | c_skey.o: ../../e_os.h ../../include/openssl/cast.h |
| 117 | c_skey.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | 105 | c_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h |
| 118 | c_skey.o: ../../include/openssl/fips.h ../../include/openssl/opensslconf.h | ||
| 119 | c_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 120 | c_skey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 121 | c_skey.o: c_skey.c cast_lcl.h cast_s.h | 106 | c_skey.o: c_skey.c cast_lcl.h cast_s.h |
