4427a82748fba0f640b046d38d52659dacaa5468
[openssl.git] / crypto / comp / Makefile
1 #
2 # OpenSSL/crypto/comp/Makefile
3 #
4
5 DIR=    comp
6 TOP=    ../..
7 CC=     cc
8 INCLUDES= -I.. -I$(TOP) -I../../include
9 CFLAG=-g
10 MAKEFILE=       Makefile
11 AR=             ar r
12
13 CFLAGS= $(INCLUDES) $(CFLAG)
14
15 GENERAL=Makefile
16
17 LIB=$(TOP)/libcrypto.a
18 LIBSRC= comp_lib.c comp_err.c \
19         c_zlib.c
20
21 LIBOBJ= comp_lib.o comp_err.o \
22         c_zlib.o
23
24 SRC= $(LIBSRC)
25
26 HEADER= 
27
28 ALL=    $(GENERAL) $(SRC) $(HEADER)
29
30 top:
31         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
32
33 all:    lib
34
35 lib:    $(LIBOBJ)
36         $(AR) $(LIB) $(LIBOBJ)
37         $(RANLIB) $(LIB) || echo Never mind.
38         @touch lib
39
40 files:
41         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
42
43 tags:
44         ctags $(SRC)
45
46 tests:
47
48 lint:
49         lint -DLINT $(INCLUDES) $(SRC)>fluff
50
51 update: depend
52
53 depend:
54         @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
55         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC)
56
57 dclean:
58         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
59         mv -f Makefile.new $(MAKEFILE)
60
61 clean:
62         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
63
64 # DO NOT DELETE THIS LINE -- make depend depends on it.
65
66 c_zlib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
67 c_zlib.o: ../../include/openssl/bn.h ../../include/openssl/comp.h
68 c_zlib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
69 c_zlib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
70 c_zlib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
71 c_zlib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
72 c_zlib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
73 c_zlib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
74 c_zlib.o: c_zlib.c comp_lcl.h
75 comp_err.o: ../../include/openssl/bio.h ../../include/openssl/comp.h
76 comp_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
77 comp_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
78 comp_err.o: ../../include/openssl/opensslconf.h
79 comp_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
80 comp_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
81 comp_err.o: ../../include/openssl/symhacks.h comp_err.c
82 comp_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
83 comp_lib.o: ../../include/openssl/bn.h ../../include/openssl/comp.h
84 comp_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
85 comp_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
86 comp_lib.o: ../../include/openssl/opensslconf.h
87 comp_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
88 comp_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
89 comp_lib.o: ../../include/openssl/symhacks.h comp_lcl.h comp_lib.c