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