]>
Commit | Line | Data |
---|---|---|
a63d5eaa RL |
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 | |
42ba5d23 | 10 | MAKEFILE= Makefile |
a63d5eaa RL |
11 | AR= ar r |
12 | ||
13 | CFLAGS= $(INCLUDES) $(CFLAG) | |
14 | ||
15 | GENERAL=Makefile | |
f5394885 RL |
16 | #TEST= uitest.c |
17 | TEST= | |
a63d5eaa RL |
18 | APPS= |
19 | ||
20 | COMPATSRC= ui_compat.c | |
21 | COMPATOBJ= ui_compat.o | |
22 | ||
23 | LIB=$(TOP)/libcrypto.a | |
44bdb056 RL |
24 | LIBSRC= ui_err.c ui_lib.c ui_openssl.c ui_util.c $(COMPATSRC) |
25 | LIBOBJ= ui_err.o ui_lib.o ui_openssl.o ui_util.o $(COMPATOBJ) | |
a63d5eaa RL |
26 | |
27 | SRC= $(LIBSRC) | |
28 | ||
56bb1a7c | 29 | EXHEADER= ui.h ui_compat.h |
a63d5eaa RL |
30 | HEADER= $(EXHEADER) ui_locl.h |
31 | ||
32 | ALL= $(GENERAL) $(SRC) $(HEADER) | |
33 | ||
34 | top: | |
35 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | |
36 | ||
37 | all: lib | |
38 | ||
39 | lib: $(LIBOBJ) | |
f072785e | 40 | $(AR) $(LIB) $(LIBOBJ) |
018c56fd | 41 | $(RANLIB) $(LIB) || echo Never mind. |
a63d5eaa RL |
42 | @touch lib |
43 | ||
44 | files: | |
42ba5d23 | 45 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO |
a63d5eaa RL |
46 | |
47 | links: | |
a63d5eaa RL |
48 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
49 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | |
50 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | |
51 | ||
52 | install: | |
81a86fcf | 53 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... |
a2ac429d | 54 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ |
a63d5eaa RL |
55 | do \ |
56 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | |
57 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | |
58 | done; | |
59 | ||
60 | tags: | |
61 | ctags $(SRC) | |
62 | ||
63 | tests: | |
64 | ||
65 | lint: | |
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | |
67 | ||
68 | depend: | |
ce92b6eb | 69 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... |
001ab3ab | 70 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) |
a63d5eaa RL |
71 | |
72 | dclean: | |
73 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | |
74 | mv -f Makefile.new $(MAKEFILE) | |
75 | ||
76 | clean: | |
77 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | |
78 | ||
79 | # DO NOT DELETE THIS LINE -- make depend depends on it. | |
80 | ||
9c52d2cc GT |
81 | ui_compat.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h |
82 | ui_compat.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | |
83 | ui_compat.o: ../../include/openssl/stack.h ../../include/openssl/ui.h | |
c57bc2dc | 84 | ui_compat.o: ../../include/openssl/ui_compat.h ui_compat.c |
a63d5eaa RL |
85 | ui_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h |
86 | ui_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | |
87 | ui_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | |
c57bc2dc GT |
88 | ui_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
89 | ui_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | |
90 | ui_err.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h ui_err.c | |
54a656ef BL |
91 | ui_lib.o: ../../e_os.h ../../include/openssl/bio.h |
92 | ui_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | |
93 | ui_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | |
94 | ui_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | |
c57bc2dc GT |
95 | ui_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
96 | ui_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | |
97 | ui_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | |
98 | ui_lib.o: ../cryptlib.h ui_lib.c ui_locl.h | |
a63d5eaa RL |
99 | ui_openssl.o: ../../e_os.h ../../include/openssl/bio.h |
100 | ui_openssl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | |
101 | ui_openssl.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | |
102 | ui_openssl.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | |
c57bc2dc | 103 | ui_openssl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
a63d5eaa RL |
104 | ui_openssl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
105 | ui_openssl.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | |
710e5d56 | 106 | ui_openssl.o: ../cryptlib.h ui_locl.h ui_openssl.c |
de2f6e4d RL |
107 | ui_util.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h |
108 | ui_util.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | |
c57bc2dc GT |
109 | ui_util.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h |
110 | ui_util.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | |
9c52d2cc | 111 | ui_util.o: ../../include/openssl/ui.h ui_locl.h ui_util.c |