1998-12-21 18:52:47 +08:00
|
|
|
#
|
2006-02-04 09:45:59 +08:00
|
|
|
# OpenSSL/crypto/conf/Makefile
|
1998-12-21 18:52:47 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
DIR= conf
|
|
|
|
TOP= ../..
|
|
|
|
CC= cc
|
2001-02-22 22:45:02 +08:00
|
|
|
INCLUDES= -I.. -I$(TOP) -I../../include
|
1998-12-21 18:52:47 +08:00
|
|
|
CFLAG=-g
|
2005-03-30 21:05:57 +08:00
|
|
|
MAKEFILE= Makefile
|
1998-12-21 18:52:47 +08:00
|
|
|
AR= ar r
|
|
|
|
|
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
|
|
|
|
|
|
|
GENERAL=Makefile
|
|
|
|
TEST=
|
|
|
|
APPS=
|
|
|
|
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
2002-02-23 09:00:44 +08: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 18:52:47 +08:00
|
|
|
|
2002-02-23 09:00:44 +08: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 18:52:47 +08: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 20:04:35 +08:00
|
|
|
EXHEADER= conf.h conf_api.h
|
|
|
|
HEADER= conf_def.h $(EXHEADER)
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
|
|
|
|
|
|
|
top:
|
|
|
|
(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
|
|
|
|
|
|
|
|
all: lib
|
|
|
|
|
|
|
|
lib: $(LIBOBJ)
|
|
|
|
$(AR) $(LIB) $(LIBOBJ)
|
2001-03-09 22:01:42 +08:00
|
|
|
$(RANLIB) $(LIB) || echo Never mind.
|
1998-12-21 18:52:47 +08:00
|
|
|
@touch lib
|
|
|
|
|
|
|
|
files:
|
2005-03-30 21:05:57 +08:00
|
|
|
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
links:
|
1999-04-29 20:46:59 +08: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 18:52:47 +08:00
|
|
|
|
|
|
|
install:
|
2005-05-16 06:23:26 +08:00
|
|
|
@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
|
2004-11-03 07:55:01 +08:00
|
|
|
@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
|
1998-12-21 18:52:47 +08:00
|
|
|
do \
|
1999-04-30 05:52:08 +08:00
|
|
|
(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
|
|
|
|
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
|
1998-12-21 18:52:47 +08:00
|
|
|
done;
|
|
|
|
|
|
|
|
tags:
|
|
|
|
ctags $(SRC)
|
|
|
|
|
|
|
|
tests:
|
|
|
|
|
|
|
|
lint:
|
|
|
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
|
|
|
|
|
|
|
depend:
|
2005-05-17 00:55:47 +08:00
|
|
|
@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
|
2002-10-09 21:25:12 +08:00
|
|
|
$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC)
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
dclean:
|
1999-04-01 20:34:33 +08:00
|
|
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
1998-12-21 18:52:47 +08:00
|
|
|
mv -f Makefile.new $(MAKEFILE)
|
|
|
|
|
|
|
|
clean:
|
1999-03-06 20:32:06 +08:00
|
|
|
rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
1999-03-06 22:32:48 +08:00
|
|
|
|
2001-02-22 22:45:02 +08: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 20:04:35 +08:00
|
|
|
conf_api.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
2002-11-13 23:43:43 +08: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 21:04:04 +08: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 23:43:43 +08: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 19:57:35 +08: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 23:43:43 +08: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 19:57:35 +08: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 23:43:43 +08: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 09:38:15 +08:00
|
|
|
conf_mall.o: ../../e_os.h ../../include/openssl/asn1.h
|
2004-05-18 03:26:06 +08: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 18:59:43 +08:00
|
|
|
conf_mall.o: ../../include/openssl/opensslconf.h
|
|
|
|
conf_mall.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
2004-04-20 02:33:41 +08:00
|
|
|
conf_mall.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
|
2002-01-24 20:31:54 +08:00
|
|
|
conf_mall.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
2004-04-20 02:33:41 +08:00
|
|
|
conf_mall.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
2003-05-01 12:10:32 +08:00
|
|
|
conf_mall.o: ../../include/openssl/x509_vfy.h ../cryptlib.h conf_mall.c
|
2002-12-29 09:38:15 +08:00
|
|
|
conf_mod.o: ../../e_os.h ../../include/openssl/asn1.h
|
2004-05-18 03:26:06 +08: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 18:59:43 +08:00
|
|
|
conf_mod.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
2004-04-20 02:33:41 +08: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 09:38:15 +08:00
|
|
|
conf_sap.o: ../../e_os.h ../../include/openssl/asn1.h
|
2004-05-18 03:26:06 +08: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 22:41:29 +08:00
|
|
|
conf_sap.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
2004-04-20 02:33:41 +08:00
|
|
|
conf_sap.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
|
2002-02-26 22:41:29 +08:00
|
|
|
conf_sap.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
|
2004-04-20 02:33:41 +08:00
|
|
|
conf_sap.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
|
2003-05-01 12:10:32 +08:00
|
|
|
conf_sap.o: ../../include/openssl/x509_vfy.h ../cryptlib.h conf_sap.c
|