STACK_OF(SSL_COMP) is a public type
[openssl.git] / crypto / objects / Makefile
1 #
2 # OpenSSL/crypto/objects/Makefile
3 #
4
5 DIR=    objects
6 TOP=    ../..
7 CC=     cc
8 INCLUDES= -I.. -I$(TOP) -I../../include
9 CFLAG=-g
10 MAKEFILE=       Makefile
11 AR=             ar r
12 PERL=           perl
13
14 CFLAGS= $(INCLUDES) $(CFLAG)
15
16 GENERAL=Makefile README
17
18 LIB=$(TOP)/libcrypto.a
19 LIBSRC= o_names.c obj_dat.c obj_lib.c obj_err.c obj_xref.c
20 LIBOBJ= o_names.o obj_dat.o obj_lib.o obj_err.o obj_xref.o
21
22 SRC= $(LIBSRC)
23
24 HEADER= obj_dat.h obj_xref.h obj_lcl.h
25
26 ALL=    $(GENERAL) $(SRC) $(HEADER)
27
28 top:
29         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
30
31 all:    obj_dat.h obj_xref.h lib
32
33 lib:    $(LIBOBJ)
34         $(AR) $(LIB) $(LIBOBJ)
35         $(RANLIB) $(LIB) || echo Never mind.
36         @touch lib
37
38 obj_dat.h: obj_dat.pl ../../include/openssl/obj_mac.h
39         $(PERL) obj_dat.pl ../../include/openssl/obj_mac.h obj_dat.h
40
41 # objects.pl both reads and writes obj_mac.num
42 ../../include/openssl/obj_mac.h: objects.pl objects.txt obj_mac.num
43         $(PERL) objects.pl objects.txt obj_mac.num ../../include/openssl/obj_mac.h
44         @sleep 1; touch ../../include/openssl/obj_mac.h; sleep 1
45
46 obj_xref.h: objxref.pl obj_xref.txt obj_mac.num
47         $(PERL) objxref.pl obj_mac.num obj_xref.txt > obj_xref.h
48         @sleep 1; touch obj_xref.h; sleep 1
49
50 files:
51         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
52
53 tags:
54         ctags $(SRC)
55
56 tests:
57
58 lint:
59         lint -DLINT $(INCLUDES) $(SRC)>fluff
60
61 update: obj_dat.h ../../include/openssl/obj_mac.h obj_xref.h depend
62
63 depend:
64         @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
65         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
66
67 dclean:
68         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
69         mv -f Makefile.new $(MAKEFILE)
70
71 clean:
72         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
73
74 # DO NOT DELETE THIS LINE -- make depend depends on it.
75
76 o_names.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
77 o_names.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
78 o_names.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
79 o_names.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
80 o_names.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
81 o_names.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
82 o_names.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
83 o_names.o: ../../include/openssl/symhacks.h o_names.c obj_lcl.h
84 obj_dat.o: ../../e_os.h ../../include/openssl/asn1.h
85 obj_dat.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
86 obj_dat.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
87 obj_dat.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
88 obj_dat.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
89 obj_dat.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
90 obj_dat.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
91 obj_dat.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
92 obj_dat.o: ../../include/openssl/symhacks.h ../include/internal/asn1_int.h
93 obj_dat.o: ../include/internal/cryptlib.h obj_dat.c obj_dat.h obj_lcl.h
94 obj_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
95 obj_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
96 obj_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
97 obj_err.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
98 obj_err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
99 obj_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
100 obj_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
101 obj_err.o: ../../include/openssl/symhacks.h obj_err.c
102 obj_lib.o: ../../e_os.h ../../include/openssl/asn1.h
103 obj_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
104 obj_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
105 obj_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
106 obj_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
107 obj_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
108 obj_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
109 obj_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
110 obj_lib.o: ../../include/openssl/symhacks.h ../include/internal/asn1_int.h
111 obj_lib.o: ../include/internal/cryptlib.h obj_lib.c
112 obj_xref.o: ../../e_os.h ../../include/openssl/asn1.h
113 obj_xref.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
114 obj_xref.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
115 obj_xref.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
116 obj_xref.o: ../../include/openssl/opensslconf.h
117 obj_xref.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
118 obj_xref.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
119 obj_xref.o: ../../include/openssl/symhacks.h obj_xref.c obj_xref.h