Makefile revision 142425
1142425Snectar#
2142425Snectar# SSLeay/crypto/buffer/Makefile
3142425Snectar#
4142425Snectar
5142425SnectarDIR=	buffer
6142425SnectarTOP=	../..
7142425SnectarCC=	cc
8142425SnectarINCLUDES= -I.. -I$(TOP) -I../../include
9142425SnectarCFLAG=-g
10142425SnectarINSTALL_PREFIX=
11142425SnectarOPENSSLDIR=     /usr/local/ssl
12142425SnectarINSTALLTOP=/usr/local/ssl
13142425SnectarMAKEDEPPROG=	makedepend
14142425SnectarMAKEDEPEND=	$(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
15142425SnectarMAKEFILE=	Makefile
16142425SnectarAR=		ar r
17142425Snectar
18142425SnectarCFLAGS= $(INCLUDES) $(CFLAG)
19142425Snectar
20142425SnectarGENERAL=Makefile
21142425SnectarTEST=
22142425SnectarAPPS=
23142425Snectar
24142425SnectarLIB=$(TOP)/libcrypto.a
25142425SnectarLIBSRC= buffer.c buf_err.c
26142425SnectarLIBOBJ= buffer.o buf_err.o
27142425Snectar
28142425SnectarSRC= $(LIBSRC)
29142425Snectar
30142425SnectarEXHEADER= buffer.h
31142425SnectarHEADER=	$(EXHEADER)
32142425Snectar
33142425SnectarALL=    $(GENERAL) $(SRC) $(HEADER)
34142425Snectar
35142425Snectartop:
36142425Snectar	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
37142425Snectar
38142425Snectarall:	lib
39142425Snectar
40142425Snectarlib:	$(LIBOBJ)
41142425Snectar	$(AR) $(LIB) $(LIBOBJ)
42142425Snectar	$(RANLIB) $(LIB) || echo Never mind.
43142425Snectar	@touch lib
44142425Snectar
45142425Snectarfiles:
46142425Snectar	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
47142425Snectar
48142425Snectarlinks:
49142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
50142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
51142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
52142425Snectar
53142425Snectarinstall:
54142425Snectar	@for i in $(EXHEADER) ; \
55142425Snectar	do  \
56142425Snectar	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
57142425Snectar	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
58142425Snectar	done;
59142425Snectar
60142425Snectartags:
61142425Snectar	ctags $(SRC)
62142425Snectar
63142425Snectartests:
64142425Snectar
65142425Snectarlint:
66142425Snectar	lint -DLINT $(INCLUDES) $(SRC)>fluff
67142425Snectar
68142425Snectardepend:
69142425Snectar	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
70142425Snectar
71142425Snectardclean:
72142425Snectar	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
73142425Snectar	mv -f Makefile.new $(MAKEFILE)
74142425Snectar
75142425Snectarclean:
76142425Snectar	rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
77142425Snectar
78142425Snectar# DO NOT DELETE THIS LINE -- make depend depends on it.
79142425Snectar
80142425Snectarbuf_err.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
81142425Snectarbuf_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
82142425Snectarbuf_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
83142425Snectarbuf_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
84142425Snectarbuf_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
85142425Snectarbuf_err.o: ../../include/openssl/symhacks.h buf_err.c
86142425Snectarbuffer.o: ../../e_os.h ../../include/openssl/bio.h
87142425Snectarbuffer.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
88142425Snectarbuffer.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
89142425Snectarbuffer.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
90142425Snectarbuffer.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
91142425Snectarbuffer.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
92142425Snectarbuffer.o: ../cryptlib.h buffer.c
93