And so it begins...
[openssl.git] / crypto / cms / Makefile
1 #
2 # OpenSSL/crypto/cms/Makefile
3 #
4
5 DIR=    cms
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= cms_lib.c cms_asn1.c cms_att.c cms_io.c cms_smime.c cms_err.c \
21         cms_sd.c cms_dd.c cms_cd.c cms_env.c
22 LIBOBJ= cms_lib.o cms_asn1.o cms_att.o cms_io.o cms_smime.o cms_err.o \
23         cms_sd.o cms_dd.o cms_cd.o cms_env.o
24
25 SRC= $(LIBSRC)
26
27 EXHEADER=  cms.h
28 HEADER= cms_lcl.h $(EXHEADER)
29
30 ALL=    $(GENERAL) $(SRC) $(HEADER)
31
32 top:
33         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
34
35 test:
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         @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
70         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
71
72 dclean:
73         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
74         mv -f Makefile.new $(MAKEFILE)
75
76 clean:
77         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
78
79 # DO NOT DELETE THIS LINE -- make depend depends on it.
80
81 cms_asn1.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
82 cms_asn1.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
83 cms_asn1.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
84 cms_asn1.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
85 cms_asn1.o: ../../include/openssl/ecdsa.h ../../include/openssl/evp.h
86 cms_asn1.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
87 cms_asn1.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
88 cms_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
89 cms_asn1.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
90 cms_asn1.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
91 cms_asn1.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
92 cms_asn1.o: ../../include/openssl/x509_vfy.h cms.h cms_asn1.c cms_lcl.h
93 cms_att.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
94 cms_att.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
95 cms_att.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
96 cms_att.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
97 cms_att.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
98 cms_att.o: ../../include/openssl/err.h ../../include/openssl/evp.h
99 cms_att.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
100 cms_att.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
101 cms_att.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
102 cms_att.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
103 cms_att.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
104 cms_att.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
105 cms_att.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h
106 cms_att.o: cms.h cms_att.c cms_lcl.h
107 cms_lib.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
108 cms_lib.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
109 cms_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
110 cms_lib.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
111 cms_lib.o: ../../include/openssl/ecdsa.h ../../include/openssl/evp.h
112 cms_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
113 cms_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
114 cms_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
115 cms_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
116 cms_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
117 cms_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
118 cms_lib.o: ../../include/openssl/x509_vfy.h cms.h cms_lcl.h cms_lib.c
119 cms_sd.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
120 cms_sd.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
121 cms_sd.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
122 cms_sd.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
123 cms_sd.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
124 cms_sd.o: ../../include/openssl/err.h ../../include/openssl/evp.h
125 cms_sd.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
126 cms_sd.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
127 cms_sd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
128 cms_sd.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
129 cms_sd.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
130 cms_sd.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
131 cms_sd.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h cms.h
132 cms_sd.o: cms_lcl.h cms_sd.c