1142425Snectar#
2160814Ssimon# OpenSSL/crypto/objects/Makefile
3142425Snectar#
4142425Snectar
5142425SnectarDIR=	objects
6142425SnectarTOP=	../..
7142425SnectarCC=	cc
8142425SnectarINCLUDES= -I.. -I$(TOP) -I../../include
9142425SnectarCFLAG=-g
10142425SnectarMAKEFILE=	Makefile
11142425SnectarAR=		ar r
12142425SnectarPERL=		perl
13142425Snectar
14142425SnectarCFLAGS= $(INCLUDES) $(CFLAG)
15142425Snectar
16142425SnectarGENERAL=Makefile README
17142425SnectarTEST=
18142425SnectarAPPS=
19142425Snectar
20142425SnectarLIB=$(TOP)/libcrypto.a
21238405SjkimLIBSRC=	o_names.c obj_dat.c obj_lib.c obj_err.c obj_xref.c
22238405SjkimLIBOBJ= o_names.o obj_dat.o obj_lib.o obj_err.o obj_xref.o
23142425Snectar
24142425SnectarSRC= $(LIBSRC)
25142425Snectar
26142425SnectarEXHEADER= objects.h obj_mac.h
27238405SjkimHEADER=	$(EXHEADER) obj_dat.h obj_xref.h
28142425Snectar
29142425SnectarALL=    $(GENERAL) $(SRC) $(HEADER)
30142425Snectar
31142425Snectartop:
32142425Snectar	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
33142425Snectar
34238405Sjkimall:	obj_dat.h obj_xref.h lib
35142425Snectar
36142425Snectarlib:	$(LIBOBJ)
37238405Sjkim	$(AR) $(LIB) $(LIBOBJ)
38142425Snectar	$(RANLIB) $(LIB) || echo Never mind.
39142425Snectar	@touch lib
40142425Snectar
41142425Snectarobj_dat.h: obj_dat.pl obj_mac.h
42142425Snectar	$(PERL) obj_dat.pl obj_mac.h obj_dat.h
43142425Snectar
44142425Snectar# objects.pl both reads and writes obj_mac.num
45142425Snectarobj_mac.h: objects.pl objects.txt obj_mac.num
46142425Snectar	$(PERL) objects.pl objects.txt obj_mac.num obj_mac.h
47160814Ssimon	@sleep 1; touch obj_mac.h; sleep 1
48142425Snectar
49238405Sjkimobj_xref.h: objxref.pl obj_xref.txt obj_mac.num
50238405Sjkim	$(PERL) objxref.pl obj_mac.num obj_xref.txt > obj_xref.h
51238405Sjkim	@sleep 1; touch obj_xref.h; sleep 1
52238405Sjkim
53142425Snectarfiles:
54142425Snectar	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
55142425Snectar
56142425Snectarlinks:
57142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
58142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
59142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
60142425Snectar
61142425Snectarinstall:
62160814Ssimon	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
63160814Ssimon	@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
64142425Snectar	do  \
65142425Snectar	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
66142425Snectar	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
67142425Snectar	done;
68142425Snectar
69142425Snectartags:
70142425Snectar	ctags $(SRC)
71142425Snectar
72142425Snectartests:
73142425Snectar
74142425Snectarlint:
75142425Snectar	lint -DLINT $(INCLUDES) $(SRC)>fluff
76142425Snectar
77284285Sjkimupdate: obj_dat.h obj_mac.h obj_xref.h depend
78284285Sjkim
79142425Snectardepend:
80160814Ssimon	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
81142425Snectar	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
82142425Snectar
83142425Snectardclean:
84142425Snectar	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
85142425Snectar	mv -f Makefile.new $(MAKEFILE)
86142425Snectar
87142425Snectarclean:
88142425Snectar	rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
89142425Snectar
90142425Snectar# DO NOT DELETE THIS LINE -- make depend depends on it.
91142425Snectar
92142425Snectaro_names.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
93160814Ssimono_names.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
94160814Ssimono_names.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
95142425Snectaro_names.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
96142425Snectaro_names.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
97142425Snectaro_names.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
98142425Snectaro_names.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
99142425Snectaro_names.o: o_names.c
100142425Snectarobj_dat.o: ../../e_os.h ../../include/openssl/asn1.h
101194206Ssimonobj_dat.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
102194206Ssimonobj_dat.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
103194206Ssimonobj_dat.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
104194206Ssimonobj_dat.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
105194206Ssimonobj_dat.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
106194206Ssimonobj_dat.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
107194206Ssimonobj_dat.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
108194206Ssimonobj_dat.o: ../../include/openssl/symhacks.h ../cryptlib.h obj_dat.c obj_dat.h
109142425Snectarobj_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
110160814Ssimonobj_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
111160814Ssimonobj_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
112160814Ssimonobj_err.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
113160814Ssimonobj_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
114160814Ssimonobj_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
115160814Ssimonobj_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
116160814Ssimonobj_err.o: obj_err.c
117142425Snectarobj_lib.o: ../../e_os.h ../../include/openssl/asn1.h
118160814Ssimonobj_lib.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
119160814Ssimonobj_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
120160814Ssimonobj_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
121160814Ssimonobj_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
122160814Ssimonobj_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
123160814Ssimonobj_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
124160814Ssimonobj_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
125160814Ssimonobj_lib.o: ../cryptlib.h obj_lib.c
126238405Sjkimobj_xref.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
127238405Sjkimobj_xref.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
128238405Sjkimobj_xref.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
129238405Sjkimobj_xref.o: ../../include/openssl/opensslconf.h
130238405Sjkimobj_xref.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
131238405Sjkimobj_xref.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
132238405Sjkimobj_xref.o: ../../include/openssl/symhacks.h obj_xref.c obj_xref.h
133