Revert "Revert "and added files""
[bcm963xx.git] / userapps / opensource / openssl / crypto / ui / Makefile
1 #
2 # OpenSSL/crypto/ui/Makefile
3 #
4
5 DIR=    ui
6 TOP=    ../..
7 CC=     cc
8 INCLUDES= -I.. -I$(TOP) -I../../include
9 CFLAG=-g
10 INSTALL_PREFIX=
11 OPENSSLDIR=     /usr/local/ssl
12 INSTALLTOP=/usr/local/ssl
13 MAKEDEPPROG=    makedepend
14 MAKEDEPEND=     $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
15 MAKEFILE=       Makefile
16 AR=             ar r
17
18 CFLAGS= $(INCLUDES) $(CFLAG)
19
20 GENERAL=Makefile
21 #TEST= uitest.c
22 TEST=
23 APPS=
24
25 COMPATSRC= ui_compat.c
26 COMPATOBJ= ui_compat.o
27
28 LIB=$(TOP)/libcrypto.a
29 LIBSRC= ui_err.c ui_lib.c ui_openssl.c ui_util.c $(COMPATSRC)
30 LIBOBJ= ui_err.o ui_lib.o ui_openssl.o ui_util.o $(COMPATOBJ)
31
32 SRC= $(LIBSRC)
33
34 EXHEADER= ui.h ui_compat.h
35 HEADER= $(EXHEADER) ui_locl.h
36
37 ALL=    $(GENERAL) $(SRC) $(HEADER)
38
39 top:
40         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
41
42 all:    lib
43
44 lib:    $(LIBOBJ)
45         $(AR) $(LIB) $(LIBOBJ)
46         $(RANLIB) $(LIB) || echo Never mind.
47         @touch lib
48
49 files:
50         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
51
52 links:
53         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
54         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
55         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
56
57 install:
58         @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
59         do  \
60         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
61         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
62         done;
63
64 tags:
65         ctags $(SRC)
66
67 tests:
68
69 lint:
70         lint -DLINT $(INCLUDES) $(SRC)>fluff
71
72 depend:
73         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
74
75 dclean:
76         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
77         mv -f Makefile.new $(MAKEFILE)
78
79 clean:
80         rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
81
82 # DO NOT DELETE THIS LINE -- make depend depends on it.
83
84 ui_compat.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
85 ui_compat.o: ../../include/openssl/opensslconf.h
86 ui_compat.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
87 ui_compat.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
88 ui_compat.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
89 ui_compat.o: ui_compat.c
90 ui_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
91 ui_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
92 ui_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
93 ui_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
94 ui_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
95 ui_err.o: ../../include/openssl/ui.h ui_err.c
96 ui_lib.o: ../../e_os.h ../../include/openssl/bio.h
97 ui_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
98 ui_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
99 ui_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
100 ui_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
101 ui_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
102 ui_lib.o: ../../include/openssl/ui.h ../cryptlib.h ui_lib.c ui_locl.h
103 ui_openssl.o: ../../e_os.h ../../include/openssl/bio.h
104 ui_openssl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
105 ui_openssl.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
106 ui_openssl.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
107 ui_openssl.o: ../../include/openssl/opensslv.h
108 ui_openssl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
109 ui_openssl.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
110 ui_openssl.o: ../cryptlib.h ui_locl.h ui_openssl.c
111 ui_util.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
112 ui_util.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
113 ui_util.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
114 ui_util.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
115 ui_util.o: ui_util.c