9ab6fc5936
Now that we're using templates, we should warn people not to edit the resulting file. We do it through util/dofile.pl, which is enhanced with an option to tell what file it was called from. We also change the calls so the template files are on the command line instead of being redirected through standard input. That way, we can display something like this (example taken from include/openssl/opensslconf.h): /* WARNING: do not edit! */ /* Generated by Configure from include/openssl/opensslconf.h.in */ Reviewed-by: Rich Salz <rsalz@openssl.org>
65 lines
1.4 KiB
Makefile
65 lines
1.4 KiB
Makefile
#
|
|
# OpenSSL/tools/Makefile
|
|
#
|
|
|
|
DIR= tools
|
|
TOP= ..
|
|
CC= cc
|
|
INCLUDES= -I$(TOP) -I../../include
|
|
CFLAG=-g
|
|
MAKEFILE= Makefile
|
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
|
|
|
GENERAL=Makefile
|
|
APPS= c_rehash
|
|
MISC_APPS= c_hash c_info c_issuer c_name
|
|
|
|
all: apps
|
|
|
|
apps: $(APPS)
|
|
|
|
install:
|
|
@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
|
|
@for i in $(APPS) ; \
|
|
do \
|
|
(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \
|
|
chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \
|
|
mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i ); \
|
|
done;
|
|
@for i in $(MISC_APPS) ; \
|
|
do \
|
|
(cp $$i $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new; \
|
|
chmod 755 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new; \
|
|
mv -f $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i ); \
|
|
done;
|
|
|
|
uninstall:
|
|
@for i in $(APPS) ; \
|
|
do \
|
|
echo $(RM) $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i; \
|
|
$(RM) $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i; \
|
|
done;
|
|
@for i in $(MISC_APPS) ; \
|
|
do \
|
|
echo $(RM) $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i; \
|
|
$(RM) $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i; \
|
|
done;
|
|
|
|
files:
|
|
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
|
|
|
|
errors:
|
|
|
|
depend:
|
|
|
|
clean:
|
|
rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
|
|
|
errors:
|
|
|
|
c_rehash: c_rehash.in
|
|
$(PERL) -I$(TOP) -Mconfigdata $(TOP)/util/dofile.pl -otools/Makefile c_rehash.in > c_rehash.new
|
|
mv c_rehash.new c_rehash
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|