Handle CT error macros separately
[openssl.git] / crypto / ct / Makefile
1 #
2 # OpenSSL/crypto/ct/Makefile
3 #
4
5 DIR=    ct
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
17 LIB=$(TOP)/libcrypto.a
18 LIBSRC= ct_lib.c ct_err.c
19 LIBOBJ= ct_lib.o ct_err.o
20
21 SRC= $(LIBSRC)
22
23 HEADER= 
24
25 ALL=    $(GENERAL) $(SRC) $(HEADER)
26
27 top:
28         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
29
30 test:
31
32 all:    lib
33
34 lib:    $(LIBOBJ)
35         $(AR) $(LIB) $(LIBOBJ)
36         $(RANLIB) $(LIB) || echo Never mind.
37         @touch lib
38
39 files:
40         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
41
42 tags:
43         ctags $(SRC)
44
45 errors:
46         $(PERL) $(TOP)/util/mkerr.pl -conf ct.ec -hprefix internal/ -write *.c
47
48 lint:
49         lint -DLINT $(INCLUDES) $(SRC)>fluff
50
51 update:  depend
52
53 depend:
54         @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
55         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
56
57 dclean:
58         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
59         mv -f Makefile.new $(MAKEFILE)
60
61 clean:
62         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
63
64 # DO NOT DELETE THIS LINE -- make depend depends on it.
65
66 ct_lib.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h
67 ct_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
68 ct_lib.o: ../../include/openssl/comp.h ../../include/openssl/crypto.h
69 ct_lib.o: ../../include/openssl/dsa.h ../../include/openssl/dtls1.h
70 ct_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
71 ct_lib.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
72 ct_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h
73 ct_lib.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
74 ct_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
75 ct_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
76 ct_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem.h
77 ct_lib.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h
78 ct_lib.o: ../../include/openssl/pqueue.h ../../include/openssl/rsa.h
79 ct_lib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
80 ct_lib.o: ../../include/openssl/srtp.h ../../include/openssl/ssl.h
81 ct_lib.o: ../../include/openssl/ssl2.h ../../include/openssl/ssl3.h
82 ct_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
83 ct_lib.o: ../../include/openssl/tls1.h ../../include/openssl/x509.h
84 ct_lib.o: ../../include/openssl/x509_vfy.h ../../ssl/packet_locl.h
85 ct_lib.o: ../../ssl/record/record.h ../../ssl/ssl_locl.h
86 ct_lib.o: ../include/internal/cryptlib.h ../include/internal/ct_int.h ct_lib.c