diff options
Diffstat (limited to 'src/lib/libcrypto/camellia/Makefile')
-rw-r--r-- | src/lib/libcrypto/camellia/Makefile | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/src/lib/libcrypto/camellia/Makefile b/src/lib/libcrypto/camellia/Makefile new file mode 100644 index 0000000000..dfb12951fd --- /dev/null +++ b/src/lib/libcrypto/camellia/Makefile | |||
@@ -0,0 +1,103 @@ | |||
1 | # | ||
2 | # crypto/camellia/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= camellia | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | CPP= $(CC) -E | ||
9 | INCLUDES= | ||
10 | CFLAG=-g | ||
11 | MAKEFILE= Makefile | ||
12 | AR= ar r | ||
13 | |||
14 | CAMELLIA_ASM_OBJ= | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
18 | AFLAGS= $(ASFLAGS) | ||
19 | |||
20 | GENERAL=Makefile | ||
21 | #TEST=camelliatest.c | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC=camellia.c cmll_misc.c cmll_ecb.c cmll_cbc.c cmll_ofb.c \ | ||
26 | cmll_cfb.c cmll_ctr.c | ||
27 | |||
28 | LIBOBJ= camellia.o cmll_misc.o cmll_ecb.o cmll_cbc.o cmll_ofb.o \ | ||
29 | cmll_cfb.o cmll_ctr.o $(CAMELLIA_ASM_OBJ) | ||
30 | |||
31 | SRC= $(LIBSRC) | ||
32 | |||
33 | EXHEADER= camellia.h | ||
34 | HEADER= cmll_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 | $(ARX) $(LIB) $(LIBOBJ) | ||
45 | $(RANLIB) $(LIB) || echo Never mind. | ||
46 | @touch lib | ||
47 | |||
48 | $(LIBOBJ): $(LIBSRC) | ||
49 | |||
50 | |||
51 | files: | ||
52 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
53 | |||
54 | links: | ||
55 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
56 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
57 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
58 | |||
59 | install: | ||
60 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
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 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | ||
77 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
78 | |||
79 | dclean: | ||
80 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
81 | mv -f Makefile.new $(MAKEFILE) | ||
82 | |||
83 | clean: | ||
84 | rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
85 | |||
86 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
87 | |||
88 | camellia.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
89 | camellia.o: camellia.c camellia.h cmll_locl.h | ||
90 | cmll_cbc.o: ../../include/openssl/camellia.h ../../include/openssl/e_os2.h | ||
91 | cmll_cbc.o: ../../include/openssl/opensslconf.h cmll_cbc.c cmll_locl.h | ||
92 | cmll_cfb.o: ../../e_os.h ../../include/openssl/camellia.h | ||
93 | cmll_cfb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
94 | cmll_cfb.o: cmll_cfb.c cmll_locl.h | ||
95 | cmll_ctr.o: ../../include/openssl/camellia.h ../../include/openssl/e_os2.h | ||
96 | cmll_ctr.o: ../../include/openssl/opensslconf.h cmll_ctr.c cmll_locl.h | ||
97 | cmll_ecb.o: ../../include/openssl/camellia.h ../../include/openssl/e_os2.h | ||
98 | cmll_ecb.o: ../../include/openssl/opensslconf.h cmll_ecb.c cmll_locl.h | ||
99 | cmll_misc.o: ../../include/openssl/camellia.h ../../include/openssl/e_os2.h | ||
100 | cmll_misc.o: ../../include/openssl/opensslconf.h | ||
101 | cmll_misc.o: ../../include/openssl/opensslv.h cmll_locl.h cmll_misc.c | ||
102 | cmll_ofb.o: ../../include/openssl/camellia.h ../../include/openssl/e_os2.h | ||
103 | cmll_ofb.o: ../../include/openssl/opensslconf.h cmll_locl.h cmll_ofb.c | ||