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