]>
Commit | Line | Data |
---|---|---|
dfeab068 RE |
1 | # |
2 | # SSLeay/crypto/comp/Makefile | |
3 | # | |
4 | ||
5 | DIR= comp | |
6 | TOP= ../.. | |
7 | CC= cc | |
41d2a336 | 8 | INCLUDES= -I.. -I$(TOP) -I../../include |
dfeab068 | 9 | CFLAG=-g |
e5f3045f BM |
10 | INSTALL_PREFIX= |
11 | OPENSSLDIR= /usr/local/ssl | |
dfeab068 RE |
12 | INSTALLTOP=/usr/local/ssl |
13 | MAKE= make -f Makefile.ssl | |
cf1b7d96 RL |
14 | MAKEDEPPROG= makedepend |
15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | |
dfeab068 RE |
16 | MAKEFILE= Makefile.ssl |
17 | AR= ar r | |
18 | ||
19 | CFLAGS= $(INCLUDES) $(CFLAG) | |
20 | ||
dfeab068 RE |
21 | GENERAL=Makefile |
22 | TEST= | |
23 | APPS= | |
24 | ||
25 | LIB=$(TOP)/libcrypto.a | |
d6a89fcf | 26 | LIBSRC= comp_lib.c comp_err.c \ |
dfeab068 RE |
27 | c_rle.c c_zlib.c |
28 | ||
d6a89fcf | 29 | LIBOBJ= comp_lib.o comp_err.o \ |
dfeab068 RE |
30 | c_rle.o c_zlib.o |
31 | ||
32 | SRC= $(LIBSRC) | |
33 | ||
34 | EXHEADER= comp.h | |
35 | HEADER= $(EXHEADER) | |
36 | ||
37 | ALL= $(GENERAL) $(SRC) $(HEADER) | |
38 | ||
39 | top: | |
40 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | |
41 | ||
42 | all: lib | |
43 | ||
44 | lib: $(LIBOBJ) | |
45 | $(AR) $(LIB) $(LIBOBJ) | |
4e20b1a6 | 46 | $(RANLIB) $(LIB) || echo Never mind. |
dfeab068 RE |
47 | @touch lib |
48 | ||
49 | files: | |
99aab161 | 50 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
dfeab068 RE |
51 | |
52 | links: | |
79b42e76 | 53 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile |
1314c344 BM |
54 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
55 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | |
56 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | |
dfeab068 RE |
57 | |
58 | install: | |
a2ac429d | 59 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ |
dfeab068 | 60 | do \ |
e5f3045f BM |
61 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
62 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | |
dfeab068 RE |
63 | done; |
64 | ||
65 | tags: | |
66 | ctags $(SRC) | |
67 | ||
68 | tests: | |
69 | ||
70 | lint: | |
71 | lint -DLINT $(INCLUDES) $(SRC)>fluff | |
72 | ||
73 | depend: | |
001ab3ab | 74 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC) |
dfeab068 RE |
75 | |
76 | dclean: | |
99aab161 | 77 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
dfeab068 RE |
78 | mv -f Makefile.new $(MAKEFILE) |
79 | ||
80 | clean: | |
bb8f3c58 | 81 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
dfeab068 | 82 | |
dfeab068 | 83 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
6242bb9c | 84 | |
d88a26c4 | 85 | c_rle.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
9c52d2cc GT |
86 | c_rle.o: ../../include/openssl/comp.h ../../include/openssl/crypto.h |
87 | c_rle.o: ../../include/openssl/e_os2.h ../../include/openssl/obj_mac.h | |
88 | c_rle.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | |
89 | c_rle.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | |
90 | c_rle.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | |
91 | c_rle.o: ../../include/openssl/symhacks.h c_rle.c | |
d88a26c4 | 92 | c_zlib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
9c52d2cc | 93 | c_zlib.o: ../../include/openssl/comp.h ../../include/openssl/crypto.h |
a7201e9a RL |
94 | c_zlib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
95 | c_zlib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | |
9c52d2cc GT |
96 | c_zlib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h |
97 | c_zlib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | |
98 | c_zlib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | |
99 | c_zlib.o: ../../include/openssl/symhacks.h c_zlib.c | |
138d8ab0 RL |
100 | comp_err.o: ../../include/openssl/bio.h ../../include/openssl/comp.h |
101 | comp_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | |
102 | comp_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | |
103 | comp_err.o: ../../include/openssl/opensslconf.h | |
c57bc2dc GT |
104 | comp_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
105 | comp_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | |
106 | comp_err.o: ../../include/openssl/symhacks.h comp_err.c | |
d88a26c4 | 107 | comp_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
9c52d2cc GT |
108 | comp_lib.o: ../../include/openssl/comp.h ../../include/openssl/crypto.h |
109 | comp_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/obj_mac.h | |
110 | comp_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | |
f8000b93 RL |
111 | comp_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
112 | comp_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | |
113 | comp_lib.o: ../../include/openssl/symhacks.h comp_lib.c |