Makefile revision 142425
1142425Snectar#
2142425Snectar# SSLeay/crypto/ripemd/Makefile
3142425Snectar#
4142425Snectar
5142425SnectarDIR=    ripemd
6142425SnectarTOP=    ../..
7142425SnectarCC=     cc
8142425SnectarCPP=    $(CC) -E
9142425SnectarINCLUDES=
10142425SnectarCFLAG=-g
11142425SnectarINSTALL_PREFIX=
12142425SnectarOPENSSLDIR=     /usr/local/ssl
13142425SnectarINSTALLTOP=/usr/local/ssl
14142425SnectarMAKEDEPPROG=	makedepend
15142425SnectarMAKEDEPEND=	$(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
16142425SnectarMAKEFILE=       Makefile
17142425SnectarAR=             ar r
18142425Snectar
19142425SnectarRIP_ASM_OBJ=
20142425Snectar
21142425SnectarCFLAGS= $(INCLUDES) $(CFLAG)
22142425SnectarASFLAGS= $(INCLUDES) $(ASFLAG)
23142425Snectar
24142425SnectarGENERAL=Makefile
25142425SnectarTEST=rmdtest.c
26142425SnectarAPPS=
27142425Snectar
28142425SnectarLIB=$(TOP)/libcrypto.a
29142425SnectarLIBSRC=rmd_dgst.c rmd_one.c
30142425SnectarLIBOBJ=rmd_dgst.o rmd_one.o $(RMD160_ASM_OBJ)
31142425Snectar
32142425SnectarSRC= $(LIBSRC)
33142425Snectar
34142425SnectarEXHEADER= ripemd.h
35142425SnectarHEADER= rmd_locl.h rmdconst.h $(EXHEADER)
36142425Snectar
37142425SnectarALL=    $(GENERAL) $(SRC) $(HEADER)
38142425Snectar
39142425Snectartop:
40142425Snectar	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
41142425Snectar
42142425Snectarall:    lib
43142425Snectar
44142425Snectarlib:    $(LIBOBJ)
45142425Snectar	$(AR) $(LIB) $(LIBOBJ)
46142425Snectar	$(RANLIB) $(LIB) || echo Never mind.
47142425Snectar	@touch lib
48142425Snectar
49142425Snectar# elf
50142425Snectarasm/rm86-elf.s: asm/rmd-586.pl ../perlasm/x86asm.pl
51142425Snectar	(cd asm; $(PERL) rmd-586.pl elf $(CFLAGS) > rm86-elf.s)
52142425Snectar
53142425Snectar# a.out
54142425Snectarasm/rm86-out.o: asm/rm86unix.cpp
55142425Snectar	$(CPP) -DOUT asm/rm86unix.cpp | as -o asm/rm86-out.o
56142425Snectar
57142425Snectar# bsdi
58142425Snectarasm/rm86bsdi.o: asm/rm86unix.cpp
59142425Snectar	$(CPP) -DBSDI asm/rm86unix.cpp | sed 's/ :/:/' | as -o asm/rm86bsdi.o
60142425Snectar
61142425Snectarasm/rm86unix.cpp: asm/rmd-586.pl ../perlasm/x86asm.pl
62142425Snectar	(cd asm; $(PERL) rmd-586.pl cpp >rm86unix.cpp)
63142425Snectar
64142425Snectarfiles:
65142425Snectar	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
66142425Snectar
67142425Snectarlinks:
68142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
69142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
70142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
71142425Snectar
72142425Snectarinstall:
73142425Snectar	@for i in $(EXHEADER) ; \
74142425Snectar	do  \
75142425Snectar	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
76142425Snectar	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
77142425Snectar	done;
78142425Snectar
79142425Snectartags:
80142425Snectar	ctags $(SRC)
81142425Snectar
82142425Snectartests:
83142425Snectar
84142425Snectarlint:
85142425Snectar	lint -DLINT $(INCLUDES) $(SRC)>fluff
86142425Snectar
87142425Snectardepend:
88142425Snectar	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
89142425Snectar
90142425Snectardclean:
91142425Snectar	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
92142425Snectar	mv -f Makefile.new $(MAKEFILE)
93142425Snectar
94142425Snectarclean:
95142425Snectar	rm -f asm/rm86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
96142425Snectar
97142425Snectar# DO NOT DELETE THIS LINE -- make depend depends on it.
98142425Snectar
99142425Snectarrmd_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
100142425Snectarrmd_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
101142425Snectarrmd_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
102142425Snectarrmd_dgst.o: ../../include/openssl/opensslconf.h
103142425Snectarrmd_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ripemd.h
104142425Snectarrmd_dgst.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
105142425Snectarrmd_dgst.o: ../../include/openssl/symhacks.h ../md32_common.h rmd_dgst.c
106142425Snectarrmd_dgst.o: rmd_locl.h rmdconst.h
107142425Snectarrmd_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
108142425Snectarrmd_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
109142425Snectarrmd_one.o: ../../include/openssl/ripemd.h ../../include/openssl/safestack.h
110142425Snectarrmd_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
111142425Snectarrmd_one.o: rmd_one.c
112