Makefile.ssl 3.6 KB
Newer Older
1 2 3 4 5 6 7
#
# SSLeay/crypto/comp/Makefile
#

DIR=	comp
TOP=	../..
CC=	cc
8
INCLUDES= -I.. -I$(TOP) -I../../include
9
CFLAG=-g
10 11
INSTALL_PREFIX=
OPENSSLDIR=     /usr/local/ssl
12 13
INSTALLTOP=/usr/local/ssl
MAKE=		make -f Makefile.ssl
14 15
MAKEDEPPROG=	makedepend
MAKEDEPEND=	$(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
16 17 18 19 20 21 22 23 24 25
MAKEFILE=	Makefile.ssl
AR=		ar r

CFLAGS= $(INCLUDES) $(CFLAG)

GENERAL=Makefile
TEST=
APPS=

LIB=$(TOP)/libcrypto.a
26
LIBSRC= comp_lib.c comp_err.c \
27 28
	c_rle.c c_zlib.c

29
LIBOBJ=	comp_lib.o comp_err.o \
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
	c_rle.o c_zlib.o

SRC= $(LIBSRC)

EXHEADER= comp.h
HEADER=	$(EXHEADER)

ALL=    $(GENERAL) $(SRC) $(HEADER)

top:
	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)

all:	lib

lib:	$(LIBOBJ)
	$(AR) $(LIB) $(LIBOBJ)
46
	$(RANLIB) $(LIB) || echo Never mind.
47 48 49
	@touch lib

files:
50
	$(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
51 52

links:
53
	@$(TOP)/util/point.sh Makefile.ssl Makefile
54 55 56
	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
57 58 59 60

install:
	@for i in $(EXHEADER) ; \
	do  \
61 62
	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
63 64 65 66 67 68 69 70 71 72 73
	done;

tags:
	ctags $(SRC)

tests:

lint:
	lint -DLINT $(INCLUDES) $(SRC)>fluff

depend:
74
	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC)
75 76

dclean:
77
	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
78 79 80
	mv -f Makefile.new $(MAKEFILE)

clean:
81
	rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
82 83

# DO NOT DELETE THIS LINE -- make depend depends on it.
B
Ben Laurie 已提交
84

R
Richard Levitte 已提交
85
c_rle.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
B
Bodo Möller 已提交
86
c_rle.o: ../../include/openssl/bn.h ../../include/openssl/comp.h
87 88 89
c_rle.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
c_rle.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
c_rle.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
R
Richard Levitte 已提交
90 91
c_rle.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
c_rle.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h c_rle.c
R
Richard Levitte 已提交
92
c_zlib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
B
Bodo Möller 已提交
93
c_zlib.o: ../../include/openssl/bn.h ../../include/openssl/comp.h
G
Geoff Thorpe 已提交
94 95 96 97 98 99
c_zlib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
c_zlib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
c_zlib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
c_zlib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
c_zlib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
c_zlib.o: c_zlib.c
R
Richard Levitte 已提交
100 101 102 103 104 105 106
comp_err.o: ../../include/openssl/bio.h ../../include/openssl/comp.h
comp_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
comp_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
comp_err.o: ../../include/openssl/opensslconf.h
comp_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
comp_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
comp_err.o: comp_err.c
R
Richard Levitte 已提交
107 108 109 110 111
comp_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
comp_lib.o: ../../include/openssl/bn.h ../../include/openssl/comp.h
comp_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
comp_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
comp_lib.o: ../../include/openssl/opensslconf.h
R
Richard Levitte 已提交
112 113 114
comp_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
comp_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
comp_lib.o: ../../include/openssl/symhacks.h comp_lib.c