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