Deprecate OBJ_cleanup() and make it a no-op
[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: apps
19
20 apps: $(APPS)
21
22 install:
23         @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
24         @for i in $(APPS) ; \
25         do  \
26         (cp $$i $(DESTDIR)$(INSTALLTOP)/bin/$$i.new; \
27         chmod 755 $(DESTDIR)$(INSTALLTOP)/bin/$$i.new; \
28         mv -f $(DESTDIR)$(INSTALLTOP)/bin/$$i.new $(DESTDIR)$(INSTALLTOP)/bin/$$i ); \
29         done;
30         @for i in $(MISC_APPS) ; \
31         do  \
32         (cp $$i $(DESTDIR)$(OPENSSLDIR)/misc/$$i.new; \
33         chmod 755 $(DESTDIR)$(OPENSSLDIR)/misc/$$i.new; \
34         mv -f $(DESTDIR)$(OPENSSLDIR)/misc/$$i.new $(DESTDIR)$(OPENSSLDIR)/misc/$$i ); \
35         done;
36
37 uninstall:
38         @for i in $(APPS) ; \
39         do  \
40                 echo $(RM) $(DESTDIR)$(INSTALLTOP)/bin/$$i; \
41                 $(RM) $(DESTDIR)$(INSTALLTOP)/bin/$$i; \
42         done;
43         @for i in $(MISC_APPS) ; \
44         do  \
45                 echo $(RM) $(DESTDIR)$(OPENSSLDIR)/misc/$$i; \
46                 $(RM) $(DESTDIR)$(OPENSSLDIR)/misc/$$i; \
47         done;
48
49 errors:
50
51 depend:
52
53 clean:
54         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
55
56 errors:
57
58 c_rehash: c_rehash.in
59         $(PERL) -I$(TOP) -Mconfigdata $(TOP)/util/dofile.pl -otools/Makefile c_rehash.in > c_rehash.new
60         mv c_rehash.new c_rehash
61
62 # DO NOT DELETE THIS LINE -- make depend depends on it.