1142425Snectar#
2160814Ssimon# OpenSSL/crypto/ripemd/Makefile
3142425Snectar#
4142425Snectar
5142425SnectarDIR=    ripemd
6142425SnectarTOP=    ../..
7142425SnectarCC=     cc
8142425SnectarCPP=    $(CC) -E
9142425SnectarINCLUDES=
10142425SnectarCFLAG=-g
11142425SnectarMAKEFILE=       Makefile
12142425SnectarAR=             ar r
13142425Snectar
14142425SnectarRIP_ASM_OBJ=
15142425Snectar
16142425SnectarCFLAGS= $(INCLUDES) $(CFLAG)
17142425SnectarASFLAGS= $(INCLUDES) $(ASFLAG)
18160814SsimonAFLAGS= $(ASFLAGS)
19142425Snectar
20142425SnectarGENERAL=Makefile
21142425SnectarTEST=rmdtest.c
22142425SnectarAPPS=
23142425Snectar
24142425SnectarLIB=$(TOP)/libcrypto.a
25142425SnectarLIBSRC=rmd_dgst.c rmd_one.c
26142425SnectarLIBOBJ=rmd_dgst.o rmd_one.o $(RMD160_ASM_OBJ)
27142425Snectar
28142425SnectarSRC= $(LIBSRC)
29142425Snectar
30142425SnectarEXHEADER= ripemd.h
31142425SnectarHEADER= rmd_locl.h rmdconst.h $(EXHEADER)
32142425Snectar
33142425SnectarALL=    $(GENERAL) $(SRC) $(HEADER)
34142425Snectar
35142425Snectartop:
36142425Snectar	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
37142425Snectar
38142425Snectarall:    lib
39142425Snectar
40142425Snectarlib:    $(LIBOBJ)
41238405Sjkim	$(AR) $(LIB) $(LIBOBJ)
42142425Snectar	$(RANLIB) $(LIB) || echo Never mind.
43142425Snectar	@touch lib
44142425Snectar
45238405Sjkimrmd-586.s:	asm/rmd-586.pl ../perlasm/x86asm.pl
46238405Sjkim	$(PERL) asm/rmd-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
47142425Snectar
48142425Snectarfiles:
49142425Snectar	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
50142425Snectar
51142425Snectarlinks:
52142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
53142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
54142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
55142425Snectar
56142425Snectarinstall:
57160814Ssimon	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
58160814Ssimon	@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
59142425Snectar	do  \
60142425Snectar	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
61142425Snectar	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
62142425Snectar	done;
63142425Snectar
64142425Snectartags:
65142425Snectar	ctags $(SRC)
66142425Snectar
67142425Snectartests:
68142425Snectar
69142425Snectarlint:
70142425Snectar	lint -DLINT $(INCLUDES) $(SRC)>fluff
71142425Snectar
72142425Snectardepend:
73160814Ssimon	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
74142425Snectar	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
75142425Snectar
76142425Snectardclean:
77142425Snectar	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
78142425Snectar	mv -f Makefile.new $(MAKEFILE)
79142425Snectar
80142425Snectarclean:
81160814Ssimon	rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
82142425Snectar
83142425Snectar# DO NOT DELETE THIS LINE -- make depend depends on it.
84142425Snectar
85238405Sjkimrmd_dgst.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
86194206Ssimonrmd_dgst.o: ../../include/openssl/opensslconf.h
87194206Ssimonrmd_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
88194206Ssimonrmd_dgst.o: ../../include/openssl/ripemd.h ../../include/openssl/safestack.h
89194206Ssimonrmd_dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
90160814Ssimonrmd_dgst.o: ../md32_common.h rmd_dgst.c rmd_locl.h rmdconst.h
91142425Snectarrmd_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
92142425Snectarrmd_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
93160814Ssimonrmd_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/ripemd.h
94160814Ssimonrmd_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
95160814Ssimonrmd_one.o: ../../include/openssl/symhacks.h rmd_one.c
96