bbd86bf542
Only two macros CRYPTO_MDEBUG and CRYPTO_MDEBUG_ABORT to control this. If CRYPTO_MDEBUG is not set, #ifdef out the whole debug machinery. (Thanks to Jakob Bohm for the suggestion!) Make the "change wrapper functions" be the only paradigm. Wrote documentation! Format the 'set func' functions so their paramlists are legible. Format some multi-line comments. Remove ability to get/set the "memory debug" functions at runtme. Remove MemCheck_* and CRYPTO_malloc_debug_init macros. Add CRYPTO_mem_debug(int flag) function. Add test/memleaktest. Rename CRYPTO_malloc_init to OPENSSL_malloc_init; remove needless calls. Reviewed-by: Richard Levitte <levitte@openssl.org>
95 lines
3.1 KiB
Makefile
95 lines
3.1 KiB
Makefile
#
|
|
# OpenSSL/crypto/ct/Makefile
|
|
#
|
|
|
|
DIR= ct
|
|
TOP= ../..
|
|
CC= cc
|
|
INCLUDES= -I.. -I$(TOP) -I../../include
|
|
CFLAG=-g
|
|
MAKEFILE= Makefile
|
|
AR= ar r
|
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
|
|
|
GENERAL=Makefile
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
|
LIBSRC= ct_lib.c ct_err.c
|
|
LIBOBJ= ct_lib.o ct_err.o
|
|
|
|
SRC= $(LIBSRC)
|
|
|
|
HEADER=
|
|
|
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
|
|
|
top:
|
|
(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
|
|
|
|
test:
|
|
|
|
all: lib
|
|
|
|
lib: $(LIBOBJ)
|
|
$(AR) $(LIB) $(LIBOBJ)
|
|
$(RANLIB) $(LIB) || echo Never mind.
|
|
@touch lib
|
|
|
|
files:
|
|
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
|
|
|
|
tags:
|
|
ctags $(SRC)
|
|
|
|
errors:
|
|
$(PERL) $(TOP)/util/mkerr.pl -conf ct.ec -hprefix internal/ -write *.c
|
|
|
|
lint:
|
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
|
|
|
update: depend
|
|
|
|
depend:
|
|
@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
|
|
$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(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
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
|
|
|
ct_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
|
|
ct_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
|
ct_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
|
ct_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
|
ct_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
|
ct_err.o: ../../include/openssl/symhacks.h ../include/internal/ct_int.h
|
|
ct_err.o: ct_err.c
|
|
ct_lib.o: ../../e_os.h ../../include/internal/dane.h
|
|
ct_lib.o: ../../include/internal/numbers.h ../../include/openssl/asn1.h
|
|
ct_lib.o: ../../include/openssl/async.h ../../include/openssl/bio.h
|
|
ct_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
|
ct_lib.o: ../../include/openssl/comp.h ../../include/openssl/crypto.h
|
|
ct_lib.o: ../../include/openssl/dsa.h ../../include/openssl/dtls1.h
|
|
ct_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
|
|
ct_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
|
ct_lib.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
|
|
ct_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
|
ct_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
|
ct_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h
|
|
ct_lib.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h
|
|
ct_lib.o: ../../include/openssl/pqueue.h ../../include/openssl/rsa.h
|
|
ct_lib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
|
ct_lib.o: ../../include/openssl/srtp.h ../../include/openssl/ssl.h
|
|
ct_lib.o: ../../include/openssl/ssl2.h ../../include/openssl/ssl3.h
|
|
ct_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
|
ct_lib.o: ../../include/openssl/tls1.h ../../include/openssl/x509.h
|
|
ct_lib.o: ../../include/openssl/x509_vfy.h ../../ssl/packet_locl.h
|
|
ct_lib.o: ../../ssl/record/record.h ../../ssl/ssl_locl.h
|
|
ct_lib.o: ../../ssl/statem/statem.h ../include/internal/cryptlib.h
|
|
ct_lib.o: ../include/internal/ct_int.h ct_lib.c
|