OLD | NEW |
1 # | 1 # |
2 # OpenSSL/crypto/blowfish/Makefile | 2 # OpenSSL/crypto/blowfish/Makefile |
3 # | 3 # |
4 | 4 |
5 DIR= bf | 5 DIR= bf |
6 TOP= ../.. | 6 TOP= ../.. |
7 CC= cc | 7 CC= cc |
8 CPP= $(CC) -E | 8 CPP= $(CC) -E |
9 INCLUDES= | 9 INCLUDES= |
10 CFLAG=-g | 10 CFLAG=-g |
11 MAKEFILE= Makefile | 11 MAKEFILE= Makefile |
12 AR= ar r | 12 AR= ar r |
13 | 13 |
14 BF_ENC= bf_enc.o | 14 BF_ENC= bf_enc.o |
15 # or use | |
16 #DES_ENC= bx86-elf.o | |
17 | 15 |
18 CFLAGS= $(INCLUDES) $(CFLAG) | 16 CFLAGS= $(INCLUDES) $(CFLAG) |
19 ASFLAGS= $(INCLUDES) $(ASFLAG) | 17 ASFLAGS= $(INCLUDES) $(ASFLAG) |
20 AFLAGS= $(ASFLAGS) | 18 AFLAGS= $(ASFLAGS) |
21 | 19 |
22 GENERAL=Makefile | 20 GENERAL=Makefile |
23 TEST=bftest.c | 21 TEST=bftest.c |
24 APPS= | 22 APPS= |
25 | 23 |
26 LIB=$(TOP)/libcrypto.a | 24 LIB=$(TOP)/libcrypto.a |
27 LIBSRC=bf_skey.c bf_ecb.c bf_enc.c bf_cfb64.c bf_ofb64.c | 25 LIBSRC=bf_skey.c bf_ecb.c bf_enc.c bf_cfb64.c bf_ofb64.c |
28 LIBOBJ=bf_skey.o bf_ecb.o $(BF_ENC) bf_cfb64.o bf_ofb64.o | 26 LIBOBJ=bf_skey.o bf_ecb.o $(BF_ENC) bf_cfb64.o bf_ofb64.o |
29 | 27 |
30 SRC= $(LIBSRC) | 28 SRC= $(LIBSRC) |
31 | 29 |
32 EXHEADER= blowfish.h | 30 EXHEADER= blowfish.h |
33 HEADER= bf_pi.h bf_locl.h $(EXHEADER) | 31 HEADER= bf_pi.h bf_locl.h $(EXHEADER) |
34 | 32 |
35 ALL= $(GENERAL) $(SRC) $(HEADER) | 33 ALL= $(GENERAL) $(SRC) $(HEADER) |
36 | 34 |
37 top: | 35 top: |
38 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | 36 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) |
39 | 37 |
40 all: lib | 38 all: lib |
41 | 39 |
42 lib: $(LIBOBJ) | 40 lib: $(LIBOBJ) |
43 » $(ARX) $(LIB) $(LIBOBJ) | 41 » $(AR) $(LIB) $(LIBOBJ) |
44 $(RANLIB) $(LIB) || echo Never mind. | 42 $(RANLIB) $(LIB) || echo Never mind. |
45 @touch lib | 43 @touch lib |
46 | 44 |
47 # ELF | 45 bf-586.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 | 46 » $(PERL) asm/bf-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@ |
49 » (cd asm; $(PERL) bf-586.pl elf $(CFLAGS) $(PROCESSOR) > ../$@) | |
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) > ../$@) | |
53 # a.out | |
54 bx86-out.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | |
55 » (cd asm; $(PERL) bf-586.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@) | |
56 | 47 |
57 files: | 48 files: |
58 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | 49 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO |
59 | 50 |
60 links: | 51 links: |
61 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | 52 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
62 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | 53 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) |
63 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | 54 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
64 | 55 |
65 # We need to use force because 'install' matches 'INSTALL' on case | 56 # We need to use force because 'install' matches 'INSTALL' on case |
(...skipping 30 matching lines...) Expand all Loading... |
96 | 87 |
97 bf_cfb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h | 88 bf_cfb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h |
98 bf_cfb64.o: ../../include/openssl/opensslconf.h bf_cfb64.c bf_locl.h | 89 bf_cfb64.o: ../../include/openssl/opensslconf.h bf_cfb64.c bf_locl.h |
99 bf_ecb.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h | 90 bf_ecb.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h |
100 bf_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | 91 bf_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
101 bf_ecb.o: bf_ecb.c bf_locl.h | 92 bf_ecb.o: bf_ecb.c bf_locl.h |
102 bf_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h | 93 bf_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h |
103 bf_enc.o: ../../include/openssl/opensslconf.h bf_enc.c bf_locl.h | 94 bf_enc.o: ../../include/openssl/opensslconf.h bf_enc.c bf_locl.h |
104 bf_ofb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h | 95 bf_ofb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h |
105 bf_ofb64.o: ../../include/openssl/opensslconf.h bf_locl.h bf_ofb64.c | 96 bf_ofb64.o: ../../include/openssl/opensslconf.h bf_locl.h bf_ofb64.c |
106 bf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/crypto.h | 97 bf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h |
107 bf_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/fips.h | 98 bf_skey.o: ../../include/openssl/opensslconf.h bf_locl.h bf_pi.h bf_skey.c |
108 bf_skey.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | |
109 bf_skey.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | |
110 bf_skey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | |
111 bf_skey.o: bf_locl.h bf_pi.h bf_skey.c | |
OLD | NEW |