Fool-proofing Makefiles
[openssl.git] / crypto / ecdh / Makefile
1 #
2 # crypto/ecdh/Makefile
3 #
4
5 DIR=    ecdh
6 TOP=    ../..
7 CC=     cc
8 INCLUDES= -I.. -I$(TOP) -I../../include
9 CFLAG=-g -Wall
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=ecdhtest.c
19 APPS=
20
21 LIB=$(TOP)/libcrypto.a
22 LIBSRC= ech_lib.c ech_ossl.c ech_key.c ech_err.c
23
24 LIBOBJ= ech_lib.o ech_ossl.o ech_key.o ech_err.o
25
26 SRC= $(LIBSRC)
27
28 EXHEADER= ecdh.h
29 HEADER= ech_locl.h $(EXHEADER)
30
31 ALL=    $(GENERAL) $(SRC) $(HEADER)
32
33 top:
34         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
35
36 all:    lib
37
38 lib:    $(LIBOBJ)
39         $(AR) $(LIB) $(LIBOBJ)
40         $(RANLIB) $(LIB) || echo Never mind.
41         @touch lib
42
43 files:
44         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
45
46 links:
47         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
48         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
49         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
50
51 install:
52         @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
53         @headerlist="$(EXHEADER)"; for i in $$headerlist; \
54         do  \
55         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
56         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
57         done;
58
59 tags:
60         ctags $(SRC)
61
62 tests:
63
64 lint:
65         lint -DLINT $(INCLUDES) $(SRC)>fluff
66
67 depend:
68         $(MAKEDEPEND) -- $(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 ech_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
80 ech_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
81 ech_err.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
82 ech_err.o: ../../include/openssl/ecdh.h ../../include/openssl/err.h
83 ech_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
84 ech_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
85 ech_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
86 ech_err.o: ../../include/openssl/symhacks.h ech_err.c
87 ech_key.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
88 ech_key.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
89 ech_key.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h
90 ech_key.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
91 ech_key.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
92 ech_key.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
93 ech_key.o: ../../include/openssl/err.h ../../include/openssl/evp.h
94 ech_key.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
95 ech_key.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
96 ech_key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
97 ech_key.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
98 ech_key.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
99 ech_key.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
100 ech_key.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h
101 ech_key.o: ../../include/openssl/ui.h ../../include/openssl/x509.h
102 ech_key.o: ../../include/openssl/x509_vfy.h ech_key.c ech_locl.h
103 ech_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
104 ech_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
105 ech_lib.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h
106 ech_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
107 ech_lib.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
108 ech_lib.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
109 ech_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h
110 ech_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
111 ech_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
112 ech_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
113 ech_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
114 ech_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
115 ech_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
116 ech_lib.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h
117 ech_lib.o: ../../include/openssl/ui.h ../../include/openssl/x509.h
118 ech_lib.o: ../../include/openssl/x509_vfy.h ech_lib.c ech_locl.h
119 ech_ossl.o: ../../e_os.h ../../include/openssl/asn1.h
120 ech_ossl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
121 ech_ossl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
122 ech_ossl.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
123 ech_ossl.o: ../../include/openssl/ecdh.h ../../include/openssl/err.h
124 ech_ossl.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
125 ech_ossl.o: ../../include/openssl/opensslconf.h
126 ech_ossl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
127 ech_ossl.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
128 ech_ossl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
129 ech_ossl.o: ../cryptlib.h ech_locl.h ech_ossl.c