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