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