Makefile revision 156740
11573Srgrimes#
21573Srgrimes# SSLeay/crypto/dso/Makefile
31573Srgrimes#
41573Srgrimes
51573SrgrimesDIR=	dso
61573SrgrimesTOP=	../..
71573SrgrimesCC=	cc
81573SrgrimesINCLUDES= -I.. -I$(TOP) -I../../include
91573SrgrimesCFLAG=-g
101573SrgrimesINSTALL_PREFIX=
111573SrgrimesOPENSSLDIR=     /usr/local/ssl
121573SrgrimesINSTALLTOP=/usr/local/ssl
131573SrgrimesMAKEDEPPROG=	makedepend
141573SrgrimesMAKEDEPEND=	$(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
151573SrgrimesMAKEFILE=	Makefile
161573SrgrimesAR=		ar r
171573Srgrimes
181573SrgrimesCFLAGS= $(INCLUDES) $(CFLAG)
191573Srgrimes
201573SrgrimesGENERAL=Makefile
211573SrgrimesTEST=
221573SrgrimesAPPS=
231573Srgrimes
241573SrgrimesLIB=$(TOP)/libcrypto.a
251573SrgrimesLIBSRC= dso_dl.c dso_dlfcn.c dso_err.c dso_lib.c dso_null.c \
261573Srgrimes	dso_openssl.c dso_win32.c dso_vms.c
271573SrgrimesLIBOBJ= dso_dl.o dso_dlfcn.o dso_err.o dso_lib.o dso_null.o \
281573Srgrimes	dso_openssl.o dso_win32.o dso_vms.o
291573Srgrimes
301573SrgrimesSRC= $(LIBSRC)
311573Srgrimes
321573SrgrimesEXHEADER= dso.h
3390039SobrienHEADER=	$(EXHEADER)
3490039Sobrien
351573SrgrimesALL=    $(GENERAL) $(SRC) $(HEADER)
3671579Sdeischen
37122442Sghelmertop:
381573Srgrimes	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
391573Srgrimes
40150065Sstefanfall:	lib
41122442Sghelmer
421573Srgrimeslib:	$(LIBOBJ)
4371579Sdeischen	$(AR) $(LIB) $(LIBOBJ)
441573Srgrimes	$(RANLIB) $(LIB) || echo Never mind.
451573Srgrimes	@touch lib
461573Srgrimes
471573Srgrimesfiles:
481573Srgrimes	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
49122442Sghelmer
501573Srgrimeslinks:
51122442Sghelmer	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
52122442Sghelmer	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
53122442Sghelmer	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
541573Srgrimes
55122442Sghelmerinstall:
56122442Sghelmer	@for i in $(EXHEADER) ; \
57122442Sghelmer	do  \
58122442Sghelmer	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
59122442Sghelmer	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
60122442Sghelmer	done;
611573Srgrimes
621573Srgrimestags:
631573Srgrimes	ctags $(SRC)
641573Srgrimes
651573Srgrimestests:
661573Srgrimes
67205165Sphklint:
68205165Sphk	lint -DLINT $(INCLUDES) $(SRC)>fluff
69205165Sphk
70205165Sphkdepend:
711573Srgrimes	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
721573Srgrimes
731573Srgrimesdclean:
74122442Sghelmer	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
75122442Sghelmer	mv -f Makefile.new $(MAKEFILE)
76122442Sghelmer
77122442Sghelmerclean:
78122442Sghelmer	rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
79122442Sghelmer
80122442Sghelmer# DO NOT DELETE THIS LINE -- make depend depends on it.
811573Srgrimes
82122442Sghelmerdso_dl.o: ../../e_os.h ../../include/openssl/bio.h
831573Srgrimesdso_dl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
841573Srgrimesdso_dl.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
851573Srgrimesdso_dl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
861573Srgrimesdso_dl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
8756698Sjasonedso_dl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
8871579Sdeischendso_dl.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_dl.c
8971579Sdeischendso_dlfcn.o: ../../e_os.h ../../include/openssl/bio.h
9071579Sdeischendso_dlfcn.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
911573Srgrimesdso_dlfcn.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
9256698Sjasonedso_dlfcn.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
931573Srgrimesdso_dlfcn.o: ../../include/openssl/opensslconf.h
941573Srgrimesdso_dlfcn.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
951573Srgrimesdso_dlfcn.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
96dso_dlfcn.o: ../cryptlib.h dso_dlfcn.c
97dso_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
98dso_err.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
99dso_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
100dso_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
101dso_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
102dso_err.o: ../../include/openssl/symhacks.h dso_err.c
103dso_lib.o: ../../e_os.h ../../include/openssl/bio.h
104dso_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
105dso_lib.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
106dso_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
107dso_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
108dso_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
109dso_lib.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_lib.c
110dso_null.o: ../../e_os.h ../../include/openssl/bio.h
111dso_null.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
112dso_null.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
113dso_null.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
114dso_null.o: ../../include/openssl/opensslconf.h
115dso_null.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
116dso_null.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
117dso_null.o: ../cryptlib.h dso_null.c
118dso_openssl.o: ../../e_os.h ../../include/openssl/bio.h
119dso_openssl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
120dso_openssl.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
121dso_openssl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
122dso_openssl.o: ../../include/openssl/opensslconf.h
123dso_openssl.o: ../../include/openssl/opensslv.h
124dso_openssl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
125dso_openssl.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_openssl.c
126dso_vms.o: ../../e_os.h ../../include/openssl/bio.h
127dso_vms.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
128dso_vms.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
129dso_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