OLD | NEW |
1 # | 1 # |
2 # OpenSSL/crypto/rc5/Makefile | 2 # OpenSSL/crypto/rc5/Makefile |
3 # | 3 # |
4 | 4 |
5 DIR= rc5 | 5 DIR= rc5 |
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 RC5_ENC= rc5_enc.o | 14 RC5_ENC= rc5_enc.o |
15 # or use | |
16 #DES_ENC= r586-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=rc5test.c | 21 TEST=rc5test.c |
24 APPS= | 22 APPS= |
25 | 23 |
26 LIB=$(TOP)/libcrypto.a | 24 LIB=$(TOP)/libcrypto.a |
27 LIBSRC=rc5_skey.c rc5_ecb.c rc5_enc.c rc5cfb64.c rc5ofb64.c | 25 LIBSRC=rc5_skey.c rc5_ecb.c rc5_enc.c rc5cfb64.c rc5ofb64.c |
28 LIBOBJ=rc5_skey.o rc5_ecb.o $(RC5_ENC) rc5cfb64.o rc5ofb64.o | 26 LIBOBJ=rc5_skey.o rc5_ecb.o $(RC5_ENC) rc5cfb64.o rc5ofb64.o |
29 | 27 |
30 SRC= $(LIBSRC) | 28 SRC= $(LIBSRC) |
31 | 29 |
32 EXHEADER= rc5.h | 30 EXHEADER= rc5.h |
33 HEADER= rc5_locl.h $(EXHEADER) | 31 HEADER= rc5_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 rc5-586.s: asm/rc5-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl |
48 r586-elf.s: asm/rc5-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | 46 » $(PERL) asm/rc5-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@ |
49 » (cd asm; $(PERL) rc5-586.pl elf $(CFLAGS) > ../$@) | |
50 # COFF | |
51 r586-cof.s: asm/rc5-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | |
52 » (cd asm; $(PERL) rc5-586.pl coff $(CFLAGS) > ../$@) | |
53 # a.out | |
54 r586-out.s: asm/rc5-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | |
55 » (cd asm; $(PERL) rc5-586.pl a.out $(CFLAGS) > ../$@) | |
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 install: | 56 install: |
(...skipping 28 matching lines...) Expand all Loading... |
94 rc5_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | 85 rc5_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
95 rc5_ecb.o: ../../include/openssl/rc5.h rc5_ecb.c rc5_locl.h | 86 rc5_ecb.o: ../../include/openssl/rc5.h rc5_ecb.c rc5_locl.h |
96 rc5_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h | 87 rc5_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h |
97 rc5_enc.o: rc5_enc.c rc5_locl.h | 88 rc5_enc.o: rc5_enc.c rc5_locl.h |
98 rc5_skey.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h | 89 rc5_skey.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h |
99 rc5_skey.o: rc5_locl.h rc5_skey.c | 90 rc5_skey.o: rc5_locl.h rc5_skey.c |
100 rc5cfb64.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h | 91 rc5cfb64.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h |
101 rc5cfb64.o: rc5_locl.h rc5cfb64.c | 92 rc5cfb64.o: rc5_locl.h rc5cfb64.c |
102 rc5ofb64.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h | 93 rc5ofb64.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h |
103 rc5ofb64.o: rc5_locl.h rc5ofb64.c | 94 rc5ofb64.o: rc5_locl.h rc5ofb64.c |
OLD | NEW |