]>
Commit | Line | Data |
---|---|---|
d02b48c6 RE |
1 | # |
2 | # SSLeay/crypto/objects/Makefile | |
3 | # | |
4 | ||
5 | DIR= objects | |
6 | TOP= ../.. | |
7 | CC= cc | |
8 | INCLUDES= -I.. -I../../include | |
9 | CFLAG=-g | |
e5f3045f BM |
10 | INSTALL_PREFIX= |
11 | OPENSSLDIR= /usr/local/ssl | |
d02b48c6 RE |
12 | INSTALLTOP=/usr/local/ssl |
13 | MAKE= make -f Makefile.ssl | |
8039257d | 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) |
d02b48c6 RE |
15 | MAKEFILE= Makefile.ssl |
16 | AR= ar r | |
17 | ||
18 | CFLAGS= $(INCLUDES) $(CFLAG) | |
19 | ||
d02b48c6 RE |
20 | GENERAL=Makefile README |
21 | TEST= | |
22 | APPS= | |
23 | ||
24 | LIB=$(TOP)/libcrypto.a | |
73934800 DSH |
25 | LIBSRC= o_names.c obj_dat.c obj_lib.c obj_err.c |
26 | LIBOBJ= o_names.o obj_dat.o obj_lib.o obj_err.o | |
d02b48c6 RE |
27 | |
28 | SRC= $(LIBSRC) | |
29 | ||
30 | EXHEADER= objects.h | |
31 | HEADER= $(EXHEADER) obj_dat.h | |
32 | ||
33 | ALL= $(GENERAL) $(SRC) $(HEADER) | |
34 | ||
35 | top: | |
36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | |
37 | ||
38 | all: obj_dat.h lib | |
39 | ||
40 | obj_dat.h: objects.h obj_dat.pl | |
99aab161 | 41 | $(PERL) ./obj_dat.pl < objects.h > obj_dat.h |
d02b48c6 RE |
42 | |
43 | lib: $(LIBOBJ) | |
44 | $(AR) $(LIB) $(LIBOBJ) | |
99aab161 | 45 | $(RANLIB) $(LIB) |
d02b48c6 RE |
46 | @touch lib |
47 | ||
48 | files: | |
99aab161 | 49 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
d02b48c6 RE |
50 | |
51 | links: | |
bb8f3c58 | 52 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
1314c344 BM |
53 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
54 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | |
55 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | |
d02b48c6 RE |
56 | |
57 | install: | |
58 | @for i in $(EXHEADER) ; \ | |
59 | do \ | |
e5f3045f BM |
60 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
61 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | |
d02b48c6 RE |
62 | done; |
63 | ||
64 | tags: | |
65 | ctags $(SRC) | |
66 | ||
67 | tests: | |
68 | ||
69 | lint: | |
70 | lint -DLINT $(INCLUDES) $(SRC)>fluff | |
71 | ||
72 | depend: | |
f5d7a031 | 73 | $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) |
d02b48c6 RE |
74 | |
75 | dclean: | |
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 | ||
79 | clean: | |
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 |
84 | o_names.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
85 | o_names.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | |
86 | o_names.o: ../../include/openssl/lhash.h ../../include/openssl/objects.h | |
87 | o_names.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | |
5b1b0446 | 88 | o_names.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
bf57da07 BM |
89 | obj_dat.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
90 | obj_dat.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | |
d6847aed BM |
91 | obj_dat.o: ../../include/openssl/crypto.h ../../include/openssl/err.h |
92 | obj_dat.o: ../../include/openssl/lhash.h ../../include/openssl/objects.h | |
93 | obj_dat.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | |
94 | obj_dat.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | |
95 | obj_dat.o: ../cryptlib.h ../e_os.h obj_dat.h | |
bf57da07 BM |
96 | obj_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
97 | obj_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | |
98 | obj_err.o: ../../include/openssl/err.h ../../include/openssl/objects.h | |
99 | obj_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | |
5b1b0446 | 100 | obj_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
bf57da07 BM |
101 | obj_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
102 | obj_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | |
d6847aed BM |
103 | obj_lib.o: ../../include/openssl/crypto.h ../../include/openssl/err.h |
104 | obj_lib.o: ../../include/openssl/lhash.h ../../include/openssl/objects.h | |
105 | obj_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | |
106 | obj_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | |
107 | obj_lib.o: ../cryptlib.h ../e_os.h |