Makefile.ssl 3.5 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
	@sh $(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

install:
59
	@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
60
	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
86 87 88 89 90 91
c_rle.o: ../../include/openssl/comp.h ../../include/openssl/crypto.h
c_rle.o: ../../include/openssl/e_os2.h ../../include/openssl/obj_mac.h
c_rle.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
c_rle.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
c_rle.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
c_rle.o: ../../include/openssl/symhacks.h c_rle.c
R
Richard Levitte 已提交
92
c_zlib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
93 94 95 96 97 98
c_zlib.o: ../../include/openssl/comp.h ../../include/openssl/crypto.h
c_zlib.o: ../../include/openssl/e_os2.h ../../include/openssl/obj_mac.h
c_zlib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
c_zlib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
c_zlib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
c_zlib.o: ../../include/openssl/symhacks.h c_zlib.c
R
Richard Levitte 已提交
99 100 101 102
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
G
Geoff Thorpe 已提交
103 104 105
comp_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
comp_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
comp_err.o: ../../include/openssl/symhacks.h comp_err.c
R
Richard Levitte 已提交
106
comp_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
107 108 109
comp_lib.o: ../../include/openssl/comp.h ../../include/openssl/crypto.h
comp_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/obj_mac.h
comp_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
R
Richard Levitte 已提交
110 111 112
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