]>
Commit | Line | Data |
---|---|---|
d02b48c6 | 1 | # |
9f85fcef | 2 | # OpenSSL/crypto/blowfish/Makefile |
d02b48c6 RE |
3 | # |
4 | ||
5 | DIR= bf | |
6 | TOP= ../.. | |
7 | CC= cc | |
8 | CPP= $(CC) -E | |
9 | INCLUDES= | |
10 | CFLAG=-g | |
42ba5d23 | 11 | MAKEFILE= Makefile |
d02b48c6 RE |
12 | AR= ar r |
13 | ||
14 | BF_ENC= bf_enc.o | |
15 | # or use | |
16 | #DES_ENC= bx86-elf.o | |
17 | ||
18 | CFLAGS= $(INCLUDES) $(CFLAG) | |
fda5e385 | 19 | ASFLAGS= $(INCLUDES) $(ASFLAG) |
16760a30 | 20 | AFLAGS= $(ASFLAGS) |
d02b48c6 RE |
21 | |
22 | GENERAL=Makefile | |
23 | TEST=bftest.c | |
24 | APPS= | |
25 | ||
26 | LIB=$(TOP)/libcrypto.a | |
58964a49 RE |
27 | 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 | |
d02b48c6 RE |
29 | |
30 | SRC= $(LIBSRC) | |
31 | ||
32 | EXHEADER= blowfish.h | |
33 | HEADER= bf_pi.h bf_locl.h $(EXHEADER) | |
34 | ||
35 | ALL= $(GENERAL) $(SRC) $(HEADER) | |
36 | ||
37 | top: | |
38 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | |
39 | ||
40 | all: lib | |
41 | ||
42 | lib: $(LIBOBJ) | |
d83dde61 | 43 | $(ARX) $(LIB) $(LIBOBJ) |
4e20b1a6 | 44 | $(RANLIB) $(LIB) || echo Never mind. |
d02b48c6 RE |
45 | @touch lib |
46 | ||
ec38ddc7 | 47 | # ELF |
67ea999d | 48 | bx86-elf.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl |
ec38ddc7 AP |
49 | (cd asm; $(PERL) bf-586.pl elf $(CFLAGS) $(PROCESSOR) > ../$@) |
50 | # COFF | |
67ea999d | 51 | bx86-cof.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl |
ec38ddc7 | 52 | (cd asm; $(PERL) bf-586.pl coff $(CFLAGS) $(PROCESSOR) > ../$@) |
d02b48c6 | 53 | # a.out |
16760a30 AP |
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) > ../$@) | |
58964a49 | 56 | |
d02b48c6 | 57 | files: |
42ba5d23 | 58 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO |
d02b48c6 RE |
59 | |
60 | links: | |
1314c344 BM |
61 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
62 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | |
63 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | |
d02b48c6 | 64 | |
86a249fe RL |
65 | # We need to use force because 'install' matches 'INSTALL' on case |
66 | # insensitive systems | |
67 | FRC.install: | |
68 | install: FRC.install | |
81a86fcf | 69 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... |
a2ac429d | 70 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ |
d02b48c6 | 71 | do \ |
e5f3045f BM |
72 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
73 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | |
d02b48c6 RE |
74 | done; |
75 | ||
76 | tags: | |
77 | ctags $(SRC) | |
78 | ||
79 | tests: | |
80 | ||
81 | lint: | |
82 | lint -DLINT $(INCLUDES) $(SRC)>fluff | |
83 | ||
84 | depend: | |
ce92b6eb | 85 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... |
001ab3ab | 86 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) |
d02b48c6 RE |
87 | |
88 | dclean: | |
99aab161 | 89 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
d02b48c6 RE |
90 | mv -f Makefile.new $(MAKEFILE) |
91 | ||
92 | clean: | |
67ea999d | 93 | rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
d02b48c6 | 94 | |
d02b48c6 | 95 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
6242bb9c | 96 | |
ce92b6eb AP |
97 | 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 | |
99 | bf_ecb.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h | |
100 | bf_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | |
710e5d56 | 101 | bf_ecb.o: bf_ecb.c bf_locl.h |
ce92b6eb AP |
102 | 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 | |
104 | 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 | |
e852835d DSH |
106 | bf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/crypto.h |
107 | bf_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/fips.h | |
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 |