diff options
Diffstat (limited to 'src/lib/libcrypto/bf/Makefile')
-rw-r--r-- | src/lib/libcrypto/bf/Makefile | 45 |
1 files changed, 18 insertions, 27 deletions
diff --git a/src/lib/libcrypto/bf/Makefile b/src/lib/libcrypto/bf/Makefile index 42e2c050f8..8441954a8d 100644 --- a/src/lib/libcrypto/bf/Makefile +++ b/src/lib/libcrypto/bf/Makefile | |||
@@ -8,11 +8,6 @@ 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 | ||
@@ -22,6 +17,7 @@ BF_ENC= bf_enc.o | |||
22 | 17 | ||
23 | CFLAGS= $(INCLUDES) $(CFLAG) | 18 | CFLAGS= $(INCLUDES) $(CFLAG) |
24 | ASFLAGS= $(INCLUDES) $(ASFLAG) | 19 | ASFLAGS= $(INCLUDES) $(ASFLAG) |
20 | AFLAGS= $(ASFLAGS) | ||
25 | 21 | ||
26 | GENERAL=Makefile | 22 | GENERAL=Makefile |
27 | TEST=bftest.c | 23 | TEST=bftest.c |
@@ -48,20 +44,15 @@ lib: $(LIBOBJ) | |||
48 | $(RANLIB) $(LIB) || echo Never mind. | 44 | $(RANLIB) $(LIB) || echo Never mind. |
49 | @touch lib | 45 | @touch lib |
50 | 46 | ||
51 | # elf | 47 | # ELF |
52 | asm/bx86-elf.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | 48 | bx86-elf.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl |
53 | (cd asm; $(PERL) bf-586.pl elf $(CFLAGS) $(PROCESSOR) > bx86-elf.s) | 49 | (cd asm; $(PERL) bf-586.pl elf $(CFLAGS) $(PROCESSOR) > ../$@) |
54 | 50 | # COFF | |
51 | bx86-cof.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
52 | (cd asm; $(PERL) bf-586.pl coff $(CFLAGS) $(PROCESSOR) > ../$@) | ||
55 | # a.out | 53 | # a.out |
56 | asm/bx86-out.o: asm/bx86unix.cpp | 54 | bx86-out.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl |
57 | $(CPP) -DOUT asm/bx86unix.cpp | as -o asm/bx86-out.o | 55 | (cd asm; $(PERL) bf-586.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@) |
58 | |||
59 | # bsdi | ||
60 | asm/bx86bsdi.o: asm/bx86unix.cpp | ||
61 | $(CPP) -DBSDI asm/bx86unix.cpp | sed 's/ :/:/' | as -o asm/bx86bsdi.o | ||
62 | |||
63 | asm/bx86unix.cpp: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
64 | (cd asm; $(PERL) bf-586.pl cpp $(PROCESSOR) >bx86unix.cpp) | ||
65 | 56 | ||
66 | files: | 57 | files: |
67 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | 58 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO |
@@ -71,9 +62,11 @@ links: | |||
71 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | 62 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) |
72 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | 63 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
73 | 64 | ||
74 | install: installs | 65 | # We need to use force because 'install' matches 'INSTALL' on case |
75 | 66 | # insensitive systems | |
76 | installs: | 67 | FRC.install: |
68 | install: FRC.install | ||
69 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
77 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | 70 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ |
78 | do \ | 71 | do \ |
79 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | 72 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
@@ -89,6 +82,7 @@ lint: | |||
89 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 82 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
90 | 83 | ||
91 | depend: | 84 | depend: |
85 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | ||
92 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | 86 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) |
93 | 87 | ||
94 | dclean: | 88 | dclean: |
@@ -96,7 +90,7 @@ dclean: | |||
96 | mv -f Makefile.new $(MAKEFILE) | 90 | mv -f Makefile.new $(MAKEFILE) |
97 | 91 | ||
98 | clean: | 92 | clean: |
99 | rm -f asm/bx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | 93 | rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
100 | 94 | ||
101 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 95 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
102 | 96 | ||
@@ -109,8 +103,5 @@ bf_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h | |||
109 | bf_enc.o: ../../include/openssl/opensslconf.h bf_enc.c bf_locl.h | 103 | bf_enc.o: ../../include/openssl/opensslconf.h bf_enc.c bf_locl.h |
110 | bf_ofb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h | 104 | bf_ofb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h |
111 | bf_ofb64.o: ../../include/openssl/opensslconf.h bf_locl.h bf_ofb64.c | 105 | bf_ofb64.o: ../../include/openssl/opensslconf.h bf_locl.h bf_ofb64.c |
112 | bf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/crypto.h | 106 | bf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h |
113 | bf_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/fips.h | 107 | bf_skey.o: ../../include/openssl/opensslconf.h bf_locl.h bf_pi.h bf_skey.c |
114 | bf_skey.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
115 | bf_skey.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
116 | bf_skey.o: ../../include/openssl/symhacks.h bf_locl.h bf_pi.h bf_skey.c | ||