1142425Snectar#
2142425Snectar# OpenSSL/crypto/ui/Makefile
3142425Snectar#
4142425Snectar
5142425SnectarDIR=	ui
6142425SnectarTOP=	../..
7142425SnectarCC=	cc
8142425SnectarINCLUDES= -I.. -I$(TOP) -I../../include
9142425SnectarCFLAG=-g
10142425SnectarMAKEFILE=	Makefile
11142425SnectarAR=		ar r
12142425Snectar
13142425SnectarCFLAGS= $(INCLUDES) $(CFLAG)
14142425Snectar
15142425SnectarGENERAL=Makefile
16142425Snectar#TEST= uitest.c
17142425SnectarTEST=
18142425SnectarAPPS=
19142425Snectar
20142425SnectarCOMPATSRC= ui_compat.c
21142425SnectarCOMPATOBJ= ui_compat.o
22142425Snectar
23142425SnectarLIB=$(TOP)/libcrypto.a
24142425SnectarLIBSRC= ui_err.c ui_lib.c ui_openssl.c ui_util.c $(COMPATSRC)
25142425SnectarLIBOBJ= ui_err.o ui_lib.o ui_openssl.o ui_util.o $(COMPATOBJ)
26142425Snectar
27142425SnectarSRC= $(LIBSRC)
28142425Snectar
29142425SnectarEXHEADER= ui.h ui_compat.h
30142425SnectarHEADER=	$(EXHEADER) ui_locl.h
31142425Snectar
32142425SnectarALL=    $(GENERAL) $(SRC) $(HEADER)
33142425Snectar
34142425Snectartop:
35142425Snectar	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
36142425Snectar
37142425Snectarall:	lib
38142425Snectar
39142425Snectarlib:	$(LIBOBJ)
40238405Sjkim	$(AR) $(LIB) $(LIBOBJ)
41142425Snectar	$(RANLIB) $(LIB) || echo Never mind.
42142425Snectar	@touch lib
43142425Snectar
44142425Snectarfiles:
45142425Snectar	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
46142425Snectar
47142425Snectarlinks:
48142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
49142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
50142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
51142425Snectar
52142425Snectarinstall:
53160814Ssimon	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
54160814Ssimon	@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
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:
69160814Ssimon	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
70142425Snectar	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
71142425Snectar
72142425Snectardclean:
73142425Snectar	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
74142425Snectar	mv -f Makefile.new $(MAKEFILE)
75142425Snectar
76142425Snectarclean:
77142425Snectar	rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
78142425Snectar
79142425Snectar# DO NOT DELETE THIS LINE -- make depend depends on it.
80142425Snectar
81160814Ssimonui_compat.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
82160814Ssimonui_compat.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
83160814Ssimonui_compat.o: ../../include/openssl/stack.h ../../include/openssl/ui.h
84160814Ssimonui_compat.o: ../../include/openssl/ui_compat.h ui_compat.c
85142425Snectarui_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
86142425Snectarui_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
87142425Snectarui_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
88160814Ssimonui_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
89160814Ssimonui_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
90160814Ssimonui_err.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h ui_err.c
91142425Snectarui_lib.o: ../../e_os.h ../../include/openssl/bio.h
92142425Snectarui_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
93142425Snectarui_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
94142425Snectarui_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
95160814Ssimonui_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
96160814Ssimonui_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
97160814Ssimonui_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
98160814Ssimonui_lib.o: ../cryptlib.h ui_lib.c ui_locl.h
99142425Snectarui_openssl.o: ../../e_os.h ../../include/openssl/bio.h
100142425Snectarui_openssl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
101142425Snectarui_openssl.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
102142425Snectarui_openssl.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
103160814Ssimonui_openssl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
104142425Snectarui_openssl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
105142425Snectarui_openssl.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
106142425Snectarui_openssl.o: ../cryptlib.h ui_locl.h ui_openssl.c
107142425Snectarui_util.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
108142425Snectarui_util.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
109160814Ssimonui_util.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
110160814Ssimonui_util.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
111160814Ssimonui_util.o: ../../include/openssl/ui.h ui_locl.h ui_util.c
112