1998-12-21 10:52:47 +00:00
|
|
|
#
|
2006-02-04 01:45:59 +00:00
|
|
|
# OpenSSL/crypto/conf/Makefile
|
1998-12-21 10:52:47 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DIR= conf
|
|
|
|
TOP= ../..
|
|
|
|
CC= cc
|
2001-02-22 14:45:02 +00:00
|
|
|
INCLUDES= -I.. -I$(TOP) -I../../include
|
1998-12-21 10:52:47 +00:00
|
|
|
CFLAG=-g
|
2005-03-30 13:05:57 +00:00
|
|
|
MAKEFILE= Makefile
|
1998-12-21 10:52:47 +00:00
|
|
|
AR= ar r
|
|
|
|
|
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
|
|
|
|
|
|
|
GENERAL=Makefile
|
|
|
|
TEST=
|
|
|
|
APPS=
|
|
|
|
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
2002-02-23 01:00:44 +00:00
|
|
|
LIBSRC= conf_err.c conf_lib.c conf_api.c conf_def.c conf_mod.c \
|
|
|
|
conf_mall.c conf_sap.c
|
1998-12-21 10:52:47 +00:00
|
|
|
|
2002-02-23 01:00:44 +00:00
|
|
|
LIBOBJ= conf_err.o conf_lib.o conf_api.o conf_def.o conf_mod.o \
|
|
|
|
conf_mall.o conf_sap.o
|
1998-12-21 10:52:47 +00:00
|
|
|
|
|
|
|
SRC= $(LIBSRC)
|
|
|
|
|
I've always wanted to make the CONF library more adaptable. Here's
the result.
I have retained the old behavior of the CONF_* functions, and have
added a more "object oriented" interface through NCONF_* functions
(New CONF, you see :-)), working the same way as, for example, the
BIO interface. Really, the CONF_* are rewritten so they use the
NCONF_* functions internally.
In addition to that, I've split the old conf.c code into two files,
conf_def.c and conf_api.c. conf_def.c contains the default config
object that reads a configuration file the standard OpenSSL way, as
well as configuration file with Win32 registry file syntax (I'm not
sure I got that one right). conf_api.c provides an API to build other
configuration file readers around (can you see a configuraion file in
XML? I can :-)).
Finally, I've changed the name conf_lcl.h to conf_def.h, since it's
made specifically for that "class" and none others.
2000-04-09 12:04:35 +00:00
|
|
|
EXHEADER= conf.h conf_api.h
|
|
|
|
HEADER= conf_def.h $(EXHEADER)
|
1998-12-21 10:52:47 +00:00
|
|
|
|
|
|
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
|
|
|
|
|
|
|
top:
|
|
|
|
(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
|
|
|
|
|
|
|
|
all: lib
|
|
|
|
|
|
|
|
lib: $(LIBOBJ)
|
|
|
|
$(AR) $(LIB) $(LIBOBJ)
|
2001-03-09 14:01:42 +00:00
|
|
|
$(RANLIB) $(LIB) || echo Never mind.
|
1998-12-21 10:52:47 +00:00
|
|
|
@touch lib
|
|
|
|
|
|
|
|
files:
|
2005-03-30 13:05:57 +00:00
|
|
|
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
|
1998-12-21 10:52:47 +00:00
|
|
|
|
|
|
|
links:
|
1999-04-29 12:46:59 +00:00
|
|
|
@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
|
|
|
|
@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
|
|
|
|
@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
|
1998-12-21 10:52:47 +00:00
|
|
|
|
|
|
|
install:
|
2005-05-15 22:23:26 +00:00
|
|
|
@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
|
2004-11-02 23:55:01 +00:00
|
|
|
@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
|
1998-12-21 10:52:47 +00:00
|
|
|
do \
|
1999-04-29 21:52:08 +00:00
|
|
|
(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
|
|
|
|
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
|
1998-12-21 10:52:47 +00:00
|
|
|
done;
|
|
|
|
|
|
|
|
tags:
|
|
|
|
ctags $(SRC)
|
|
|
|
|
|
|
|
tests:
|
|
|
|
|
|
|
|
lint:
|
|
|
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
|
|
|
|
|
|
|
depend:
|
2005-05-16 16:55:47 +00:00
|
|
|
@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
|
2002-10-09 13:25:12 +00:00
|
|
|
$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC)
|
1998-12-21 10:52:47 +00:00
|
|
|
|
|
|
|
dclean:
|
1999-04-01 12:34:33 +00:00
|
|
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
1998-12-21 10:52:47 +00:00
|
|
|
mv -f Makefile.new $(MAKEFILE)
|
|
|
|
|
|
|
|
clean:
|
1999-03-06 12:32:06 +00:00
|
|
|
rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
1998-12-21 10:52:47 +00:00
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
1999-03-06 14:32:48 +00:00
|
|
|
|
2001-02-22 14:45:02 +00:00
|
|
|
conf_api.o: ../../e_os.h ../../include/openssl/bio.h
|
|
|
|
conf_api.o: ../../include/openssl/conf.h ../../include/openssl/conf_api.h
|
|
|
|
conf_api.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
|
I've always wanted to make the CONF library more adaptable. Here's
the result.
I have retained the old behavior of the CONF_* functions, and have
added a more "object oriented" interface through NCONF_* functions
(New CONF, you see :-)), working the same way as, for example, the
BIO interface. Really, the CONF_* are rewritten so they use the
NCONF_* functions internally.
In addition to that, I've split the old conf.c code into two files,
conf_def.c and conf_api.c. conf_def.c contains the default config
object that reads a configuration file the standard OpenSSL way, as
well as configuration file with Win32 registry file syntax (I'm not
sure I got that one right). conf_api.c provides an API to build other
configuration file readers around (can you see a configuraion file in
XML? I can :-)).
Finally, I've changed the name conf_lcl.h to conf_def.h, since it's
made specifically for that "class" and none others.
2000-04-09 12:04:35 +00:00
|
|
|
conf_api.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
2002-11-13 15:43:43 +00:00
|
|
|
conf_api.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
|
|
|
conf_api.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
|
|
|
conf_api.o: ../../include/openssl/symhacks.h conf_api.c
|
2002-07-30 13:04:04 +00:00
|
|
|
conf_def.o: ../../e_os.h ../../include/openssl/bio.h
|
|
|
|
conf_def.o: ../../include/openssl/buffer.h ../../include/openssl/conf.h
|
|
|
|
conf_def.o: ../../include/openssl/conf_api.h ../../include/openssl/crypto.h
|
|
|
|
conf_def.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
|
|
|
conf_def.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
2002-11-13 15:43:43 +00:00
|
|
|
conf_def.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
|
|
|
conf_def.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
|
|
|
conf_def.o: ../../include/openssl/symhacks.h ../cryptlib.h conf_def.c
|
|
|
|
conf_def.o: conf_def.h
|
2001-02-23 11:57:35 +00:00
|
|
|
conf_err.o: ../../include/openssl/bio.h ../../include/openssl/conf.h
|
|
|
|
conf_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
|
|
|
|
conf_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
|
|
|
conf_err.o: ../../include/openssl/opensslconf.h
|
2002-11-13 15:43:43 +00:00
|
|
|
conf_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
|
|
|
conf_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
|
|
|
conf_err.o: ../../include/openssl/symhacks.h conf_err.c
|
2001-02-23 11:57:35 +00:00
|
|
|
conf_lib.o: ../../include/openssl/bio.h ../../include/openssl/conf.h
|
|
|
|
conf_lib.o: ../../include/openssl/conf_api.h ../../include/openssl/crypto.h
|
|
|
|
conf_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
|
|
|
conf_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
2002-11-13 15:43:43 +00:00
|
|
|
conf_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
|
|
|
conf_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
|
|
|
conf_lib.o: ../../include/openssl/symhacks.h conf_lib.c
|
2002-12-29 01:38:15 +00:00
|
|
|
conf_mall.o: ../../e_os.h ../../include/openssl/asn1.h
|
2004-05-17 19:26:06 +00:00
|
|
|
conf_mall.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
|
|
|
conf_mall.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
|
|
|
|
conf_mall.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
|
|
|
|
conf_mall.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
|
|
|
|
conf_mall.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
|
|
|
|
conf_mall.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
|
|
|
conf_mall.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
|
|
|
|
conf_mall.o: ../../include/openssl/objects.h
|
2002-01-18 10:59:43 +00:00
|
|
|
conf_mall.o: ../../include/openssl/opensslconf.h
|
|
|
|
conf_mall.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
2004-04-19 18:33:41 +00:00
|
|
|
conf_mall.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
|
2002-01-24 12:31:54 +00:00
|
|
|
conf_mall.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
2004-04-19 18:33:41 +00:00
|
|
|
conf_mall.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
2003-05-01 04:10:32 +00:00
|
|
|
conf_mall.o: ../../include/openssl/x509_vfy.h ../cryptlib.h conf_mall.c
|
2002-12-29 01:38:15 +00:00
|
|
|
conf_mod.o: ../../e_os.h ../../include/openssl/asn1.h
|
2004-05-17 19:26:06 +00:00
|
|
|
conf_mod.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
|
|
|
conf_mod.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
|
|
|
|
conf_mod.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
|
|
|
|
conf_mod.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
|
|
|
|
conf_mod.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h
|
|
|
|
conf_mod.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
|
|
|
|
conf_mod.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
|
|
|
|
conf_mod.o: ../../include/openssl/opensslconf.h
|
2002-01-18 10:59:43 +00:00
|
|
|
conf_mod.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
2004-04-19 18:33:41 +00:00
|
|
|
conf_mod.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
|
|
|
|
conf_mod.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
|
|
|
conf_mod.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
|
|
|
conf_mod.o: ../../include/openssl/x509_vfy.h ../cryptlib.h conf_mod.c
|
2002-12-29 01:38:15 +00:00
|
|
|
conf_sap.o: ../../e_os.h ../../include/openssl/asn1.h
|
2004-05-17 19:26:06 +00:00
|
|
|
conf_sap.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
|
|
|
conf_sap.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
|
|
|
|
conf_sap.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
|
|
|
|
conf_sap.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
|
|
|
|
conf_sap.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
|
|
|
|
conf_sap.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
|
|
|
conf_sap.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
|
|
|
|
conf_sap.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
|
2002-02-26 14:41:29 +00:00
|
|
|
conf_sap.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
2004-04-19 18:33:41 +00:00
|
|
|
conf_sap.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
|
2002-02-26 14:41:29 +00:00
|
|
|
conf_sap.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
2004-04-19 18:33:41 +00:00
|
|
|
conf_sap.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
2003-05-01 04:10:32 +00:00
|
|
|
conf_sap.o: ../../include/openssl/x509_vfy.h ../cryptlib.h conf_sap.c
|