]>
Commit | Line | Data |
---|---|---|
4adfe93c AP |
1 | # |
2 | # crypto/whrlpool/Makefile | |
3 | # | |
4 | ||
5 | DIR= whrlpool | |
6 | TOP= ../.. | |
7 | CC= cc | |
8 | CPP= $(CC) -E | |
9 | INCLUDES= | |
10 | CFLAG=-g | |
11 | MAKEFILE= Makefile | |
12 | AR= ar r | |
13 | ||
14 | CFLAGS= $(INCLUDES) $(CFLAG) | |
15 | ASFLAGS= $(INCLUDES) $(ASFLAG) | |
16 | AFLAGS= $(ASFLAGS) | |
17 | ||
18 | GENERAL=Makefile | |
19 | TEST=wp_test.c | |
20 | APPS= | |
21 | ||
22 | LIB=$(TOP)/libcrypto.a | |
23 | LIBSRC=wp_dgst.c wp_block.c | |
ed26604a | 24 | LIBOBJ=wp_dgst.o wp_block.o $(WP_ASM_OBJ) |
4adfe93c AP |
25 | |
26 | SRC= $(LIBSRC) | |
27 | ||
28 | EXHEADER= whrlpool.h | |
29 | HEADER= wp_locl.h $(EXHEADER) | |
30 | ||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | |
32 | ||
33 | top: | |
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | |
35 | ||
36 | all: lib | |
37 | ||
38 | lib: $(LIBOBJ) | |
39 | $(AR) $(LIB) $(LIBOBJ) | |
40 | $(RANLIB) $(LIB) || echo Never mind. | |
41 | @touch lib | |
42 | ||
ed26604a | 43 | w86mmx-elf.s: asm/wp-mmx.pl ../perlasm/x86asm.pl |
4adfe93c | 44 | (cd asm; $(PERL) wp-mmx.pl elf $(CFLAGS) $(PROCESSOR)) > $@ |
ed26604a | 45 | w86mmx-cof.s: asm/wp-mmx.pl ../perlasm/x86asm.pl |
4adfe93c | 46 | (cd asm; $(PERL) wp-mmx.pl coff $(CFLAGS) $(PROCESSOR)) > $@ |
ed26604a | 47 | w86mmx-out.s: asm/wp-mmx.pl ../perlasm/x86asm.pl |
4adfe93c AP |
48 | (cd asm; $(PERL) wp-mmx.pl a.out $(CFLAGS) $(PROCESSOR)) > $@ |
49 | ||
ed26604a AP |
50 | wp-x86_64.s: asm/wp-x86_64.pl |
51 | $(PERL) asm/wp-x86_64.pl $@ | |
52 | ||
4adfe93c AP |
53 | $(LIBOBJ): $(LIBSRC) |
54 | ||
55 | files: | |
56 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | |
57 | ||
58 | links: | |
59 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | |
60 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | |
61 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | |
62 | ||
63 | install: | |
64 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | |
65 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | |
66 | do \ | |
67 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | |
68 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | |
69 | done; | |
70 | ||
71 | tags: | |
72 | ctags $(SRC) | |
73 | ||
74 | tests: | |
75 | ||
76 | lint: | |
77 | lint -DLINT $(INCLUDES) $(SRC)>fluff | |
78 | ||
79 | depend: | |
80 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | |
81 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | |
82 | ||
83 | dclean: | |
84 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | |
85 | mv -f Makefile.new $(MAKEFILE) | |
86 | ||
87 | clean: | |
88 | rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | |
89 | ||
90 | # DO NOT DELETE THIS LINE -- make depend depends on it. | |
91 | ||
92 | wp_block.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | |
93 | wp_block.o: ../../include/openssl/whrlpool.h wp_block.c wp_locl.h | |
94 | wp_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | |
95 | wp_dgst.o: ../../include/openssl/whrlpool.h wp_dgst.c wp_locl.h |