Makefile revision 178653
1142425Snectar#
2160814Ssimon# OpenSSL/crypto/dso/Makefile
3142425Snectar#
4142425Snectar
5142425SnectarDIR=	dso
6142425SnectarTOP=	../..
7142425SnectarCC=	cc
8142425SnectarINCLUDES= -I.. -I$(TOP) -I../../include
9142425SnectarCFLAG=-g
10142425SnectarMAKEFILE=	Makefile
11142425SnectarAR=		ar r
12142425Snectar
13142425SnectarCFLAGS= $(INCLUDES) $(CFLAG)
14142425Snectar
15142425SnectarGENERAL=Makefile
16142425SnectarTEST=
17142425SnectarAPPS=
18142425Snectar
19142425SnectarLIB=$(TOP)/libcrypto.a
20142425SnectarLIBSRC= dso_dl.c dso_dlfcn.c dso_err.c dso_lib.c dso_null.c \
21142425Snectar	dso_openssl.c dso_win32.c dso_vms.c
22142425SnectarLIBOBJ= dso_dl.o dso_dlfcn.o dso_err.o dso_lib.o dso_null.o \
23142425Snectar	dso_openssl.o dso_win32.o dso_vms.o
24142425Snectar
25142425SnectarSRC= $(LIBSRC)
26142425Snectar
27142425SnectarEXHEADER= dso.h
28142425SnectarHEADER=	$(EXHEADER)
29142425Snectar
30142425SnectarALL=    $(GENERAL) $(SRC) $(HEADER)
31142425Snectar
32142425Snectartop:
33142425Snectar	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
34142425Snectar
35142425Snectarall:	lib
36142425Snectar
37142425Snectarlib:	$(LIBOBJ)
38142425Snectar	$(AR) $(LIB) $(LIBOBJ)
39142425Snectar	$(RANLIB) $(LIB) || echo Never mind.
40142425Snectar	@touch lib
41142425Snectar
42142425Snectarfiles:
43142425Snectar	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
44142425Snectar
45142425Snectarlinks:
46142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
47142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
48142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
49142425Snectar
50142425Snectarinstall:
51160814Ssimon	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
52160814Ssimon	@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
53142425Snectar	do  \
54142425Snectar	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
55142425Snectar	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
56142425Snectar	done;
57142425Snectar
58142425Snectartags:
59142425Snectar	ctags $(SRC)
60142425Snectar
61142425Snectartests:
62142425Snectar
63142425Snectarlint:
64142425Snectar	lint -DLINT $(INCLUDES) $(SRC)>fluff
65142425Snectar
66142425Snectardepend:
67160814Ssimon	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
68142425Snectar	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
69142425Snectar
70142425Snectardclean:
71142425Snectar	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
72142425Snectar	mv -f Makefile.new $(MAKEFILE)
73142425Snectar
74142425Snectarclean:
75142425Snectar	rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
76142425Snectar
77142425Snectar# DO NOT DELETE THIS LINE -- make depend depends on it.
78142425Snectar
79142425Snectardso_dl.o: ../../e_os.h ../../include/openssl/bio.h
80142425Snectardso_dl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
81142425Snectardso_dl.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
82142425Snectardso_dl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
83142425Snectardso_dl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
84160814Ssimondso_dl.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
85160814Ssimondso_dl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
86160814Ssimondso_dl.o: ../cryptlib.h dso_dl.c
87142425Snectardso_dlfcn.o: ../../e_os.h ../../include/openssl/bio.h
88142425Snectardso_dlfcn.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
89142425Snectardso_dlfcn.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
90142425Snectardso_dlfcn.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
91142425Snectardso_dlfcn.o: ../../include/openssl/opensslconf.h
92160814Ssimondso_dlfcn.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
93160814Ssimondso_dlfcn.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
94160814Ssimondso_dlfcn.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_dlfcn.c
95142425Snectardso_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
96142425Snectardso_err.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
97142425Snectardso_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
98142425Snectardso_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
99160814Ssimondso_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
100160814Ssimondso_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
101160814Ssimondso_err.o: dso_err.c
102142425Snectardso_lib.o: ../../e_os.h ../../include/openssl/bio.h
103142425Snectardso_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
104142425Snectardso_lib.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
105142425Snectardso_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
106142425Snectardso_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
107160814Ssimondso_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
108160814Ssimondso_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
109160814Ssimondso_lib.o: ../cryptlib.h dso_lib.c
110142425Snectardso_null.o: ../../e_os.h ../../include/openssl/bio.h
111142425Snectardso_null.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
112142425Snectardso_null.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
113142425Snectardso_null.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
114142425Snectardso_null.o: ../../include/openssl/opensslconf.h
115160814Ssimondso_null.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
116160814Ssimondso_null.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
117160814Ssimondso_null.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_null.c
118142425Snectardso_openssl.o: ../../e_os.h ../../include/openssl/bio.h
119142425Snectardso_openssl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
120142425Snectardso_openssl.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
121142425Snectardso_openssl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
122142425Snectardso_openssl.o: ../../include/openssl/opensslconf.h
123142425Snectardso_openssl.o: ../../include/openssl/opensslv.h
124160814Ssimondso_openssl.o: ../../include/openssl/ossl_typ.h
125142425Snectardso_openssl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
126142425Snectardso_openssl.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_openssl.c
127142425Snectardso_vms.o: ../../e_os.h ../../include/openssl/bio.h
128142425Snectardso_vms.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
129142425Snectardso_vms.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
130142425Snectardso_vms.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
131142425Snectardso_vms.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
132160814Ssimondso_vms.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
133160814Ssimondso_vms.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
134160814Ssimondso_vms.o: ../cryptlib.h dso_vms.c
135142425Snectardso_win32.o: ../../e_os.h ../../include/openssl/bio.h
136142425Snectardso_win32.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
137142425Snectardso_win32.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
138142425Snectardso_win32.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
139142425Snectardso_win32.o: ../../include/openssl/opensslconf.h
140160814Ssimondso_win32.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
141160814Ssimondso_win32.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
142160814Ssimondso_win32.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_win32.c
143