21221555f445272e8443a1ea33fd03a9bd223f8a
[openssl.git] / crypto / ui / Makefile.ssl
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 MAKE=           make -f Makefile.ssl
14 MAKEDEPPROG=    makedepend
15 MAKEDEPEND=     $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
16 MAKEFILE=       Makefile.ssl
17 AR=             ar r
18
19 CFLAGS= $(INCLUDES) $(CFLAG)
20
21 GENERAL=Makefile
22 TEST= uitest.c
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 $(COMPATSRC)
30 LIBOBJ= ui_err.o ui_lib.o ui_openssl.o $(COMPATOBJ)
31
32 SRC= $(LIBSRC)
33
34 EXHEADER= ui.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)
47         @touch lib
48
49 files:
50         $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
51
52 links:
53         @$(TOP)/util/point.sh Makefile.ssl Makefile
54         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
55         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
56         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
57
58 install:
59         @for i in $(EXHEADER) ; \
60         do  \
61         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
62         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
63         done;
64
65 tags:
66         ctags $(SRC)
67
68 tests:
69
70 lint:
71         lint -DLINT $(INCLUDES) $(SRC)>fluff
72
73 depend:
74         $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
75
76 dclean:
77         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
78         mv -f Makefile.new $(MAKEFILE)
79
80 clean:
81         rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
82
83 # DO NOT DELETE THIS LINE -- make depend depends on it.
84
85 ui_compat.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
86 ui_compat.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
87 ui_compat.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
88 ui_compat.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
89 ui_compat.o: ../../include/openssl/ui.h 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: ../../include/openssl/bio.h ../../include/openssl/crypto.h
97 ui_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
98 ui_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
99 ui_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
100 ui_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
101 ui_lib.o: ../../include/openssl/ui.h ui_lib.c ui_locl.h
102 ui_openssl.o: ../../e_os.h ../../include/openssl/bio.h
103 ui_openssl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
104 ui_openssl.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
105 ui_openssl.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
106 ui_openssl.o: ../../include/openssl/opensslv.h
107 ui_openssl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
108 ui_openssl.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
109 ui_openssl.o: ../cryptlib.h ui_locl.h ui_openssl.c