Makefile 2.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
#
# SSLeay/crypto/ripemd/Makefile
#

DIR=    ripemd
TOP=    ../..
CC=     cc
CPP=    $(CC) -E
INCLUDES=
CFLAG=-g
11 12
INSTALL_PREFIX=
OPENSSLDIR=     /usr/local/ssl
13
INSTALLTOP=/usr/local/ssl
B
Ben Laurie 已提交
14
MAKE=           make
15 16
MAKEDEPPROG=	makedepend
MAKEDEPEND=	$(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
B
Ben Laurie 已提交
17
MAKEFILE=       Makefile
18 19 20 21 22
AR=             ar r

RIP_ASM_OBJ=

CFLAGS= $(INCLUDES) $(CFLAG)
23
ASFLAGS= $(INCLUDES) $(ASFLAG)
24
AFLAGS= $(ASFLAGS)
25 26 27

GENERAL=Makefile
TEST=rmdtest.c
28
APPS=
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47

LIB=$(TOP)/libcrypto.a
LIBSRC=rmd_dgst.c rmd_one.c
LIBOBJ=rmd_dgst.o rmd_one.o $(RMD160_ASM_OBJ)

SRC= $(LIBSRC)

EXHEADER= ripemd.h
HEADER= rmd_locl.h rmdconst.h $(EXHEADER)

ALL=    $(GENERAL) $(SRC) $(HEADER)

top:
	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)

all:    lib

lib:    $(LIBOBJ)
	$(AR) $(LIB) $(LIBOBJ)
48
	$(RANLIB) $(LIB) || echo Never mind.
49 50
	@touch lib

51
# ELF
52
rm86-elf.s: asm/rmd-586.pl ../perlasm/x86asm.pl
53 54
	(cd asm; $(PERL) rmd-586.pl elf $(CFLAGS) > ../$@)
# COFF
55
rm86-cof.s: asm/rmd-586.pl ../perlasm/x86asm.pl
56
	(cd asm; $(PERL) rmd-586.pl coff $(CFLAGS) > ../$@)
57
# a.out
58 59
rm86-out.s: asm/rmd-586.pl ../perlasm/x86asm.pl
	(cd asm; $(PERL) rmd-586.pl a.out $(CFLAGS) > ../$@)
60 61

files:
B
Ben Laurie 已提交
62
	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
63 64

links:
65 66 67
	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
68 69

install:
70
	@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
71
	do  \
72 73
	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
74 75 76 77 78 79 80 81 82 83 84
	done;

tags:
	ctags $(SRC)

tests:

lint:
	lint -DLINT $(INCLUDES) $(SRC)>fluff

depend:
85
	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
86 87

dclean:
88
	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
89 90 91
	mv -f Makefile.new $(MAKEFILE)

clean:
92
	rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
93 94

# DO NOT DELETE THIS LINE -- make depend depends on it.
B
Ben Laurie 已提交
95

96
rmd_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
B
Bodo Möller 已提交
97
rmd_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ripemd.h
R
Richard Levitte 已提交
98
rmd_dgst.o: ../md32_common.h rmd_dgst.c rmd_locl.h rmdconst.h
R
Richard Levitte 已提交
99 100
rmd_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
rmd_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
101 102 103
rmd_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/ripemd.h
rmd_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
rmd_one.o: ../../include/openssl/symhacks.h rmd_one.c