Makefile.in 1.3 KB
Newer Older
1
#
2
# OpenSSL/tools/Makefile
3 4 5 6 7
#

DIR=	tools
TOP=	..
CC=	cc
8
INCLUDES= -I$(TOP) -I../../include
9
CFLAG=-g
B
Ben Laurie 已提交
10
MAKEFILE=	Makefile
11 12 13

CFLAGS= $(INCLUDES) $(CFLAG)

B
Ben Laurie 已提交
14
GENERAL=Makefile
15 16
APPS= c_rehash
MISC_APPS= c_hash c_info c_issuer c_name
17

18 19 20
all: apps

apps: $(APPS)
21 22

install:
A
Andy Polyakov 已提交
23
	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
24 25
	@for i in $(APPS) ; \
	do  \
26 27 28
	(cp $$i $(DESTDIR)$(INSTALLTOP)/bin/$$i.new; \
	chmod 755 $(DESTDIR)$(INSTALLTOP)/bin/$$i.new; \
	mv -f $(DESTDIR)$(INSTALLTOP)/bin/$$i.new $(DESTDIR)$(INSTALLTOP)/bin/$$i ); \
B
Bodo Möller 已提交
29
	done;
30 31
	@for i in $(MISC_APPS) ; \
	do  \
32 33 34
	(cp $$i $(DESTDIR)$(OPENSSLDIR)/misc/$$i.new; \
	chmod 755 $(DESTDIR)$(OPENSSLDIR)/misc/$$i.new; \
	mv -f $(DESTDIR)$(OPENSSLDIR)/misc/$$i.new $(DESTDIR)$(OPENSSLDIR)/misc/$$i ); \
35 36
	done;

R
Rich Salz 已提交
37 38 39
uninstall:
	@for i in $(APPS) ; \
	do  \
40 41
		echo $(RM) $(DESTDIR)$(INSTALLTOP)/bin/$$i; \
		$(RM) $(DESTDIR)$(INSTALLTOP)/bin/$$i; \
R
Rich Salz 已提交
42 43 44
	done;
	@for i in $(MISC_APPS) ; \
	do  \
45 46
		echo $(RM) $(DESTDIR)$(OPENSSLDIR)/misc/$$i; \
		$(RM) $(DESTDIR)$(OPENSSLDIR)/misc/$$i; \
R
Rich Salz 已提交
47 48
	done;

49 50 51 52 53
errors:

depend:

clean:
54
	rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
55 56 57

errors:

58
c_rehash: c_rehash.in
R
Richard Levitte 已提交
59
	$(PERL) -I$(TOP) -Mconfigdata $(TOP)/util/dofile.pl -otools/Makefile c_rehash.in > c_rehash.new
60 61
	mv c_rehash.new c_rehash

62
# DO NOT DELETE THIS LINE -- make depend depends on it.