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