OPENSSL_ia32cap final touches. Note that OPENSSL_ia32cap is no longer a
[openssl.git] / crypto / ripemd / Makefile.ssl
1 #
2 # SSLeay/crypto/ripemd/Makefile
3 #
4
5 DIR=    ripemd
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 MAKE=           make -f Makefile.ssl
15 MAKEDEPPROG=    makedepend
16 MAKEDEPEND=     $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
17 MAKEFILE=       Makefile.ssl
18 AR=             ar r
19
20 RIP_ASM_OBJ=
21
22 CFLAGS= $(INCLUDES) $(CFLAG)
23 ASFLAGS= $(INCLUDES) $(ASFLAG)
24
25 GENERAL=Makefile
26 TEST=rmdtest.c
27 APPS=
28
29 LIB=$(TOP)/libcrypto.a
30 LIBSRC=rmd_dgst.c rmd_one.c
31 LIBOBJ=rmd_dgst.o rmd_one.o $(RMD160_ASM_OBJ)
32
33 SRC= $(LIBSRC)
34
35 EXHEADER= ripemd.h
36 HEADER= rmd_locl.h rmdconst.h $(EXHEADER)
37
38 ALL=    $(GENERAL) $(SRC) $(HEADER)
39
40 top:
41         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
42
43 all:    lib
44
45 lib:    $(LIBOBJ)
46         $(AR) $(LIB) $(LIBOBJ)
47         $(RANLIB) $(LIB) || echo Never mind.
48         @touch lib
49
50 # ELF
51 asm/rm86-elf.s: asm/rmd-586.pl ../perlasm/x86asm.pl
52         (cd asm; $(PERL) rmd-586.pl elf $(CFLAGS) > ../$@)
53 # COFF
54 asm/rm86-cof.s: asm/rmd-586.pl ../perlasm/x86asm.pl
55         (cd asm; $(PERL) rmd-586.pl coff $(CFLAGS) > ../$@)
56 # a.out
57 asm/rm86-out.o: asm/rmd-586.pl ../perlasm/x86asm.pl
58         (cd asm; $(PERL) rmd-586.pl a.out $(CFLAGS) | as -o ../$@)
59
60 files:
61         $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
62
63 links:
64         @sh $(TOP)/util/point.sh Makefile.ssl Makefile
65         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
66         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
67         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
68
69 install:
70         @for i in $(EXHEADER) ; \
71         do  \
72         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
73         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
74         done;
75
76 tags:
77         ctags $(SRC)
78
79 tests:
80
81 lint:
82         lint -DLINT $(INCLUDES) $(SRC)>fluff
83
84 depend:
85         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
86
87 dclean:
88         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
89         mv -f Makefile.new $(MAKEFILE)
90
91 clean:
92         rm -f asm/rm86unix.cpp asm/*.s *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
93
94 # DO NOT DELETE THIS LINE -- make depend depends on it.
95
96 rmd_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
97 rmd_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ripemd.h
98 rmd_dgst.o: ../md32_common.h rmd_dgst.c rmd_locl.h rmdconst.h
99 rmd_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
100 rmd_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
101 rmd_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/ripemd.h
102 rmd_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
103 rmd_one.o: ../../include/openssl/symhacks.h rmd_one.c