Makefile revision 156840
1139823Simp#
211819Sjulian# SSLeay/crypto/dso/Makefile
311819Sjulian#
411819Sjulian
511819SjulianDIR=	dso
611819SjulianTOP=	../..
711819SjulianCC=	cc
811819SjulianINCLUDES= -I.. -I$(TOP) -I../../include
911819SjulianCFLAG=-g
1011819SjulianINSTALL_PREFIX=
1111819SjulianOPENSSLDIR=     /usr/local/ssl
1211819SjulianINSTALLTOP=/usr/local/ssl
13165899SrwatsonMAKEDEPPROG=	makedepend
14165899SrwatsonMAKEDEPEND=	$(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
15165899SrwatsonMAKEFILE=	Makefile
16165899SrwatsonAR=		ar r
17165899Srwatson
18165899SrwatsonCFLAGS= $(INCLUDES) $(CFLAG)
19165899Srwatson
20165899SrwatsonGENERAL=Makefile
21165899SrwatsonTEST=
22165899SrwatsonAPPS=
23165899Srwatson
24165899SrwatsonLIB=$(TOP)/libcrypto.a
25165899SrwatsonLIBSRC= dso_dl.c dso_dlfcn.c dso_err.c dso_lib.c dso_null.c \
26165899Srwatson	dso_openssl.c dso_win32.c dso_vms.c
27165899SrwatsonLIBOBJ= dso_dl.o dso_dlfcn.o dso_err.o dso_lib.o dso_null.o \
28165899Srwatson	dso_openssl.o dso_win32.o dso_vms.o
29165899Srwatson
30165899SrwatsonSRC= $(LIBSRC)
31165899Srwatson
32165899SrwatsonEXHEADER= dso.h
33165899SrwatsonHEADER=	$(EXHEADER)
34165899Srwatson
35165899SrwatsonALL=    $(GENERAL) $(SRC) $(HEADER)
36165899Srwatson
37165899Srwatsontop:
38165899Srwatson	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
3911819Sjulian
4011819Sjulianall:	lib
4111819Sjulian
4211819Sjulianlib:	$(LIBOBJ)
4311819Sjulian	$(AR) $(LIB) $(LIBOBJ)
4411819Sjulian	$(RANLIB) $(LIB) || echo Never mind.
4511819Sjulian	@touch lib
4611819Sjulian
4711819Sjulianfiles:
4811819Sjulian	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
4911819Sjulian
5011819Sjulianlinks:
5111819Sjulian	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
5211819Sjulian	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
5311819Sjulian	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
5411819Sjulian
5511819Sjulianinstall:
5611819Sjulian	@for i in $(EXHEADER) ; \
5711819Sjulian	do  \
5811819Sjulian	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
5912057Sjulian	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
6012057Sjulian	done;
6150477Speter
6211819Sjuliantags:
6311819Sjulian	ctags $(SRC)
6411819Sjulian
6511819Sjuliantests:
6611819Sjulian
6711819Sjulianlint:
6811819Sjulian	lint -DLINT $(INCLUDES) $(SRC)>fluff
6911819Sjulian
7011819Sjuliandepend:
7125652Sjhay	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
7225652Sjhay
7325652Sjhaydclean:
7425652Sjhay	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
7525652Sjhay	mv -f Makefile.new $(MAKEFILE)
7625652Sjhay
7725652Sjhayclean:
7825652Sjhay	rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
7925652Sjhay
8025652Sjhay# DO NOT DELETE THIS LINE -- make depend depends on it.
8125652Sjhay
8211819Sjuliandso_dl.o: ../../e_os.h ../../include/openssl/bio.h
8311819Sjuliandso_dl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
8455205Speterdso_dl.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
8526965Sjhaydso_dl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
8644078Sdfrdso_dl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
8744078Sdfrdso_dl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
8844078Sdfrdso_dl.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_dl.c
8944078Sdfrdso_dlfcn.o: ../../e_os.h ../../include/openssl/bio.h
9044078Sdfrdso_dlfcn.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
9125652Sjhaydso_dlfcn.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
9225652Sjhaydso_dlfcn.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
9311819Sjuliandso_dlfcn.o: ../../include/openssl/opensslconf.h
9425652Sjhaydso_dlfcn.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
9525652Sjhaydso_dlfcn.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
9625652Sjhaydso_dlfcn.o: ../cryptlib.h dso_dlfcn.c
9725652Sjhaydso_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
9811819Sjuliandso_err.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
99139442Srwatsondso_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
100139442Srwatsondso_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
101139442Srwatsondso_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
10225652Sjhaydso_err.o: ../../include/openssl/symhacks.h dso_err.c
10326965Sjhaydso_lib.o: ../../e_os.h ../../include/openssl/bio.h
10426965Sjhaydso_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
105139479Srwatsondso_lib.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
10626965Sjhaydso_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
10783366Sjuliandso_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
10826965Sjhaydso_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
10926965Sjhaydso_lib.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_lib.c
11026965Sjhaydso_null.o: ../../e_os.h ../../include/openssl/bio.h
11138482Swollmandso_null.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
11226965Sjhaydso_null.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
11392745Salfreddso_null.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
11492745Salfreddso_null.o: ../../include/openssl/opensslconf.h
115169463Srwatsondso_null.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
11692745Salfreddso_null.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
11792745Salfreddso_null.o: ../cryptlib.h dso_null.c
11892745Salfreddso_openssl.o: ../../e_os.h ../../include/openssl/bio.h
11992745Salfreddso_openssl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
12092745Salfreddso_openssl.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
12192745Salfreddso_openssl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
12292745Salfreddso_openssl.o: ../../include/openssl/opensslconf.h
12392745Salfreddso_openssl.o: ../../include/openssl/opensslv.h
12492745Salfreddso_openssl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
12592745Salfreddso_openssl.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_openssl.c
12625652Sjhaydso_vms.o: ../../e_os.h ../../include/openssl/bio.h
12755205Speterdso_vms.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
12825652Sjhaydso_vms.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
12926965Sjhaydso_vms.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
130dso_vms.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
131dso_vms.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
132dso_vms.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_vms.c
133dso_win32.o: ../../e_os.h ../../include/openssl/bio.h
134dso_win32.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
135dso_win32.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
136dso_win32.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
137dso_win32.o: ../../include/openssl/opensslconf.h
138dso_win32.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
139dso_win32.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
140dso_win32.o: ../cryptlib.h dso_win32.c
141