PR: 2589
[openssl.git] / crypto / dso / Makefile
1 #
2 # OpenSSL/crypto/dso/Makefile
3 #
4
5 DIR=    dso
6 TOP=    ../..
7 CC=     cc
8 INCLUDES= -I.. -I$(TOP) -I../../include
9 CFLAG=-g
10 MAKEFILE=       Makefile
11 AR=             ar r
12
13 CFLAGS= $(INCLUDES) $(CFLAG)
14
15 GENERAL=Makefile
16 TEST=
17 APPS=
18
19 LIB=$(TOP)/libcrypto.a
20 LIBSRC= dso_dl.c dso_dlfcn.c dso_err.c dso_lib.c dso_null.c \
21         dso_openssl.c dso_win32.c dso_vms.c dso_beos.c
22 LIBOBJ= dso_dl.o dso_dlfcn.o dso_err.o dso_lib.o dso_null.o \
23         dso_openssl.o dso_win32.o dso_vms.o dso_beos.o
24
25 SRC= $(LIBSRC)
26
27 EXHEADER= dso.h
28 HEADER= $(EXHEADER)
29
30 ALL=    $(GENERAL) $(SRC) $(HEADER)
31
32 top:
33         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
34
35 all:    lib
36
37 lib:    $(LIBOBJ)
38         $(ARX) $(LIB) $(LIBOBJ)
39         $(RANLIB) $(LIB) || echo Never mind.
40         @touch lib
41
42 files:
43         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
44
45 links:
46         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
47         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
48         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
49
50 install:
51         @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
52         @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
53         do  \
54         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
55         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
56         done;
57
58 tags:
59         ctags $(SRC)
60
61 tests:
62
63 lint:
64         lint -DLINT $(INCLUDES) $(SRC)>fluff
65
66 depend:
67         @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
68         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
69
70 dclean:
71         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
72         mv -f Makefile.new $(MAKEFILE)
73
74 clean:
75         rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
76
77 # DO NOT DELETE THIS LINE -- make depend depends on it.
78
79 dso_beos.o: ../../e_os.h ../../include/openssl/bio.h
80 dso_beos.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
81 dso_beos.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
82 dso_beos.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
83 dso_beos.o: ../../include/openssl/opensslconf.h
84 dso_beos.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
85 dso_beos.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
86 dso_beos.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_beos.c
87 dso_dl.o: ../../e_os.h ../../include/openssl/bio.h
88 dso_dl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
89 dso_dl.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
90 dso_dl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
91 dso_dl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
92 dso_dl.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
93 dso_dl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
94 dso_dl.o: ../cryptlib.h dso_dl.c
95 dso_dlfcn.o: ../../e_os.h ../../include/openssl/bio.h
96 dso_dlfcn.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
97 dso_dlfcn.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
98 dso_dlfcn.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
99 dso_dlfcn.o: ../../include/openssl/opensslconf.h
100 dso_dlfcn.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
101 dso_dlfcn.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
102 dso_dlfcn.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_dlfcn.c
103 dso_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
104 dso_err.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
105 dso_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
106 dso_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
107 dso_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
108 dso_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
109 dso_err.o: dso_err.c
110 dso_lib.o: ../../e_os.h ../../include/openssl/bio.h
111 dso_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
112 dso_lib.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
113 dso_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
114 dso_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
115 dso_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
116 dso_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
117 dso_lib.o: ../cryptlib.h dso_lib.c
118 dso_null.o: ../../e_os.h ../../include/openssl/bio.h
119 dso_null.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
120 dso_null.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
121 dso_null.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
122 dso_null.o: ../../include/openssl/opensslconf.h
123 dso_null.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
124 dso_null.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
125 dso_null.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_null.c
126 dso_openssl.o: ../../e_os.h ../../include/openssl/bio.h
127 dso_openssl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
128 dso_openssl.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
129 dso_openssl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
130 dso_openssl.o: ../../include/openssl/opensslconf.h
131 dso_openssl.o: ../../include/openssl/opensslv.h
132 dso_openssl.o: ../../include/openssl/ossl_typ.h
133 dso_openssl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
134 dso_openssl.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_openssl.c
135 dso_vms.o: ../../e_os.h ../../include/openssl/bio.h
136 dso_vms.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
137 dso_vms.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
138 dso_vms.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
139 dso_vms.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
140 dso_vms.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
141 dso_vms.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
142 dso_vms.o: ../cryptlib.h ../vms_rms.h dso_vms.c
143 dso_win32.o: ../../e_os.h ../../include/openssl/bio.h
144 dso_win32.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
145 dso_win32.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
146 dso_win32.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
147 dso_win32.o: ../../include/openssl/opensslconf.h
148 dso_win32.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
149 dso_win32.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
150 dso_win32.o: ../../include/openssl/symhacks.h ../cryptlib.h dso_win32.c