]>
Commit | Line | Data |
---|---|---|
d02b48c6 RE |
1 | # |
2 | # SSLeay/crypto/mdc2/Makefile | |
3 | # | |
4 | ||
5 | DIR= mdc2 | |
6 | TOP= ../.. | |
7 | CC= cc | |
8 | INCLUDES= | |
9 | CFLAG=-g | |
10 | INSTALLTOP=/usr/local/ssl | |
11 | MAKE= make -f Makefile.ssl | |
8039257d | 12 | MAKEDEPEND= $(TOP)/util/domd $(TOP) |
d02b48c6 RE |
13 | MAKEFILE= Makefile.ssl |
14 | AR= ar r | |
15 | ||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | |
17 | ||
18 | GENERAL=Makefile | |
19 | TEST= mdc2test.c | |
20 | APPS= | |
21 | ||
22 | LIB=$(TOP)/libcrypto.a | |
23 | LIBSRC=mdc2dgst.c mdc2_one.c | |
24 | LIBOBJ=mdc2dgst.o mdc2_one.o | |
25 | ||
26 | SRC= $(LIBSRC) | |
27 | ||
28 | EXHEADER= mdc2.h | |
29 | HEADER= $(EXHEADER) | |
30 | ||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | |
32 | ||
33 | top: | |
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | |
35 | ||
36 | all: lib | |
37 | ||
38 | lib: $(LIBOBJ) | |
39 | $(AR) $(LIB) $(LIBOBJ) | |
40 | sh $(TOP)/util/ranlib.sh $(LIB) | |
41 | @touch lib | |
42 | ||
43 | files: | |
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | |
45 | ||
46 | links: | |
bb8f3c58 RE |
47 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
48 | @$(TOP)/util/mklink.sh ../../include $(EXHEADER) | |
49 | @$(TOP)/util/mklink.sh ../../test $(TEST) | |
50 | @$(TOP)/util/mklink.sh ../../apps $(APPS) | |
d02b48c6 RE |
51 | |
52 | install: | |
53 | @for i in $(EXHEADER) ; \ | |
54 | do \ | |
55 | (cp $$i $(INSTALLTOP)/include/$$i; \ | |
56 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | |
57 | done; | |
58 | ||
59 | tags: | |
60 | ctags $(SRC) | |
61 | ||
62 | tests: | |
63 | ||
64 | lint: | |
65 | lint -DLINT $(INCLUDES) $(SRC)>fluff | |
66 | ||
67 | depend: | |
68 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | |
69 | ||
70 | dclean: | |
71 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | |
72 | mv -f Makefile.new $(MAKEFILE) | |
73 | ||
74 | clean: | |
bb8f3c58 | 75 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
d02b48c6 RE |
76 | |
77 | errors: | |
78 | ||
79 | # DO NOT DELETE THIS LINE -- make depend depends on it. | |
6242bb9c BL |
80 | |
81 | mdc2_one.o: ../../include/bio.h ../../include/buffer.h ../../include/des.h | |
82 | mdc2_one.o: ../../include/e_os.h ../../include/err.h ../../include/stack.h | |
b4cadc6e | 83 | mdc2_one.o: ../cryptlib.h ../crypto.h ../opensslv.h mdc2.h |
6242bb9c | 84 | mdc2dgst.o: ../../include/des.h mdc2.h |