diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/aes/Makefile | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/src/lib/libcrypto/aes/Makefile b/src/lib/libcrypto/aes/Makefile new file mode 100644 index 0000000000..a37c6f66a2 --- /dev/null +++ b/src/lib/libcrypto/aes/Makefile | |||
@@ -0,0 +1,103 @@ | |||
1 | # | ||
2 | # crypto/aes/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= aes | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | CPP= $(CC) -E | ||
9 | INCLUDES= | ||
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 | ||
17 | AR= ar r | ||
18 | |||
19 | # CFLAGS= -mpentiumpro $(INCLUDES) $(CFLAG) -O3 -fexpensive-optimizations -funroll-loops -fforce-addr | ||
20 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
21 | |||
22 | GENERAL=Makefile | ||
23 | #TEST=aestest.c | ||
24 | TEST= | ||
25 | APPS= | ||
26 | |||
27 | LIB=$(TOP)/libcrypto.a | ||
28 | LIBSRC=aes_core.c aes_misc.c aes_ecb.c aes_cbc.c aes_cfb.c aes_ofb.c aes_ctr.c | ||
29 | LIBOBJ=aes_core.o aes_misc.o aes_ecb.o aes_cbc.o aes_cfb.o aes_ofb.o aes_ctr.o | ||
30 | |||
31 | SRC= $(LIBSRC) | ||
32 | |||
33 | EXHEADER= aes.h | ||
34 | HEADER= aes_locl.h $(EXHEADER) | ||
35 | |||
36 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
37 | |||
38 | top: | ||
39 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
40 | |||
41 | all: lib | ||
42 | |||
43 | lib: $(LIBOBJ) | ||
44 | $(AR) $(LIB) $(LIBOBJ) | ||
45 | $(RANLIB) $(LIB) || echo Never mind. | ||
46 | @touch lib | ||
47 | |||
48 | $(LIBOBJ): $(LIBSRC) | ||
49 | |||
50 | files: | ||
51 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
52 | |||
53 | links: | ||
54 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
55 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
56 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
57 | |||
58 | install: installs | ||
59 | |||
60 | installs: | ||
61 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
62 | do \ | ||
63 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
64 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
65 | done; | ||
66 | |||
67 | tags: | ||
68 | ctags $(SRC) | ||
69 | |||
70 | tests: | ||
71 | |||
72 | lint: | ||
73 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
74 | |||
75 | depend: | ||
76 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
77 | |||
78 | dclean: | ||
79 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
80 | mv -f Makefile.new $(MAKEFILE) | ||
81 | |||
82 | clean: | ||
83 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
84 | |||
85 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
86 | |||
87 | aes_cbc.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | ||
88 | aes_cbc.o: ../../include/openssl/opensslconf.h aes_cbc.c aes_locl.h | ||
89 | aes_cfb.o: ../../e_os.h ../../include/openssl/aes.h | ||
90 | aes_cfb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
91 | aes_cfb.o: aes_cfb.c aes_locl.h | ||
92 | aes_core.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | ||
93 | aes_core.o: ../../include/openssl/fips.h ../../include/openssl/opensslconf.h | ||
94 | aes_core.o: aes_core.c aes_locl.h | ||
95 | aes_ctr.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | ||
96 | aes_ctr.o: ../../include/openssl/opensslconf.h aes_ctr.c aes_locl.h | ||
97 | aes_ecb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | ||
98 | aes_ecb.o: ../../include/openssl/opensslconf.h aes_ecb.c aes_locl.h | ||
99 | aes_misc.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | ||
100 | aes_misc.o: ../../include/openssl/opensslconf.h | ||
101 | aes_misc.o: ../../include/openssl/opensslv.h aes_locl.h aes_misc.c | ||
102 | aes_ofb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h | ||
103 | aes_ofb.o: ../../include/openssl/opensslconf.h aes_locl.h aes_ofb.c | ||