]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/objects/Makefile.ssl
Complete rewrite of the error code generation script. It now runs as a single
[thirdparty/openssl.git] / crypto / objects / Makefile.ssl
CommitLineData
d02b48c6
RE
1#
2# SSLeay/crypto/objects/Makefile
3#
4
5DIR= objects
6TOP= ../..
7CC= cc
8INCLUDES= -I.. -I../../include
9CFLAG=-g
10INSTALLTOP=/usr/local/ssl
11MAKE= make -f Makefile.ssl
8039257d 12MAKEDEPEND= $(TOP)/util/domd $(TOP)
d02b48c6
RE
13MAKEFILE= Makefile.ssl
14AR= ar r
15
16CFLAGS= $(INCLUDES) $(CFLAG)
17
18ERR=objects
19ERRC=obj_err
20GENERAL=Makefile README
21TEST=
22APPS=
23
24LIB=$(TOP)/libcrypto.a
dfeab068
RE
25LIBSRC= o_names.c obj_dat.c obj_lib.c $(ERRC).c
26LIBOBJ= o_names.o obj_dat.o obj_lib.o $(ERRC).o
d02b48c6
RE
27
28SRC= $(LIBSRC)
29
30EXHEADER= objects.h
31HEADER= $(EXHEADER) obj_dat.h
32
33ALL= $(GENERAL) $(SRC) $(HEADER)
34
35top:
36 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
37
38all: obj_dat.h lib
39
40obj_dat.h: objects.h obj_dat.pl
99aab161 41 $(PERL) ./obj_dat.pl < objects.h > obj_dat.h
d02b48c6
RE
42
43lib: $(LIBOBJ)
44 $(AR) $(LIB) $(LIBOBJ)
99aab161 45 $(RANLIB) $(LIB)
d02b48c6
RE
46 @touch lib
47
48files:
99aab161 49 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
d02b48c6
RE
50
51links:
bb8f3c58 52 @$(TOP)/util/point.sh Makefile.ssl Makefile
ec577822 53 @$(TOP)/util/mklink.sh ../../include/openssl $(EXHEADER)
bb8f3c58
RE
54 @$(TOP)/util/mklink.sh ../../test $(TEST)
55 @$(TOP)/util/mklink.sh ../../apps $(APPS)
d02b48c6
RE
56
57install:
58 @for i in $(EXHEADER) ; \
59 do \
ec577822
BM
60 (cp $$i $(INSTALLTOP)/include/openssl/$$i; \
61 chmod 644 $(INSTALLTOP)/include/openssl/$$i ); \
d02b48c6
RE
62 done;
63
64tags:
65 ctags $(SRC)
66
67tests:
68
69lint:
70 lint -DLINT $(INCLUDES) $(SRC)>fluff
71
72depend:
73 $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
74
75dclean:
99aab161 76 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
d02b48c6
RE
77 mv -f Makefile.new $(MAKEFILE)
78
79clean:
bb8f3c58 80 rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
d02b48c6 81
d02b48c6 82# DO NOT DELETE THIS LINE -- make depend depends on it.
6242bb9c 83
bf57da07
BM
84o_names.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
85o_names.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
86o_names.o: ../../include/openssl/lhash.h ../../include/openssl/objects.h
87o_names.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
88o_names.o: ../../include/openssl/stack.h
89obj_dat.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
90obj_dat.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
91obj_dat.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
92obj_dat.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
93obj_dat.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
94obj_dat.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
95obj_dat.o: ../cryptlib.h obj_dat.h
96obj_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
97obj_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
98obj_err.o: ../../include/openssl/err.h ../../include/openssl/objects.h
99obj_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
100obj_err.o: ../../include/openssl/stack.h
101obj_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
102obj_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
103obj_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
104obj_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
105obj_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
106obj_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
107obj_lib.o: ../cryptlib.h