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