]>
Commit | Line | Data |
---|---|---|
58964a49 | 1 | # |
15ac9716 | 2 | # OpenSSL/crypto/ripemd/Makefile |
58964a49 RE |
3 | # |
4 | ||
5 | DIR= ripemd | |
6 | TOP= ../.. | |
7 | CC= cc | |
8 | CPP= $(CC) -E | |
9 | INCLUDES= | |
10 | CFLAG=-g | |
42ba5d23 | 11 | MAKEFILE= Makefile |
58964a49 RE |
12 | AR= ar r |
13 | ||
14 | RIP_ASM_OBJ= | |
15 | ||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | |
fda5e385 | 17 | ASFLAGS= $(INCLUDES) $(ASFLAG) |
16760a30 | 18 | AFLAGS= $(ASFLAGS) |
58964a49 RE |
19 | |
20 | GENERAL=Makefile | |
21 | TEST=rmdtest.c | |
0f4805f5 | 22 | APPS= |
58964a49 RE |
23 | |
24 | LIB=$(TOP)/libcrypto.a | |
25 | LIBSRC=rmd_dgst.c rmd_one.c | |
26 | LIBOBJ=rmd_dgst.o rmd_one.o $(RMD160_ASM_OBJ) | |
27 | ||
28 | SRC= $(LIBSRC) | |
29 | ||
30 | EXHEADER= ripemd.h | |
31 | HEADER= rmd_locl.h rmdconst.h $(EXHEADER) | |
32 | ||
33 | ALL= $(GENERAL) $(SRC) $(HEADER) | |
34 | ||
35 | top: | |
36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | |
37 | ||
38 | all: lib | |
39 | ||
40 | lib: $(LIBOBJ) | |
f072785e | 41 | $(AR) $(LIB) $(LIBOBJ) |
4e20b1a6 | 42 | $(RANLIB) $(LIB) || echo Never mind. |
58964a49 RE |
43 | @touch lib |
44 | ||
fa8e921f AP |
45 | rmd-586.s: asm/rmd-586.pl ../perlasm/x86asm.pl |
46 | $(PERL) asm/rmd-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@ | |
58964a49 RE |
47 | |
48 | files: | |
42ba5d23 | 49 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO |
58964a49 RE |
50 | |
51 | links: | |
1314c344 BM |
52 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
53 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | |
54 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | |
58964a49 RE |
55 | |
56 | install: | |
81a86fcf | 57 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... |
a2ac429d | 58 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ |
58964a49 | 59 | do \ |
e5f3045f BM |
60 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
61 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | |
58964a49 RE |
62 | done; |
63 | ||
64 | tags: | |
65 | ctags $(SRC) | |
66 | ||
67 | tests: | |
68 | ||
69 | lint: | |
70 | lint -DLINT $(INCLUDES) $(SRC)>fluff | |
71 | ||
72 | depend: | |
ce92b6eb | 73 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... |
001ab3ab | 74 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) |
58964a49 RE |
75 | |
76 | dclean: | |
99aab161 | 77 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
58964a49 RE |
78 | mv -f Makefile.new $(MAKEFILE) |
79 | ||
80 | clean: | |
67ea999d | 81 | rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
58964a49 | 82 | |
58964a49 | 83 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
6242bb9c | 84 | |
ce92b6eb AP |
85 | rmd_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h |
86 | rmd_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ripemd.h | |
87 | rmd_dgst.o: ../md32_common.h rmd_dgst.c rmd_locl.h rmdconst.h | |
88 | rmd_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | |
89 | rmd_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | |
90 | rmd_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/ripemd.h | |
91 | rmd_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | |
92 | rmd_one.o: ../../include/openssl/symhacks.h rmd_one.c |