Makefile.ssl 3.1 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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
MAKEFILE=	Makefile.ssl
AR=		ar r

CFLAGS= $(INCLUDES) $(CFLAG)

GENERAL=Makefile
TEST=
APPS=

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

LIBOBJ=	comp_lib.o \
	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) $(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
94 95 96
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
R
Richard Levitte 已提交
97 98
c_zlib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
c_zlib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
99
c_zlib.o: c_zlib.c
R
Richard Levitte 已提交
100 101 102 103 104
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 已提交
105 106 107
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