2015-12-10 04:11:49 +08:00
|
|
|
#
|
2016-01-13 05:25:30 +08:00
|
|
|
# OpenSSL/crypto/ripemd/Makefile
|
2015-12-10 04:11:49 +08:00
|
|
|
#
|
|
|
|
|
2016-01-13 05:25:30 +08:00
|
|
|
DIR= ripemd
|
|
|
|
TOP= ../..
|
|
|
|
CC= cc
|
2015-12-10 04:11:49 +08:00
|
|
|
CPP= $(CC) -E
|
|
|
|
INCLUDES=
|
|
|
|
CFLAG=-g
|
2016-01-13 05:25:30 +08:00
|
|
|
MAKEFILE= Makefile
|
|
|
|
AR= ar r
|
2015-12-10 04:11:49 +08:00
|
|
|
|
2016-01-13 05:25:30 +08:00
|
|
|
RIP_ASM_OBJ=
|
2015-12-12 19:29:37 +08:00
|
|
|
|
2015-12-10 04:11:49 +08:00
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
|
|
|
ASFLAGS= $(INCLUDES) $(ASFLAG)
|
|
|
|
AFLAGS= $(ASFLAGS)
|
|
|
|
|
|
|
|
GENERAL=Makefile
|
|
|
|
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
2016-01-13 05:25:30 +08:00
|
|
|
LIBSRC=rmd_dgst.c rmd_one.c
|
|
|
|
LIBOBJ=rmd_dgst.o rmd_one.o $(RMD160_ASM_OBJ)
|
2015-12-10 04:11:49 +08:00
|
|
|
|
|
|
|
SRC= $(LIBSRC)
|
|
|
|
|
2016-01-13 05:25:30 +08:00
|
|
|
HEADER= rmd_locl.h rmdconst.h
|
|
|
|
|
2015-12-10 04:11:49 +08:00
|
|
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
|
|
|
|
|
|
|
top:
|
|
|
|
(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
|
|
|
|
|
2016-01-13 05:25:30 +08:00
|
|
|
all: lib
|
2015-12-10 04:11:49 +08:00
|
|
|
|
2016-01-13 05:25:30 +08:00
|
|
|
lib: $(LIBOBJ)
|
2015-12-10 04:11:49 +08:00
|
|
|
$(AR) $(LIB) $(LIBOBJ)
|
|
|
|
$(RANLIB) $(LIB) || echo Never mind.
|
|
|
|
@touch lib
|
|
|
|
|
2016-01-13 05:25:30 +08:00
|
|
|
rmd-586.s: asm/rmd-586.pl ../perlasm/x86asm.pl
|
|
|
|
$(PERL) asm/rmd-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
|
|
|
|
|
2015-12-10 04:11:49 +08:00
|
|
|
files:
|
|
|
|
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
|
|
|
|
|
|
|
|
depend:
|
|
|
|
@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
|
|
|
|
$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|