]>
Commit | Line | Data |
---|---|---|
58964a49 RE |
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 | INSTALLTOP=/usr/local/ssl | |
12 | MAKE= make -f Makefile.ssl | |
8039257d | 13 | MAKEDEPEND= $(TOP)/util/domd $(TOP) |
58964a49 RE |
14 | MAKEFILE= Makefile.ssl |
15 | AR= ar r | |
16 | ||
17 | RIP_ASM_OBJ= | |
18 | ||
19 | CFLAGS= $(INCLUDES) $(CFLAG) | |
20 | ||
21 | GENERAL=Makefile | |
22 | TEST=rmdtest.c | |
23 | APPS=rmd160.c | |
24 | ||
25 | LIB=$(TOP)/libcrypto.a | |
26 | LIBSRC=rmd_dgst.c rmd_one.c | |
27 | LIBOBJ=rmd_dgst.o rmd_one.o $(RMD160_ASM_OBJ) | |
28 | ||
29 | SRC= $(LIBSRC) | |
30 | ||
31 | EXHEADER= ripemd.h | |
32 | HEADER= rmd_locl.h rmdconst.h $(EXHEADER) | |
33 | ||
34 | ALL= $(GENERAL) $(SRC) $(HEADER) | |
35 | ||
36 | top: | |
37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | |
38 | ||
39 | all: lib | |
40 | ||
41 | lib: $(LIBOBJ) | |
42 | $(AR) $(LIB) $(LIBOBJ) | |
43 | sh $(TOP)/util/ranlib.sh $(LIB) | |
44 | @touch lib | |
45 | ||
46 | # elf | |
47 | asm/rm86-elf.o: asm/rm86unix.cpp | |
48 | $(CPP) -DELF asm/rm86unix.cpp | as -o asm/rm86-elf.o | |
49 | ||
50 | # solaris | |
51 | asm/rm86-sol.o: asm/rm86unix.cpp | |
52 | $(CC) -E -DSOL asm/rm86unix.cpp | sed 's/^#.*//' > asm/rm86-sol.s | |
53 | as -o asm/rm86-sol.o asm/rm86-sol.s | |
54 | rm -f asm/rm86-sol.s | |
55 | ||
56 | # a.out | |
57 | asm/rm86-out.o: asm/rm86unix.cpp | |
58 | $(CPP) -DOUT asm/rm86unix.cpp | as -o asm/rm86-out.o | |
59 | ||
60 | # bsdi | |
61 | asm/rm86bsdi.o: asm/rm86unix.cpp | |
dfeab068 | 62 | $(CPP) -DBSDI asm/rm86unix.cpp | sed 's/ :/:/' | as -o asm/rm86bsdi.o |
58964a49 | 63 | |
05dc84b8 | 64 | asm/rm86unix.cpp: asm/rmd-586.pl |
58964a49 RE |
65 | (cd asm; perl rmd-586.pl cpp >rm86unix.cpp) |
66 | ||
67 | files: | |
68 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | |
69 | ||
70 | links: | |
bb8f3c58 RE |
71 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
72 | @$(TOP)/util/mklink.sh ../../include $(EXHEADER) | |
73 | @$(TOP)/util/mklink.sh ../../test $(TEST) | |
74 | @$(TOP)/util/mklink.sh ../../apps $(APPS) | |
58964a49 RE |
75 | |
76 | install: | |
77 | @for i in $(EXHEADER) ; \ | |
78 | do \ | |
79 | (cp $$i $(INSTALLTOP)/include/$$i; \ | |
80 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | |
81 | done; | |
82 | ||
83 | tags: | |
84 | ctags $(SRC) | |
85 | ||
86 | tests: | |
87 | ||
88 | lint: | |
89 | lint -DLINT $(INCLUDES) $(SRC)>fluff | |
90 | ||
91 | depend: | |
92 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | |
93 | ||
94 | dclean: | |
95 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | |
96 | mv -f Makefile.new $(MAKEFILE) | |
97 | ||
98 | clean: | |
bb8f3c58 | 99 | rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
58964a49 RE |
100 | |
101 | errors: | |
102 | ||
103 | # DO NOT DELETE THIS LINE -- make depend depends on it. | |
6242bb9c | 104 | |
b4cadc6e | 105 | rmd_dgst.o: ../opensslv.h ripemd.h rmd_locl.h rmdconst.h |
6242bb9c | 106 | rmd_one.o: ripemd.h rmd_locl.h rmdconst.h |