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