a5aea85b49a0634ed973d1c7e3eaae2ebc3d9513
[openssl.git] / crypto / ripemd / Makefile
1 #
2 # OpenSSL/crypto/ripemd/Makefile
3 #
4
5 DIR=    ripemd
6 TOP=    ../..
7 CC=     cc
8 CPP=    $(CC) -E
9 INCLUDES=
10 CFLAG=-g
11 MAKEFILE=       Makefile
12 AR=             ar r
13
14 RIP_ASM_OBJ=
15
16 CFLAGS= $(INCLUDES) $(CFLAG)
17 ASFLAGS= $(INCLUDES) $(ASFLAG)
18 AFLAGS= $(ASFLAGS)
19
20 GENERAL=Makefile
21
22 LIB=$(TOP)/libcrypto.a
23 LIBSRC=rmd_dgst.c rmd_one.c
24 LIBOBJ=rmd_dgst.o rmd_one.o $(RMD160_ASM_OBJ)
25
26 SRC= $(LIBSRC)
27
28 HEADER= rmd_locl.h rmdconst.h
29
30 ALL=    $(GENERAL) $(SRC) $(HEADER)
31
32 top:
33         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
34
35 all:    lib
36
37 lib:    $(LIBOBJ)
38         $(AR) $(LIB) $(LIBOBJ)
39         $(RANLIB) $(LIB) || echo Never mind.
40         @touch lib
41
42 rmd-586.s:      asm/rmd-586.pl ../perlasm/x86asm.pl
43         $(PERL) asm/rmd-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
44
45 files:
46         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
47
48 tags:
49         ctags $(SRC)
50
51 tests:
52
53 lint:
54         lint -DLINT $(INCLUDES) $(SRC)>fluff
55
56 depend:
57         @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
58         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
59
60 dclean:
61         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
62         mv -f Makefile.new $(MAKEFILE)
63
64 clean:
65         rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
66
67 # DO NOT DELETE THIS LINE -- make depend depends on it.
68
69 rmd_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
70 rmd_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ripemd.h
71 rmd_dgst.o: ../md32_common.h rmd_dgst.c rmd_locl.h rmdconst.h
72 rmd_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
73 rmd_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
74 rmd_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/ripemd.h
75 rmd_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
76 rmd_one.o: ../../include/openssl/symhacks.h rmd_one.c