"make update"
[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 MAKEDEPEND=     $(TOP)/util/domd $(TOP)
16 MAKEFILE=       Makefile.ssl
17 AR=             ar r
18
19 RIP_ASM_OBJ=
20
21 CFLAGS= $(INCLUDES) $(CFLAG)
22
23 GENERAL=Makefile
24 TEST=rmdtest.c
25 APPS=rmd160.c
26
27 LIB=$(TOP)/libcrypto.a
28 LIBSRC=rmd_dgst.c rmd_one.c
29 LIBOBJ=rmd_dgst.o rmd_one.o $(RMD160_ASM_OBJ)
30
31 SRC= $(LIBSRC)
32
33 EXHEADER= ripemd.h
34 HEADER= rmd_locl.h rmdconst.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         $(AR) $(LIB) $(LIBOBJ)
45         $(RANLIB) $(LIB)
46         @touch lib
47
48 # elf
49 asm/rm86-elf.o: asm/rm86unix.cpp
50         $(CPP) -DELF asm/rm86unix.cpp | as -o asm/rm86-elf.o
51
52 # solaris
53 asm/rm86-sol.o: asm/rm86unix.cpp
54         $(CC) -E -DSOL asm/rm86unix.cpp | sed 's/^#.*//' > asm/rm86-sol.s
55         as -o asm/rm86-sol.o asm/rm86-sol.s
56         rm -f asm/rm86-sol.s
57
58 # a.out
59 asm/rm86-out.o: asm/rm86unix.cpp
60         $(CPP) -DOUT asm/rm86unix.cpp | as -o asm/rm86-out.o
61
62 # bsdi
63 asm/rm86bsdi.o: asm/rm86unix.cpp
64         $(CPP) -DBSDI asm/rm86unix.cpp | sed 's/ :/:/' | as -o asm/rm86bsdi.o
65
66 asm/rm86unix.cpp: asm/rmd-586.pl
67         (cd asm; $(PERL) rmd-586.pl cpp >rm86unix.cpp)
68
69 files:
70         $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
71
72 links:
73         @$(TOP)/util/point.sh Makefile.ssl Makefile
74         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
75         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
76         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
77
78 install:
79         @for i in $(EXHEADER) ; \
80         do  \
81         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
82         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
83         done;
84
85 tags:
86         ctags $(SRC)
87
88 tests:
89
90 lint:
91         lint -DLINT $(INCLUDES) $(SRC)>fluff
92
93 depend:
94         $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
95
96 dclean:
97         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
98         mv -f Makefile.new $(MAKEFILE)
99
100 clean:
101         rm -f asm/rm86unix.cpp *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
102
103 # DO NOT DELETE THIS LINE -- make depend depends on it.
104
105 rmd_dgst.o: ../../include/openssl/opensslconf.h
106 rmd_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ripemd.h
107 rmd_dgst.o: ../md32_common.h rmd_locl.h rmdconst.h
108 rmd_one.o: ../../include/openssl/ripemd.h