1#
2# SSLeay/tools/Makefile
3#
4
5DIR=	tools
6TOP=	..
7CC=	cc
8INCLUDES= -I$(TOP) -I../../include
9CFLAG=-g
10INSTALL_PREFIX=
11OPENSSLDIR=     /usr/local/ssl
12INSTALLTOP=/usr/local/ssl
13MAKEDEPPROG=	makedepend
14MAKEDEPEND=	$(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
15MAKEFILE=	Makefile
16
17CFLAGS= $(INCLUDES) $(CFLAG)
18
19TEST=
20APPS= c_rehash
21MISC_APPS= c_hash c_info c_issuer c_name
22
23all:
24
25install:
26	@for i in $(APPS) ; \
27	do  \
28	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \
29	chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \
30	mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i ); \
31	done;
32	@for i in $(MISC_APPS) ; \
33	do  \
34	(cp $$i $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new; \
35	chmod 755 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new; \
36	mv -f $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i ); \
37	done;
38
39files:
40	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
41
42links:
43
44lint:
45
46tags:
47
48errors:
49
50depend:
51
52dclean:
53	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
54	mv -f Makefile.new $(MAKEFILE)
55
56clean:
57	rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
58
59errors:
60
61# DO NOT DELETE THIS LINE -- make depend depends on it.
62