Makefile 1.1 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
TEST=
16 17
APPS= c_rehash
MISC_APPS= c_hash c_info c_issuer c_name
18 19 20 21

all:

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

files:
B
Ben Laurie 已提交
37
	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
38 39 40 41 42 43 44 45 46 47 48 49

links:

lint:

tags:

errors:

depend:

dclean:
50
	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
51 52 53
	mv -f Makefile.new $(MAKEFILE)

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

errors:

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