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