]>
Commit | Line | Data |
---|---|---|
d10dac11 RS |
1 | # |
2 | # OpenSSL/crypto/objects/Makefile | |
3 | # | |
4 | ||
5 | DIR= objects | |
6 | TOP= ../.. | |
7 | CC= cc | |
8 | INCLUDES= -I.. -I$(TOP) -I../../include | |
9 | CFLAG=-g | |
10 | MAKEFILE= Makefile | |
11 | AR= ar r | |
12 | PERL= perl | |
13 | ||
14 | CFLAGS= $(INCLUDES) $(CFLAG) | |
15 | ||
16 | GENERAL=Makefile README | |
17 | ||
18 | LIB=$(TOP)/libcrypto.a | |
19 | LIBSRC= o_names.c obj_dat.c obj_lib.c obj_err.c obj_xref.c | |
20 | LIBOBJ= o_names.o obj_dat.o obj_lib.o obj_err.o obj_xref.o | |
21 | ||
22 | SRC= $(LIBSRC) | |
23 | ||
24 | HEADER= obj_dat.h obj_xref.h obj_lcl.h | |
25 | ||
26 | ALL= $(GENERAL) $(SRC) $(HEADER) | |
27 | ||
28 | top: | |
29 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | |
30 | ||
31 | all: obj_dat.h obj_xref.h lib | |
32 | ||
33 | lib: $(LIBOBJ) | |
34 | $(AR) $(LIB) $(LIBOBJ) | |
35 | $(RANLIB) $(LIB) || echo Never mind. | |
36 | @touch lib | |
37 | ||
38 | obj_dat.h: obj_dat.pl ../../include/openssl/obj_mac.h | |
39 | $(PERL) obj_dat.pl ../../include/openssl/obj_mac.h obj_dat.h | |
40 | ||
41 | # objects.pl both reads and writes obj_mac.num | |
42 | ../../include/openssl/obj_mac.h: objects.pl objects.txt obj_mac.num | |
43 | $(PERL) objects.pl objects.txt obj_mac.num ../../include/openssl/obj_mac.h | |
44 | @sleep 1; touch ../../include/openssl/obj_mac.h; sleep 1 | |
45 | ||
46 | obj_xref.h: objxref.pl obj_xref.txt obj_mac.num | |
47 | $(PERL) objxref.pl obj_mac.num obj_xref.txt > obj_xref.h | |
48 | @sleep 1; touch obj_xref.h; sleep 1 | |
49 | ||
50 | files: | |
51 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | |
52 | ||
8cef1212 | 53 | generate: obj_dat.h ../../include/openssl/obj_mac.h obj_xref.h |
d10dac11 RS |
54 | |
55 | depend: | |
ced2c2c5 | 56 | $(TOP)/util/domd $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) |
d10dac11 | 57 | |
d10dac11 RS |
58 | clean: |
59 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | |
60 | ||
61 | # DO NOT DELETE THIS LINE -- make depend depends on it. |