mirror of
https://github.com/openssl/openssl.git
synced 2024-12-01 22:14:36 +08:00
105 lines
2.1 KiB
Makefile
105 lines
2.1 KiB
Makefile
#
|
|
# SSLeay/crypto/comp/Makefile
|
|
#
|
|
|
|
DIR= comp
|
|
TOP= ../..
|
|
CC= cc
|
|
INCLUDES= -I.. -I../../include
|
|
CFLAG=-g
|
|
INSTALLTOP=/usr/local/ssl
|
|
MAKE= make -f Makefile.ssl
|
|
MAKEDEPEND= $(TOP)/util/domd $(TOP)
|
|
MAKEFILE= Makefile.ssl
|
|
AR= ar r
|
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
|
|
|
ERR=comp
|
|
ERRC=comp_err
|
|
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)
|
|
sh $(TOP)/util/ranlib.sh $(LIB)
|
|
@touch lib
|
|
|
|
files:
|
|
perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
|
|
|
|
links:
|
|
@$(TOP)/util/point.sh Makefile.ssl Makefile
|
|
@$(TOP)/util/mklink.sh ../../include $(EXHEADER)
|
|
@$(TOP)/util/mklink.sh ../../test $(TEST)
|
|
@$(TOP)/util/mklink.sh ../../apps $(APPS)
|
|
|
|
install:
|
|
@for i in $(EXHEADER) ; \
|
|
do \
|
|
(cp $$i $(INSTALLTOP)/include/$$i; \
|
|
chmod 644 $(INSTALLTOP)/include/$$i ); \
|
|
done;
|
|
|
|
tags:
|
|
ctags $(SRC)
|
|
|
|
tests:
|
|
|
|
lint:
|
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
|
|
|
depend:
|
|
$(MAKEDEPEND) $(INCLUDES) $(LIBSRC)
|
|
|
|
dclean:
|
|
perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
|
mv -f Makefile.new $(MAKEFILE)
|
|
|
|
clean:
|
|
rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
|
|
|
# This is a dummy to create comp.err: remove if we add any real errors to this
|
|
# stuff.
|
|
|
|
comp.err:
|
|
touch comp.err
|
|
|
|
errors: $(ERRC).c
|
|
|
|
$(ERRC).c: $(ERR).err
|
|
perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h
|
|
perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
|
|
|
c_rle.o: ../../include/asn1.h ../../include/bio.h ../../include/bn.h
|
|
c_rle.o: ../../include/crypto.h ../../include/objects.h ../../include/stack.h
|
|
c_rle.o: comp.h
|
|
c_zlib.o: ../../include/asn1.h ../../include/bio.h ../../include/bn.h
|
|
c_zlib.o: ../../include/crypto.h ../../include/objects.h ../../include/stack.h
|
|
c_zlib.o: comp.h
|
|
comp_lib.o: ../../include/asn1.h ../../include/bio.h ../../include/bn.h
|
|
comp_lib.o: ../../include/crypto.h ../../include/objects.h
|
|
comp_lib.o: ../../include/stack.h comp.h
|