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