c5f8396a999f891380d797cfc4fe58235afd819b
[openssl.git] / crypto / objects / Makefile.ssl
1 #
2 # SSLeay/crypto/objects/Makefile
3 #
4
5 DIR=    objects
6 TOP=    ../..
7 CC=     cc
8 INCLUDES= -I.. -I$(TOP) -I../../include
9 CFLAG=-g
10 INSTALL_PREFIX=
11 OPENSSLDIR=     /usr/local/ssl
12 INSTALLTOP=/usr/local/ssl
13 MAKE=           make -f Makefile.ssl
14 MAKEDEPPROG=    makedepend
15 MAKEDEPEND=     $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
16 MAKEFILE=       Makefile.ssl
17 AR=             ar r
18
19 CFLAGS= $(INCLUDES) $(CFLAG)
20
21 GENERAL=Makefile README
22 TEST=
23 APPS=
24
25 LIB=$(TOP)/libcrypto.a
26 LIBSRC= o_names.c obj_dat.c obj_lib.c obj_err.c
27 LIBOBJ= o_names.o obj_dat.o obj_lib.o obj_err.o
28
29 SRC= $(LIBSRC)
30
31 EXHEADER= objects.h obj_mac.h
32 HEADER= $(EXHEADER) obj_dat.h
33
34 ALL=    $(GENERAL) $(SRC) $(HEADER)
35
36 top:
37         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
38
39 all:    obj_dat.h lib
40
41 lib:    $(LIBOBJ)
42         $(AR) $(LIB) $(LIBOBJ)
43         @echo You may get an error following this line.  Please ignore.
44         - $(RANLIB) $(LIB)
45         @touch lib
46
47 obj_dat.h: objects.h objects.txt obj_mac.h
48         $(PERL) obj_dat.pl obj_mac.h obj_dat.h
49
50 obj_mac.h: objects.txt obj_mac.num
51         $(PERL) objects.pl objects.txt obj_mac.num obj_mac.h
52
53 files:
54         $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
55
56 links:
57         @$(TOP)/util/point.sh Makefile.ssl Makefile
58         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
59         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
60         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
61
62 install:
63         @for i in $(EXHEADER) ; \
64         do  \
65         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
66         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
67         done;
68
69 tags:
70         ctags $(SRC)
71
72 tests:
73
74 lint:
75         lint -DLINT $(INCLUDES) $(SRC)>fluff
76
77 depend:
78         $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
79
80 dclean:
81         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
82         mv -f Makefile.new $(MAKEFILE)
83
84 clean:
85         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
86
87 # DO NOT DELETE THIS LINE -- make depend depends on it.
88
89 o_names.o: ../../e_os.h ../../include/openssl/asn1.h
90 o_names.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
91 o_names.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
92 o_names.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
93 o_names.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
94 o_names.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
95 o_names.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
96 o_names.o: o_names.c
97 obj_dat.o: ../../e_os.h ../../include/openssl/asn1.h
98 obj_dat.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
99 obj_dat.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
100 obj_dat.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
101 obj_dat.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
102 obj_dat.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
103 obj_dat.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
104 obj_dat.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
105 obj_dat.o: ../cryptlib.h obj_dat.c obj_dat.h
106 obj_err.o: ../../e_os.h ../../include/openssl/asn1.h
107 obj_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
108 obj_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
109 obj_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
110 obj_err.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
111 obj_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
112 obj_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
113 obj_err.o: ../../include/openssl/symhacks.h obj_err.c
114 obj_lib.o: ../../e_os.h ../../include/openssl/asn1.h
115 obj_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
116 obj_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
117 obj_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
118 obj_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
119 obj_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
120 obj_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
121 obj_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
122 obj_lib.o: ../cryptlib.h obj_lib.c