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