]>
Commit | Line | Data |
---|---|---|
d02b48c6 | 1 | # |
15ac9716 | 2 | # OpenSSL/crypto/objects/Makefile |
d02b48c6 RE |
3 | # |
4 | ||
5 | DIR= objects | |
6 | TOP= ../.. | |
7 | CC= cc | |
41d2a336 | 8 | INCLUDES= -I.. -I$(TOP) -I../../include |
d02b48c6 | 9 | CFLAG=-g |
42ba5d23 | 10 | MAKEFILE= Makefile |
d02b48c6 | 11 | AR= ar r |
0f7b63c8 | 12 | PERL= perl |
d02b48c6 RE |
13 | |
14 | CFLAGS= $(INCLUDES) $(CFLAG) | |
15 | ||
d02b48c6 RE |
16 | GENERAL=Makefile README |
17 | TEST= | |
18 | APPS= | |
19 | ||
20 | LIB=$(TOP)/libcrypto.a | |
73934800 DSH |
21 | LIBSRC= o_names.c obj_dat.c obj_lib.c obj_err.c |
22 | LIBOBJ= o_names.o obj_dat.o obj_lib.o obj_err.o | |
d02b48c6 RE |
23 | |
24 | SRC= $(LIBSRC) | |
25 | ||
c2bbf9cf | 26 | EXHEADER= objects.h obj_mac.h |
d02b48c6 RE |
27 | HEADER= $(EXHEADER) obj_dat.h |
28 | ||
29 | ALL= $(GENERAL) $(SRC) $(HEADER) | |
30 | ||
31 | top: | |
32 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | |
33 | ||
34 | all: obj_dat.h lib | |
35 | ||
d02b48c6 RE |
36 | lib: $(LIBOBJ) |
37 | $(AR) $(LIB) $(LIBOBJ) | |
4e20b1a6 | 38 | $(RANLIB) $(LIB) || echo Never mind. |
d02b48c6 RE |
39 | @touch lib |
40 | ||
1d00800e | 41 | obj_dat.h: obj_dat.pl obj_mac.h |
86417028 | 42 | $(PERL) obj_dat.pl obj_mac.h obj_dat.h |
3ab56511 | 43 | |
1d00800e BM |
44 | # objects.pl both reads and writes obj_mac.num |
45 | obj_mac.h: objects.pl objects.txt obj_mac.num | |
86417028 | 46 | $(PERL) objects.pl objects.txt obj_mac.num obj_mac.h |
f7f21255 | 47 | @sleep 1; touch obj_mac.h; sleep 1 |
3ab56511 | 48 | |
d02b48c6 | 49 | files: |
42ba5d23 | 50 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO |
d02b48c6 RE |
51 | |
52 | links: | |
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: | |
81a86fcf | 58 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... |
a2ac429d | 59 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ |
d02b48c6 | 60 | do \ |
e5f3045f BM |
61 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
62 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | |
d02b48c6 RE |
63 | done; |
64 | ||
65 | tags: | |
66 | ctags $(SRC) | |
67 | ||
68 | tests: | |
69 | ||
70 | lint: | |
71 | lint -DLINT $(INCLUDES) $(SRC)>fluff | |
72 | ||
73 | depend: | |
ce92b6eb | 74 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... |
001ab3ab | 75 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) |
d02b48c6 RE |
76 | |
77 | dclean: | |
99aab161 | 78 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
d02b48c6 RE |
79 | mv -f Makefile.new $(MAKEFILE) |
80 | ||
81 | clean: | |
bb8f3c58 | 82 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
d02b48c6 | 83 | |
d02b48c6 | 84 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
6242bb9c | 85 | |
d88a26c4 | 86 | o_names.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
9c52d2cc | 87 | o_names.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h |
3c97bd83 RL |
88 | o_names.o: ../../include/openssl/err.h ../../include/openssl/lhash.h |
89 | o_names.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | |
90 | o_names.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | |
91 | o_names.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | |
92 | o_names.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | |
93 | o_names.o: o_names.c | |
41d2a336 | 94 | obj_dat.o: ../../e_os.h ../../include/openssl/asn1.h |
9c52d2cc GT |
95 | obj_dat.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h |
96 | obj_dat.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | |
97 | obj_dat.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | |
98 | obj_dat.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | |
99 | obj_dat.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | |
100 | obj_dat.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | |
101 | obj_dat.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | |
102 | obj_dat.o: ../cryptlib.h obj_dat.c obj_dat.h | |
d88a26c4 | 103 | obj_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
9c52d2cc GT |
104 | obj_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h |
105 | obj_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | |
106 | obj_err.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | |
107 | obj_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | |
108 | obj_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | |
109 | obj_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | |
110 | obj_err.o: obj_err.c | |
41d2a336 | 111 | obj_lib.o: ../../e_os.h ../../include/openssl/asn1.h |
9c52d2cc GT |
112 | obj_lib.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h |
113 | obj_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | |
114 | obj_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | |
115 | obj_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | |
116 | obj_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | |
117 | obj_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | |
118 | obj_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | |
119 | obj_lib.o: ../cryptlib.h obj_lib.c |